/* ==========================================================================
   OwOCloud — WHMCS client area theme
   --------------------------------------------------------------------------
   Design language taken from the MOERIN corporate site: flat surfaces, hairline
   rules instead of shadows, one accent held throughout, notched (clipped)
   primary buttons, monospace reserved for technical labels and numerals.

   Load order: this file comes after all.min.css (Bootstrap 3.4.1 + WHMCS base),
   so plain class selectors are enough to override. Prefer tokens over
   hard-coded colours: every surface, line and text colour reads from :root,
   and the light theme only redefines those tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
    color-scheme: dark;

    /* surfaces */
    --owo-bg: #05070f;
    --owo-bg-2: #080c16;
    --owo-panel: #0b101d;
    --owo-panel-2: #0e1424;
    --owo-panel-3: #121a2c;

    /* lines */
    --owo-line: rgba(255, 255, 255, .09);
    --owo-line-2: rgba(255, 255, 255, .16);
    --owo-line-accent: rgba(253, 117, 181, .45);

    /* text */
    --owo-text: #dfe7f2;
    --owo-text-strong: #ffffff;
    --owo-muted: #909fb4;
    --owo-faint: #6b7889;

    /* accent — taken from the OwOCloud mark */
    --owo-accent: #fd75b5;
    --owo-accent-hover: #ff92c6;
    --owo-accent-ink: #24071a;
    --owo-accent-wash: rgba(253, 117, 181, .12);

    /* state */
    --owo-ok: #4ec98a;
    --owo-warn: #e0a94a;
    --owo-danger: #ef6a5f;
    --owo-info: #7fb4e8;

    /* geometry */
    --owo-rad: 10px;
    --owo-rad-sm: 6px;
    --owo-gap: 24px;
    --owo-header-h: 68px;

    /* type */
    --owo-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
    --owo-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular,
        Consolas, "Liberation Mono", Menlo, monospace;

    /* elevation — small and held; hairlines do most of the separating */
    --owo-shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --owo-shadow-2: 0 6px 20px rgba(0, 0, 0, .45);
}

html[data-theme="light"] {
    color-scheme: light;

    --owo-bg: #f6f8f7;
    --owo-bg-2: #eef2f0;
    --owo-panel: #ffffff;
    --owo-panel-2: #f4f7f5;
    --owo-panel-3: #eaeff0;

    --owo-line: rgba(16, 32, 26, .11);
    --owo-line-2: rgba(16, 32, 26, .2);
    --owo-line-accent: rgba(184, 20, 96, .4);

    --owo-text: #10201a;
    --owo-text-strong: #06140f;
    --owo-muted: #58685f;
    --owo-faint: #7a8a81;

    --owo-accent: #b81460;
    --owo-accent-hover: #9c104f;
    --owo-accent-ink: #ffffff;
    --owo-accent-wash: rgba(184, 20, 96, .08);

    --owo-ok: #1c7a4c;
    --owo-warn: #8a6412;
    --owo-danger: #b3372c;
    --owo-info: #24618f;

    --owo-shadow-1: 0 1px 2px rgba(16, 32, 26, .06);
    --owo-shadow-2: 0 6px 20px rgba(16, 32, 26, .1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

body {
    background-color: var(--owo-bg);
    color: var(--owo-text);
    font-family: var(--owo-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--owo-header-h);
}

body.owo-auth {
    padding-top: 0;
}

::selection {
    background: var(--owo-accent);
    color: var(--owo-accent-ink);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--owo-text-strong);
    font-family: var(--owo-sans);
    font-weight: 700;
    letter-spacing: -.01em;
    margin-top: 0;
}

h1, .h1 { font-size: 34px; line-height: 1.25; }
h2, .h2 { font-size: 26px; line-height: 1.3; }
h3, .h3 { font-size: 20px; line-height: 1.4; }
h4, .h4 { font-size: 17px; line-height: 1.45; }

p { margin: 0 0 14px; }

a {
    color: var(--owo-accent);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover, a:focus {
    color: var(--owo-accent-hover);
    text-decoration: none;
}

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

hr {
    border: 0;
    border-top: 1px solid var(--owo-line);
    margin: 24px 0;
}

small, .small { font-size: 13px; }

.text-muted, .text-secondary { color: var(--owo-muted) !important; }
.text-primary { color: var(--owo-accent) !important; }
.text-success { color: var(--owo-ok) !important; }
.text-danger { color: var(--owo-danger) !important; }
.text-warning { color: var(--owo-warn) !important; }
.text-info { color: var(--owo-info) !important; }
.text-white { color: var(--owo-text-strong) !important; }
.weight-bold, .font-weight-bold, strong, b { font-weight: 700; }

/* numerals that sit in a column should not shift width */
.owo-num, .tile-number, .product-info-list .list-info-text, .table td.num {
    font-variant-numeric: tabular-nums;
}

/* Monospace is reserved for values that are read as data — identifiers, node
   codes, plan specs, timestamps, tabular numerals — never for UI chrome. */
.owo-mono {
    font-family: var(--owo-mono);
    font-size: .8125rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--owo-muted);
}

.owo-mono-plain {
    font-family: var(--owo-mono);
    letter-spacing: .02em;
}

code, kbd, pre, samp {
    font-family: var(--owo-mono);
    font-size: .875em;
    background: var(--owo-panel-2);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    color: var(--owo-text);
}

code { padding: 2px 6px; }

pre {
    padding: 14px 16px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   3. Container & sections
   -------------------------------------------------------------------------- */

.container { max-width: 1200px; }

@media (min-width: 1320px) {
    .container { max-width: 1260px; }
}

.owo-section { padding: 72px 0; }
.owo-section-tight { padding: 44px 0; }

/* The base stylesheet paints #main-body white; the theme's surfaces come from
   the tokens, so the wrapper stays transparent. */
section#main-body {
    background-color: transparent;
    padding: 0;
    min-height: 0;
}

#main-colmd9 { padding-top: 40px; }

/* the home page lays its own sections out edge to edge */
body.owo-home section#main-body { padding: 0; }

.owo-section-alt {
    background: var(--owo-bg-2);
    border-top: 1px solid var(--owo-line);
    border-bottom: 1px solid var(--owo-line);
}

.owo-section-head { margin-bottom: 36px; max-width: 760px; }

.owo-section-head h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.owo-section-head p {
    color: var(--owo-muted);
    font-size: 15px;
    margin: 0;
}

/* rule that closes the gap between a heading and its content */
.owo-rule {
    border-top: 1px solid var(--owo-line);
    margin: 28px 0 0;
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */

.owo-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    min-height: var(--owo-header-h);
    background: color-mix(in srgb, var(--owo-bg) 88%, transparent);
    border-bottom: 1px solid var(--owo-line);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(150%) blur(12px);
}

/* browsers without color-mix still get an opaque bar */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .owo-header { background: var(--owo-bg); }
}

.owo-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--owo-header-h);
}

.owo-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 8px;
}

.owo-brand img {
    height: 34px;
    width: auto;
    display: block;
}

.owo-brand-text {
    color: var(--owo-text-strong);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.owo-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.owo-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.owo-nav > ul > li { position: relative; }

.owo-nav > ul > li > a {
    display: block;
    padding: 10px 12px;
    color: var(--owo-muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.owo-nav > ul > li > a:hover,
.owo-nav > ul > li > a:focus {
    color: var(--owo-text-strong);
}

.owo-nav > ul > li.active > a,
.owo-nav > ul > li.current > a {
    color: var(--owo-text-strong);
}

/* active nav item gets a short accent rule underneath, not a pill */
.owo-nav > ul > li.active > a::after,
.owo-nav > ul > li.current > a::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 6px;
    background: var(--owo-accent);
}

.owo-nav .dropdown-menu {
    margin-top: 0;
    border-radius: var(--owo-rad);
    border: 1px solid var(--owo-line);
    background: var(--owo-panel);
    box-shadow: var(--owo-shadow-2);
    padding: 6px;
    min-width: 200px;
}

.owo-nav .dropdown-menu > li > a {
    border-radius: var(--owo-rad-sm);
    padding: 8px 12px;
    color: var(--owo-text);
    font-size: 14px;
    white-space: normal;
}

.owo-nav .dropdown-menu > li > a:hover,
.owo-nav .dropdown-menu > li > a:focus {
    background: var(--owo-panel-2);
    color: var(--owo-text-strong);
}

.owo-nav .caret { opacity: .5; margin-left: 4px; }

.owo-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex: 0 0 auto;
}

.owo-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    background: transparent;
    color: var(--owo-muted);
    font-size: 15px;
    cursor: pointer;
    position: relative;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.owo-icon-btn:hover,
.owo-icon-btn:focus {
    color: var(--owo-text-strong);
    border-color: var(--owo-line-2);
    background: var(--owo-panel-2);
    text-decoration: none;
}

.owo-icon-btn .owo-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--owo-accent);
}

/* theme switch: one button, two glyphs, no animation */
.owo-theme-toggle .icon-sun,
.owo-theme-toggle .icon-moon { line-height: 1; }

html[data-theme="dark"] .owo-theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .owo-theme-toggle .icon-sun { display: none; }

.owo-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    background: transparent;
    color: var(--owo-text);
    font-size: 16px;
}

.owo-account-menu .dropdown-menu { min-width: 240px; }

.owo-account-menu .owo-account-head {
    padding: 10px 12px;
    border-bottom: 1px solid var(--owo-line);
    margin-bottom: 6px;
}

.owo-account-menu .owo-account-head strong {
    display: block;
    color: var(--owo-text-strong);
    font-size: 14px;
}

.owo-account-menu .owo-account-head span {
    display: block;
    color: var(--owo-muted);
    font-size: 12px;
    word-break: break-all;
}

/* language + currency pickers in the header keep the small icon-button shape */
.owo-lang .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    height: 38px;
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    background: transparent;
    color: var(--owo-muted);
    font-size: 13px;
}

.owo-lang .dropdown-toggle:hover {
    color: var(--owo-text-strong);
    border-color: var(--owo-line-2);
    background: var(--owo-panel-2);
}

.owo-lang img.paises {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
    font-family: var(--owo-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    padding: 9px 18px;
    border-radius: var(--owo-rad-sm);
    border: 1px solid transparent;
    background-image: none;
    text-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn:focus, .btn:active:focus, .btn.active:focus { outline: none; box-shadow: none; }

.btn-lg { font-size: 15px; padding: 13px 26px; }
.btn-sm { font-size: 13px; padding: 6px 13px; }
.btn-xs { font-size: 12px; padding: 4px 10px; }
.btn-block { width: 100%; }

/* Primary: solid accent with the notched corner from the reference site.
   The notch is the theme's one signature move, so it is used here and
   nowhere else. */
.btn-primary,
.btn.primary-solid-btn,
.primary-solid-btn {
    background-color: var(--owo-accent);
    border-color: var(--owo-accent);
    color: var(--owo-accent-ink);
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    border-radius: 0;
}

.btn-primary:hover,
.btn-primary:focus,
.btn.primary-solid-btn:hover,
.btn.primary-solid-btn:focus,
.primary-solid-btn:hover,
.primary-solid-btn:focus {
    background-color: var(--owo-accent-hover);
    border-color: var(--owo-accent-hover);
    color: var(--owo-accent-ink);
}

.btn-primary[disabled], .btn-primary.disabled,
.primary-solid-btn[disabled], .primary-solid-btn.disabled {
    background-color: var(--owo-panel-3);
    border-color: var(--owo-line);
    color: var(--owo-faint);
    opacity: 1;
}

/* Secondary: hairline box, square, no notch — the counterweight to primary */
.btn-default,
.btn.owo-secondary,
.btn.outline-btn,
.outline-btn,
.secondary-solid-btn,
.secondary-outline-btn {
    background-color: transparent;
    border-color: var(--owo-line-2);
    color: var(--owo-text);
    border-radius: 0;
}

.btn-default:hover,
.btn-default:focus,
.btn.owo-secondary:hover,
.btn.outline-btn:hover,
.btn.outline-btn:focus,
.outline-btn:hover,
.outline-btn:focus,
.secondary-solid-btn:hover {
    background-color: var(--owo-panel-2);
    border-color: var(--owo-accent);
    color: var(--owo-text-strong);
}

.btn-success {
    background-color: var(--owo-ok);
    border-color: var(--owo-ok);
    color: #04140c;
    border-radius: 0;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.btn-success:hover, .btn-success:focus {
    background-color: var(--owo-ok);
    border-color: var(--owo-ok);
    color: #04140c;
    filter: brightness(1.08);
}

.btn-danger {
    background-color: transparent;
    border-color: var(--owo-danger);
    color: var(--owo-danger);
    border-radius: 0;
}

.btn-danger:hover, .btn-danger:focus {
    background-color: var(--owo-danger);
    border-color: var(--owo-danger);
    color: #fff;
}

.btn-warning {
    background-color: transparent;
    border-color: var(--owo-warn);
    color: var(--owo-warn);
    border-radius: 0;
}

.btn-warning:hover, .btn-warning:focus {
    background-color: var(--owo-warn);
    border-color: var(--owo-warn);
    color: #1a1204;
}

.btn-info {
    background-color: transparent;
    border-color: var(--owo-line-2);
    color: var(--owo-text);
    border-radius: 0;
}

.btn-info:hover, .btn-info:focus {
    background-color: var(--owo-panel-2);
    border-color: var(--owo-info);
    color: var(--owo-text-strong);
}

.btn-link {
    color: var(--owo-accent);
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.btn-link:hover, .btn-link:focus {
    color: var(--owo-accent-hover);
    text-decoration: underline;
}

.btn-group > .btn + .btn { margin-left: -1px; }

/* an anchor styled as a button should still sit on one line */
a.btn { display: inline-block; }

/* --------------------------------------------------------------------------
   6. Panels & cards
   -------------------------------------------------------------------------- */

.panel {
    background-color: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    box-shadow: none;
    margin-bottom: var(--owo-gap);
}

/* The base stylesheet hard-codes white on panels through descendant selectors
   such as `.client-home-panels .panel > .panel-heading` and
   `.panel-sidebar > .panel-heading`, so these carry the same shape rather than
   a bare class. */
.panel-heading,
.panel-default > .panel-heading,
.client-home-panels .panel > .panel-heading,
.panel-sidebar > .panel-heading {
    background-color: transparent;
    border-bottom: 1px solid var(--owo-line);
    border-radius: var(--owo-rad) var(--owo-rad) 0 0;
    padding: 16px 20px;
    color: var(--owo-text-strong);
}

.panel-sidebar { background-color: var(--owo-panel); }

.panel-body,
.client-home-panels .panel > .panel-body {
    background-color: transparent;
    padding: 20px;
}

.panel-footer,
.client-home-panels .panel > .panel-footer {
    background-color: transparent;
    border-top: 1px solid var(--owo-line);
    border-radius: 0 0 var(--owo-rad) var(--owo-rad);
    padding: 16px 20px;
    color: var(--owo-muted);
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--owo-text-strong);
    margin: 0;
}

.panel-title > i { color: var(--owo-accent); margin-right: 8px; }

/* accent variants: a rule on the heading, not a coloured card */
.panel-accent-blue > .panel-heading,
.panel-accent-green > .panel-heading,
.panel-accent-red > .panel-heading,
.panel-accent-orange > .panel-heading,
.panel-accent-amethyst > .panel-heading,
.panel-accent-gold > .panel-heading { border-bottom-color: var(--owo-line-accent); }

/* the client area's own card class (used by addon modules as well) */
.custom-card-block {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    padding: 22px 24px;
}

.custom-panel-box { overflow: hidden; }

.custom-panel-box .custom-panel-footer {
    border-top: 1px solid var(--owo-line);
    padding: 12px 20px;
    background: var(--owo-panel-2);
}

/* the sidebar's client summary block sits flush with the panel edge */
.panel-sidebar .panel-body { padding: 16px 20px; }

/* ---- generic hairline card grid ---------------------------------------- */

.owo-grid {
    display: grid;
    gap: 1px;
    background: var(--owo-line);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    overflow: hidden;
}

.owo-grid > * {
    background: var(--owo-panel);
    padding: 22px 24px;
}

.owo-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.owo-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.owo-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.owo-card {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    padding: 22px 24px;
}

.owo-card h3, .owo-card h4 { margin-bottom: 8px; }
.owo-card p { color: var(--owo-muted); margin-bottom: 0; }

.owo-card-link { display: block; color: inherit; height: 100%; }

.owo-card-link:hover .owo-card {
    border-color: var(--owo-line-2);
    background: var(--owo-panel-2);
}

/* ---------------------------------------------------------------- sub-heading
   WHMCS uses .sub-heading above blocks of content across many templates.       */

.sub-heading {
    margin: 34px 0 16px;
    padding: 0;
    border: 0;
}

.sub-heading:first-child { margin-top: 0; }

/* Section label. The reference site draws these as a short rule with a small
   heading; weight and the rule do the separating, so there is no tracked-caps
   treatment here — it would do nothing for the Chinese labels anyway. */
.sub-heading h2,
.sub-heading h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--owo-text-strong);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--owo-line);
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */

.form-group { margin-bottom: 18px; }

.control-label,
label {
    color: var(--owo-text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    background-color: var(--owo-bg-2);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    box-shadow: none;
    color: var(--owo-text);
    font-family: var(--owo-sans);
    font-size: 14px;
    height: auto;
    padding: 9px 12px;
    transition: border-color .15s ease, background-color .15s ease;
}

.form-control::placeholder { color: var(--owo-faint); }

.form-control:focus {
    background-color: var(--owo-panel-2);
    border-color: var(--owo-accent);
    box-shadow: none;
    color: var(--owo-text);
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: var(--owo-panel-2);
    color: var(--owo-muted);
    cursor: not-allowed;
}

select.form-control {
    padding-right: 32px;
    background-image: linear-gradient(45deg, transparent 50%, var(--owo-muted) 50%),
        linear-gradient(135deg, var(--owo-muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

html[data-theme="dark"] select.form-control option { background: var(--owo-panel-3); }

textarea.form-control { min-height: 110px; line-height: 1.6; }

.input-group-addon {
    background-color: var(--owo-panel-2);
    border: 1px solid var(--owo-line);
    color: var(--owo-muted);
    border-radius: var(--owo-rad-sm);
}

.input-group .form-control:first-child { border-radius: var(--owo-rad-sm) 0 0 var(--owo-rad-sm); }
.input-group .form-control:last-child { border-radius: 0 var(--owo-rad-sm) var(--owo-rad-sm) 0; }

.input-group-btn .btn {
    border-color: var(--owo-line-2);
    border-radius: 0 var(--owo-rad-sm) var(--owo-rad-sm) 0;
    margin-left: 0;
}

/* the registration / details "获取验证码" button is a primary action inside a
   group, so it keeps the accent fill */
.input-group-btn .btn-primary,
.input-group-btn .primary-solid-btn {
    border-radius: 0 var(--owo-rad-sm) var(--owo-rad-sm) 0;
    clip-path: none;
}

.help-block, .field-help-text {
    color: var(--owo-muted);
    display: block;
    font-size: 12.5px;
    margin-top: 5px;
}

/* .prepend-icon is a marker class in WHMCS markup; the glyph itself was a
   background image that no longer fits the flat surfaces, so fields are plain */
.form-group.prepend-icon .field { padding-left: 12px; }

.checkbox, .radio { margin-top: 10px; margin-bottom: 10px; }
.checkbox label, .radio label { font-weight: 400; color: var(--owo-text); }

input[type="checkbox"], input[type="radio"] { accent-color: var(--owo-accent); }

.has-error .form-control,
.form-control.has-error {
    border-color: var(--owo-danger);
}

.has-error .control-label,
.has-error .help-block { color: var(--owo-danger); }

.field-error-msg {
    color: var(--owo-danger);
    font-size: 12.5px;
    margin-top: 5px;
}

.form-control-feedback { color: var(--owo-muted); }

/* bootstrap-switch */
.bootstrap-switch {
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    background: var(--owo-panel-2);
}

.bootstrap-switch .bootstrap-switch-handle-on { background: var(--owo-accent); }
.bootstrap-switch .bootstrap-switch-handle-off { background: var(--owo-panel-3); }

/* intl-tel-input country list */
.intl-tel-input .country-list {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    box-shadow: var(--owo-shadow-2);
    color: var(--owo-text);
    z-index: 1050;
}

.intl-tel-input .country-list .country:hover,
.intl-tel-input .country-list .country.highlight {
    background: var(--owo-panel-2);
}

.intl-tel-input .country-list .divider {
    border-bottom-color: var(--owo-line);
}

.intl-tel-input .selected-flag { background: transparent; }

.intl-tel-input .flag-container:hover .selected-flag { background: var(--owo-panel-2); }

/* --------------------------------------------------------------------------
   8. Tables
   -------------------------------------------------------------------------- */

.table {
    color: var(--owo-text);
    margin-bottom: 0;
    font-size: 14px;
}

.table > thead > tr > th {
    border-bottom: 1px solid var(--owo-line-2);
    color: var(--owo-muted);
    font-size: 12.5px;
    font-weight: 500;
    padding: 12px 14px;
    white-space: nowrap;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td {
    border-top: 1px solid var(--owo-line);
    padding: 14px;
    vertical-align: middle;
}

.table > tbody > tr:hover > td { background: var(--owo-panel-2); }

.table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }
.table-striped > tbody > tr:nth-of-type(even) > td { background: var(--owo-panel-2); }

.table-hover > tbody > tr:hover { background: transparent; }

.table > tbody > tr > td a { font-weight: 600; }

.table .btn { margin: 2px 0; }

.table-responsive {
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table > thead > tr > th:first-child,
.table-responsive > .table > tbody > tr > td:first-child { padding-left: 18px; }

.table-responsive > .table > thead > tr > th:last-child,
.table-responsive > .table > tbody > tr > td:last-child { padding-right: 18px; }

/* a bare .table inside a panel shouldn't double up its border */
.panel > .table-responsive { border: 0; border-radius: 0; }

/* WHMCS tables carry status labels */
.label {
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 7px;
}

.label-success { background: var(--owo-ok); color: #04140c; }
.label-info { background: var(--owo-info); color: #08131c; }
.label-warning { background: var(--owo-warn); color: #1a1204; }
.label-danger { background: var(--owo-danger); color: #fff; }
.label-default { background: var(--owo-panel-3); color: var(--owo-muted); }
.label-primary { background: var(--owo-accent); color: var(--owo-accent-ink); }

/* status colours used by WHMCS markup */
.status-active, .status-Active { color: var(--owo-ok); }
.status-suspended, .status-Suspended { color: var(--owo-warn); }
.status-terminated, .status-Terminated, .status-cancelled { color: var(--owo-faint); }
.status-pending, .status-Pending { color: var(--owo-info); }

.grid-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.grid-controls .results { color: var(--owo-muted); font-size: 13.5px; }

/* pagination */
.pagination > li > a,
.pagination > li > span {
    background: var(--owo-panel);
    border-color: var(--owo-line);
    color: var(--owo-text);
    font-size: 13.5px;
    padding: 8px 13px;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background: var(--owo-panel-2);
    border-color: var(--owo-line-2);
    color: var(--owo-text-strong);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover {
    background: var(--owo-accent);
    border-color: var(--owo-accent);
    color: var(--owo-accent-ink);
}

.pagination > .disabled > a,
.pagination > .disabled > span {
    background: var(--owo-panel-2);
    border-color: var(--owo-line);
    color: var(--owo-faint);
}

/* --------------------------------------------------------------------------
   9. Tabs, navs, list groups
   -------------------------------------------------------------------------- */

.nav-tabs {
    border-bottom: 1px solid var(--owo-line);
    margin-bottom: 24px;
}

.nav-tabs > li > a {
    border: 0;
    border-radius: 0;
    color: var(--owo-muted);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 11px 16px;
}

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
    background: transparent;
    border: 0;
    color: var(--owo-text-strong);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--owo-accent);
    color: var(--owo-text-strong);
    margin-bottom: -1px;
}

.nav-tabs > li > a > i { color: var(--owo-muted); margin-right: 6px; }
.nav-tabs > li.active > a > i { color: var(--owo-accent); }

.tab-content > .tab-pane { padding-top: 4px; }

.nav-pills > li > a {
    border-radius: var(--owo-rad-sm);
    color: var(--owo-muted);
    font-size: 14px;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover {
    background: var(--owo-accent);
    color: var(--owo-accent-ink);
}

.list-group { border-radius: var(--owo-rad); }

/* The base stylesheet colours link items through `a.list-group-item`, which
   outranks a bare class selector; these rules match its specificity. */
.list-group-item,
a.list-group-item,
button.list-group-item {
    background: var(--owo-panel);
    border-color: var(--owo-line);
    color: var(--owo-text);
    font-size: 14px;
    padding: 12px 20px;
}

a.list-group-item:hover,
a.list-group-item:focus {
    background: var(--owo-panel-2);
    color: var(--owo-text-strong);
}

/* The base stylesheet marks the active sidebar row with
   `.panel-sidebar a.list-group-item.active`, so these selectors match that
   shape instead of a bare class. */
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus,
.panel-sidebar a.list-group-item.active,
.panel-sidebar a.list-group-item.active:hover,
.panel-sidebar a.list-group-item.active:focus {
    background: var(--owo-accent-wash);
    border-color: var(--owo-line);
    color: var(--owo-text-strong);
    border-left: 2px solid var(--owo-accent);
    padding-left: 18px;
}

.list-group-item > i { color: var(--owo-muted); }
.list-group-item.active > i { color: var(--owo-accent); }

.list-group-item .badge {
    background: var(--owo-panel-3);
    color: var(--owo-muted);
    font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   10. Alerts
   State is carried by the words first; colour is a thin rule and a muted tint,
   not a saturated one-hue box.
   -------------------------------------------------------------------------- */

.alert {
    background: var(--owo-panel-2);
    border: 1px solid var(--owo-line);
    border-left-width: 3px;
    border-radius: var(--owo-rad-sm);
    color: var(--owo-text);
    font-size: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.alert h4, .alert .alert-title { font-size: 14px; margin: 0 0 4px; font-weight: 700; }
.alert p:last-child { margin-bottom: 0; }

.alert-success { border-left-color: var(--owo-ok); }
.alert-info { border-left-color: var(--owo-info); }
.alert-warning { border-left-color: var(--owo-warn); }
.alert-danger, .alert-error { border-left-color: var(--owo-danger); }

.alert-success .alert-icon { color: var(--owo-ok); }
.alert-info .alert-icon { color: var(--owo-info); }
.alert-warning .alert-icon { color: var(--owo-warn); }
.alert-danger .alert-icon, .alert-error .alert-icon { color: var(--owo-danger); }

.alert a { font-weight: 600; }

.alert-dismissible .close {
    color: var(--owo-muted);
    opacity: .7;
    text-shadow: none;
}

.alert-dismissible .close:hover { color: var(--owo-text-strong); opacity: 1; }

/* the alert list WHMCS renders for form validation */
.alert-danger ul, .alert-error ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

/* --------------------------------------------------------------------------
   11. Sidebar
   -------------------------------------------------------------------------- */

.sidebar .panel-sidebar { margin-bottom: 18px; }

.sidebar .panel-sidebar .panel-heading { padding: 13px 18px; }

.sidebar .panel-sidebar .panel-title {
    font-size: 13.5px;
    letter-spacing: .02em;
    text-transform: none;
}

.sidebar .panel-sidebar .panel-title i:first-child { color: var(--owo-accent); }

.sidebar .list-group-item { padding: 10px 18px; font-size: 13.5px; }

.panel-minimise { cursor: pointer; color: var(--owo-faint); font-size: 12px; }

/* mobile select fallback */
.sidebar select.form-control { margin-top: 6px; }

/* --------------------------------------------------------------------------
   12. Page header band
   -------------------------------------------------------------------------- */

.owo-pagehead {
    background: var(--owo-bg-2);
    border-bottom: 1px solid var(--owo-line);
    padding: 40px 0 32px;
    margin-bottom: 36px;
}

.owo-pagehead h1 {
    font-size: 30px;
    margin: 0 0 6px;
}

.owo-pagehead p {
    color: var(--owo-muted);
    margin: 0;
    max-width: 780px;
}

.owo-pagehead .breadcrumb {
    background: transparent;
    margin: 14px 0 0;
    padding: 0;
    font-size: 13px;
}

.breadcrumb > li { color: var(--owo-muted); }
.breadcrumb > li > a { color: var(--owo-muted); }
.breadcrumb > li > a:hover { color: var(--owo-accent); }
.breadcrumb > .active { color: var(--owo-text); }
.breadcrumb > li + li:before { color: var(--owo-faint); padding: 0 8px; }

/* the "未实名认证" chip WHMCS renders inside the H1 */
.owo-pagehead .label { font-size: 11px; vertical-align: middle; }

/* --------------------------------------------------------------------------
   13. Home / marketing sections
   -------------------------------------------------------------------------- */

/* hero ---------------------------------------------------------------- */

.owo-hero {
    position: relative;
    background: var(--owo-bg);
    border-bottom: 1px solid var(--owo-line);
    padding: 108px 0 96px;
    overflow: hidden;
}

.owo-hero-art {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-dark.jpg");
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .5;
    pointer-events: none;
}

html[data-theme="light"] .owo-hero-art {
    background-image: url("../img/hero-light.jpg");
    opacity: .55;
}

/* the artwork fades into the page towards the copy side */
.owo-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--owo-bg) 0%, var(--owo-bg) 38%, transparent 78%);
}

.owo-hero-inner { position: relative; z-index: 1; }

.owo-hero-copy { max-width: 640px; }

.owo-hero-eyebrow {
    font-size: 12.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--owo-muted);
    margin-bottom: 22px;
}

.owo-hero-eyebrow .sep { color: var(--owo-faint); margin: 0 8px; }

.owo-hero h1 {
    font-size: 50px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
    margin: 0 0 20px;
}

.owo-hero h1 .accent { color: var(--owo-accent); }

.owo-hero-lead {
    color: var(--owo-muted);
    font-size: 16.5px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 560px;
}

.owo-hero-meta {
    color: var(--owo-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.owo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* search field on the home page */
.owo-search {
    align-items: stretch;
    display: flex;
    max-width: 560px;
    margin-bottom: 18px;
}

.owo-search .form-control {
    border-radius: var(--owo-rad-sm) 0 0 var(--owo-rad-sm);
    font-size: 15px;
    padding: 12px 14px;
}

.owo-search .btn {
    border-radius: 0 var(--owo-rad-sm) var(--owo-rad-sm) 0;
    clip-path: none;
    white-space: nowrap;
}

/* a row of facts under the hero — real figures only */
.owo-facts {
    border-top: 1px solid var(--owo-line);
    margin-top: 48px;
    padding-top: 28px;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owo-fact .owo-fact-value {
    color: var(--owo-text-strong);
    font-family: var(--owo-mono);
    font-size: 26px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.2;
}

.owo-fact .owo-fact-value .unit {
    color: var(--owo-muted);
    font-size: 15px;
    font-weight: 500;
    margin-left: 2px;
}

.owo-fact .owo-fact-label {
    color: var(--owo-muted);
    font-size: 13.5px;
    margin-top: 4px;
}

/* feature list ------------------------------------------------------- */

.owo-feature {
    display: flex;
    gap: 14px;
}

.owo-feature > i {
    color: var(--owo-accent);
    font-size: 16px;
    line-height: 1.65;
    flex: 0 0 auto;
}

.owo-feature h4 { font-size: 15.5px; margin: 0 0 4px; }
.owo-feature p { color: var(--owo-muted); font-size: 14px; margin: 0; }

/* bulleted spec list */
.owo-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.owo-list > li {
    color: var(--owo-muted);
    font-size: 13.5px;
    line-height: 1.7;
    padding-left: 15px;
    position: relative;
}

.owo-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .68em;
    width: 4px;
    height: 4px;
    background: var(--owo-accent);
}

/* home news cards ---------------------------------------------------- */

.owo-news {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 24px;
    transition: border-color .15s ease, background-color .15s ease;
}

.owo-news:hover { border-color: var(--owo-line-2); background: var(--owo-panel-2); }

.owo-news h3 {
    font-size: 16.5px;
    line-height: 1.45;
    margin: 0 0 8px;
}

.owo-news h3 a { color: var(--owo-text-strong); }
.owo-news h3 a:hover { color: var(--owo-accent); }

.owo-news .date {
    color: var(--owo-faint);
    font-family: var(--owo-mono);
    font-size: 11.5px;
    letter-spacing: .06em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.owo-news p {
    color: var(--owo-muted);
    font-size: 14px;
    flex: 1 1 auto;
    margin-bottom: 16px;
}

.owo-news .more { font-size: 13.5px; font-weight: 600; }

/* ordered deployment process — the one place ordinals carry real meaning */
.owo-steps {
    border-top: 1px solid var(--owo-line);
}

.owo-step {
    border-bottom: 1px solid var(--owo-line);
    display: flex;
    gap: 18px;
    padding: 18px 0;
}

.owo-step-no {
    color: var(--owo-accent);
    font-family: var(--owo-mono);
    font-size: 13px;
    font-weight: 500;
    flex: 0 0 auto;
    padding-top: 2px;
    letter-spacing: .04em;
}

.owo-step h4 { font-size: 15.5px; margin: 0 0 4px; }
.owo-step p { color: var(--owo-muted); font-size: 14px; margin: 0; }

/* closing call to action -------------------------------------------- */

.owo-cta {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    padding: 40px 44px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.owo-cta h2 { font-size: 24px; margin: 0 0 6px; }
.owo-cta p { color: var(--owo-muted); margin: 0; }
.owo-cta .owo-cta-actions { margin-left: auto; }

/* --------------------------------------------------------------------------
   14. Auth screens (login, register, password reset)
   These render without the header/footer chrome, so they own the viewport.
   -------------------------------------------------------------------------- */

.owo-auth {
    background: var(--owo-bg);
    color: var(--owo-text);
    min-height: 100vh;
}

.owo-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    min-height: 100vh;
}

/* the left panel is the brand side; on small screens it collapses away */
.owo-auth-aside {
    background: var(--owo-bg-2);
    border-right: 1px solid var(--owo-line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
}

.owo-auth-aside .owo-auth-art {
    position: absolute;
    right: -60px;
    bottom: -40px;
    width: 78%;
    max-width: 620px;
    opacity: .3;
    pointer-events: none;
}

html[data-theme="light"] .owo-auth-aside .owo-auth-art { opacity: .22; }

.owo-auth-aside-content { position: relative; z-index: 1; max-width: 520px; }

.owo-auth-aside h2 {
    font-size: 34px;
    line-height: 1.25;
    margin: 40px 0 16px;
}

.owo-auth-aside p { color: var(--owo-muted); font-size: 15px; max-width: 440px; }

.owo-auth-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.owo-auth-points li {
    color: var(--owo-text);
    font-size: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--owo-line);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.owo-auth-points li i { color: var(--owo-accent); margin-top: 4px; }
.owo-auth-points li span { color: var(--owo-muted); display: block; font-size: 13px; }

.owo-auth-main {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 48px 40px;
}

.owo-auth-card { width: 100%; max-width: 400px; }

.owo-auth-brand {
    display: block;
    margin-bottom: 28px;
}

.owo-auth-brand img { height: 38px; width: auto; }

.owo-auth-card h1 {
    font-size: 26px;
    margin: 0 0 6px;
}

.owo-auth-card .owo-auth-sub {
    color: var(--owo-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.owo-auth-card .form-actions { margin-top: 24px; }

.owo-auth-foot {
    color: var(--owo-muted);
    font-size: 13.5px;
    margin-top: 24px;
    text-align: center;
}

.owo-auth-card .forgot-link {
    float: right;
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

.owo-auth-card .checkbox { margin: 4px 0 18px; }

/* the language chooser that floats on auth screens */
.owo-auth-lang {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 5;
}

/* social sign-in divider */
.owo-divider {
    align-items: center;
    color: var(--owo-faint);
    display: flex;
    font-size: 12.5px;
    gap: 12px;
    margin: 26px 0;
}

.owo-divider::before,
.owo-divider::after {
    background: var(--owo-line);
    content: "";
    flex: 1 1 auto;
    height: 1px;
}

/* --------------------------------------------------------------------------
   15. Client dashboard
   -------------------------------------------------------------------------- */

.owo-tiles {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--owo-line);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    overflow: hidden;
    margin-bottom: var(--owo-gap);
}

.owo-tile {
    background: var(--owo-panel);
    display: block;
    padding: 20px 22px;
    color: inherit;
    transition: background-color .15s ease;
}

.owo-tile:hover { background: var(--owo-panel-2); }

.owo-tile .owo-tile-value {
    color: var(--owo-text-strong);
    font-family: var(--owo-mono);
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.15;
}

.owo-tile .owo-tile-label {
    color: var(--owo-muted);
    font-size: 13.5px;
    margin-top: 2px;
}

.owo-tile .owo-tile-icon {
    color: var(--owo-accent);
    float: right;
    font-size: 15px;
    opacity: .9;
}

/* the announcement / notice ribbon */
.owo-notice {
    align-items: center;
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-left: 3px solid var(--owo-accent);
    border-radius: var(--owo-rad-sm);
    display: flex;
    gap: 14px;
    margin-bottom: var(--owo-gap);
    padding: 14px 18px;
}

.owo-notice .owo-notice-body { flex: 1 1 auto; font-size: 14px; }
.owo-notice .owo-notice-body p { margin: 0; color: var(--owo-muted); }
.owo-notice .owo-notice-body strong { color: var(--owo-text-strong); display: block; margin-bottom: 2px; }
.owo-notice .close { color: var(--owo-muted); opacity: .7; }
.owo-notice .close:hover { color: var(--owo-text-strong); opacity: 1; }

.owo-notice-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.owo-notice-close {
    background: none;
    border: 0;
    color: var(--owo-faint);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 4px;
}

.owo-notice-close:hover { color: var(--owo-text-strong); }

/* knowledge-base search on the dashboard */
.owo-kbsearch {
    margin-bottom: var(--owo-gap);
    position: relative;
}

.owo-kbsearch .form-control {
    height: 46px;
    padding-left: 42px;
}

.owo-kbsearch .fa-search {
    color: var(--owo-faint);
    left: 16px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* notices injected by addon modules keep the same shell */
.owo-addon-notice + .owo-addon-notice { margin-top: -12px; }

.owo-notice-icon { color: var(--owo-accent); }

/* --------------------------------------------------------------------------
   16. Product details
   -------------------------------------------------------------------------- */

.owo-product-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--owo-line);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.owo-product-head h2 { font-size: 22px; margin: 0 0 6px; }
.owo-product-head .owo-product-icon { color: var(--owo-accent); font-size: 22px; }

.owo-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--owo-gap);
}

.product-info-wrap { border: 1px solid var(--owo-line); border-radius: var(--owo-rad); padding: 6px 20px; }

.product-info-list { list-style: none; margin: 0; padding: 0; }

.product-info-list > li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--owo-line);
    font-size: 14px;
}

.product-info-list > li:last-child { border-bottom: 0; }

.product-info-list .list-info-title { color: var(--owo-muted); }
.product-info-list .list-info-text { color: var(--owo-text); font-weight: 600; text-align: right; }

/* the meter WHMCS draws for disk / bandwidth usage */
.owo-meter { padding: 4px 0; }
.owo-meter .owo-meter-bar {
    background: var(--owo-panel-3);
    border-radius: 2px;
    height: 6px;
    overflow: hidden;
}

.owo-meter .owo-meter-fill { background: var(--owo-accent); height: 100%; }

/* --------------------------------------------------------------------------
   17. Tickets, downloads, KB
   -------------------------------------------------------------------------- */

.ticket-departments {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    padding: 20px 22px;
    height: 100%;
}

.ticket-departments h4 { font-size: 16px; margin: 0 0 8px; }
.ticket-departments p { color: var(--owo-muted); font-size: 14px; }

.owo-message {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    margin-bottom: 16px;
    overflow: hidden;
}

.owo-message-head {
    align-items: center;
    background: var(--owo-panel-2);
    border-bottom: 1px solid var(--owo-line);
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    font-size: 13.5px;
}

.owo-message-head .author { font-weight: 700; color: var(--owo-text-strong); }
.owo-message-head .when { color: var(--owo-muted); font-family: var(--owo-mono); font-size: 11.5px; }
.owo-message-body { padding: 18px; font-size: 14px; }
.owo-message-body img { max-width: 100%; height: auto; }

.owo-message.is-staff { border-left: 3px solid var(--owo-accent); }

/* --------------------------------------------------------------------------
   18. Modals, dropdowns, popovers, overlays
   -------------------------------------------------------------------------- */

.modal-backdrop.in { background: #000; opacity: .62; }

.modal-content {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    box-shadow: var(--owo-shadow-2);
    color: var(--owo-text);
}

.modal-header {
    border-bottom: 1px solid var(--owo-line);
    padding: 18px 22px;
}

.modal-title { font-size: 17px; color: var(--owo-text-strong); }

.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--owo-line); padding: 16px 22px; }

.modal-header .close,
.modal .close {
    color: var(--owo-muted);
    opacity: .75;
    text-shadow: none;
}

.modal-header .close:hover, .modal .close:hover { color: var(--owo-text-strong); opacity: 1; }

.modal-header.panel-heading,
.modal-footer.panel-footer { border-radius: 0; }

.dropdown-menu {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    box-shadow: var(--owo-shadow-2);
    color: var(--owo-text);
    font-size: 14px;
    padding: 6px;
}

.dropdown-menu > li > a {
    border-radius: var(--owo-rad-sm);
    color: var(--owo-text);
    padding: 8px 12px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--owo-panel-2);
    color: var(--owo-text-strong);
}

.dropdown-menu .divider { background: var(--owo-line); margin: 5px 0; }
.dropdown-menu > .active > a { background: var(--owo-accent-wash); color: var(--owo-text-strong); }

.popover {
    background: var(--owo-panel);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    box-shadow: var(--owo-shadow-2);
    color: var(--owo-text);
}

.popover-title {
    background: var(--owo-panel-2);
    border-bottom: 1px solid var(--owo-line);
    color: var(--owo-text-strong);
    font-size: 14px;
}

.popover.top > .arrow::after { border-top-color: var(--owo-panel); }
.popover.bottom > .arrow::after { border-bottom-color: var(--owo-panel); }
.popover.left > .arrow::after { border-left-color: var(--owo-panel); }
.popover.right > .arrow::after { border-right-color: var(--owo-panel); }

.tooltip-inner {
    background: var(--owo-panel-3);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    color: var(--owo-text);
    font-size: 12.5px;
    padding: 6px 10px;
}

.tooltip.top .tooltip-arrow { border-top-color: var(--owo-panel-3); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--owo-panel-3); }
.tooltip.left .tooltip-arrow { border-left-color: var(--owo-panel-3); }
.tooltip.right .tooltip-arrow { border-right-color: var(--owo-panel-3); }

#fullpage-overlay { background: rgba(5, 7, 15, .72); }
html[data-theme="light"] #fullpage-overlay { background: rgba(246, 248, 247, .78); }

#fullpage-overlay .outer-wrapper {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
}

#fullpage-overlay .inner-wrapper { color: var(--owo-text); text-align: center; }
#fullpage-overlay .inner-wrapper .msg { color: var(--owo-muted); font-size: 14px; }

/* --------------------------------------------------------------------------
   19. Progress, wells, misc Bootstrap pieces
   -------------------------------------------------------------------------- */

.progress {
    background: var(--owo-panel-3);
    border-radius: 2px;
    box-shadow: none;
    height: 6px;
    margin-bottom: 0;
    overflow: hidden;
}

.progress-bar { background: var(--owo-accent); box-shadow: none; }
.progress-bar-success { background: var(--owo-ok); }
.progress-bar-warning { background: var(--owo-warn); }
.progress-bar-danger { background: var(--owo-danger); }

.well {
    background: var(--owo-panel-2);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad);
    box-shadow: none;
    color: var(--owo-text);
}

blockquote {
    border-left: 2px solid var(--owo-accent);
    color: var(--owo-muted);
    font-size: 14px;
    padding: 4px 0 4px 18px;
}

.close { color: var(--owo-muted); opacity: .7; text-shadow: none; font-weight: 400; }
.close:hover, .close:focus { color: var(--owo-text-strong); opacity: 1; }

.caret { border-top-color: currentColor; }

/* the loading spinner: centred in its own box, rotates about its centre */
.owo-spinner {
    animation: owo-spin .9s linear infinite;
    border: 2px solid var(--owo-line-2);
    border-radius: 50%;
    border-top-color: var(--owo-accent);
    display: inline-block;
    height: 18px;
    transform-origin: center;
    width: 18px;
}

@keyframes owo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .owo-spinner { animation-duration: 2.4s; }
}

/* Toastr is used by WHMCS for inline notifications */
#toast-container > div {
    border-radius: var(--owo-rad-sm);
    box-shadow: var(--owo-shadow-2);
    opacity: 1;
}

/* DataTables */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter label .form-control {
    background: var(--owo-bg-2);
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    color: var(--owo-text);
    /* the base sheet paints a search icon into this field via background-image */
    background-image: none;
    padding-left: 12px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { color: var(--owo-muted); font-size: 13.5px; }

/* The base sheet turns the info row into a dark grey band with a hard-coded
   `padding: 21px 30px !important`, so the restatement has to match both its
   depth and its importance. */
div.dataTables_wrapper div.dataTables_info {
    background-color: transparent;
    border: 0;
    color: var(--owo-muted);
    padding: 10px 0 !important;
}

div.dataTables_wrapper div.dataTables_paginate {
    padding: 10px 0 !important;
}

/* the length control and sortable headers carry a light fill in the base sheet */
.dataTables_wrapper .dataTables_length {
    background-color: transparent;
    border: 0;
}

.dataTables_wrapper table.table-list thead th.sorting,
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc,
.dataTables_wrapper table.table-list thead th.sorting_asc_disabled,
.dataTables_wrapper table.table-list thead th.sorting_desc_disabled {
    background-color: var(--owo-panel-2);
    /* the base sheet draws a 4px green rule under sortable headers */
    border-bottom: 1px solid var(--owo-line);
    font-weight: 500;
}

.dataTables_wrapper table.table-list thead th:nth-child(even) {
    border-bottom-color: var(--owo-line);
}

/* the list tables used by products, tickets and invoices
   (.table-list thead th and .table-list tbody td both carry white in the base
   sheet, so the cell rule has to be restated at the same depth) */
table.table-list thead th,
table.table-list thead > tr > th,
.table-list > thead > tr > th {
    background-color: var(--owo-panel-2);
    border-bottom: 1px solid var(--owo-line);
    color: var(--owo-muted);
    text-align: left;
}

.table-list > tbody > tr > td,
table.table-list tbody td {
    background-color: transparent;
    border-color: var(--owo-line);
    color: var(--owo-text);
}

.table-list > tbody > tr:hover > td,
table.table-list tbody > tr:hover > td { background: var(--owo-panel-2); }

/* the product badge on the details page */
div.product-details div.product-icon {
    background-color: var(--owo-panel-2);
    border: 1px solid var(--owo-line);
    color: var(--owo-accent);
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.owo-footer {
    background: var(--owo-bg-2);
    border-top: 1px solid var(--owo-line);
    margin-top: 64px;
    padding: 52px 0 0;
    font-size: 13.5px;
}

.owo-footer h4 {
    color: var(--owo-text-strong);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.owo-footer ul { list-style: none; margin: 0; padding: 0; }
.owo-footer li { margin-bottom: 9px; }
.owo-footer a { color: var(--owo-muted); }
.owo-footer a:hover { color: var(--owo-accent); }

.owo-footer .owo-footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }

.owo-footer .owo-footer-legal {
    color: var(--owo-faint);
    font-size: 12.5px;
    line-height: 1.9;
}

.owo-footer .owo-footer-legal a { color: var(--owo-faint); }
.owo-footer .owo-footer-legal a:hover { color: var(--owo-accent); }

.owo-footer .owo-footer-contact { color: var(--owo-muted); }
.owo-footer .owo-footer-contact strong { color: var(--owo-text); }

.owo-footer-bottom {
    border-top: 1px solid var(--owo-line);
    color: var(--owo-faint);
    font-size: 12.5px;
    margin-top: 40px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.owo-footer-bottom p { margin: 0; }

.owo-backtop {
    align-items: center;
    border: 1px solid var(--owo-line);
    border-radius: var(--owo-rad-sm);
    color: var(--owo-muted);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.owo-backtop:hover { border-color: var(--owo-accent); color: var(--owo-accent); }

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */

.owo-mt-0 { margin-top: 0 !important; }
.owo-mt-1 { margin-top: 8px !important; }
.owo-mt-2 { margin-top: 16px !important; }
.owo-mt-3 { margin-top: 24px !important; }
.owo-mt-4 { margin-top: 32px !important; }
.owo-mb-0 { margin-bottom: 0 !important; }
.owo-mb-1 { margin-bottom: 8px !important; }
.owo-mb-2 { margin-bottom: 16px !important; }
.owo-mb-3 { margin-bottom: 24px !important; }
.owo-mb-4 { margin-bottom: 32px !important; }
.owo-ml-1 { margin-left: 8px !important; }

.mt-10 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }

.owo-flex { display: flex; }
.owo-flex-wrap { flex-wrap: wrap; }
.owo-items-center { align-items: center; }
.owo-justify-between { justify-content: space-between; }
.owo-gap-1 { gap: 8px; }
.owo-gap-2 { gap: 16px; }
.owo-gap-3 { gap: 24px; }

.owo-hr {
    border: 0;
    border-top: 1px solid var(--owo-line);
    margin: 24px 0;
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .owo-hero h1 { font-size: 46px; }
    .owo-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    :root { --owo-header-h: 62px; }

    .owo-nav-toggle { display: inline-flex; }

    /* the nav becomes a panel that opens under the header */
    .owo-nav {
        background: var(--owo-panel);
        border-bottom: 1px solid var(--owo-line);
        display: none;
        left: 0;
        padding: 8px 16px 16px;
        position: fixed;
        right: 0;
        top: var(--owo-header-h);
        max-height: calc(100vh - var(--owo-header-h));
        overflow-y: auto;
        z-index: 1029;
        box-shadow: var(--owo-shadow-2);
    }

    .owo-nav.is-open { display: block; }

    .owo-nav > ul { display: block; }

    .owo-nav > ul > li > a {
        border-bottom: 1px solid var(--owo-line);
        font-size: 15px;
        padding: 13px 2px;
    }

    .owo-nav > ul > li.active > a::after,
    .owo-nav > ul > li.current > a::after { display: none; }

    .owo-nav > ul > li.active > a,
    .owo-nav > ul > li.current > a { color: var(--owo-accent); }

    .owo-nav .dropdown-menu {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0 0 6px 14px;
        position: static;
        float: none;
        width: auto;
    }

    .owo-nav > ul > li > a.dropdown-toggle .caret { float: right; margin-top: 8px; }

    .owo-hero { padding: 72px 0 64px; }
    .owo-hero h1 { font-size: 40px; }
    .owo-hero-art { opacity: .28; background-position: center; }
    .owo-hero-art::after { background: linear-gradient(180deg, var(--owo-bg) 20%, transparent 100%); }

    .owo-pagehead { padding: 30px 0 24px; margin-bottom: 28px; }

    .owo-grid-3, .owo-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .owo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* auth screens drop the brand panel and centre the card */
    .owo-auth-shell { grid-template-columns: minmax(0, 1fr); }
    .owo-auth-aside { display: none; }
    /* On phones the footer sits below the card, so a forced 100vh only adds
       empty space above it; let the card start at the top instead. */
    .owo-auth-main { align-items: flex-start; min-height: 0; padding: 32px 20px 48px; }

    .owo-cta { padding: 30px 28px; }
    .owo-cta .owo-cta-actions { margin-left: 0; }

    /* the sidebar sits above the content on small screens */
    .sidebar { margin-bottom: 24px; }
}

@media (max-width: 767px) {
    body { font-size: 14.5px; }

    .owo-section { padding: 48px 0; }
    .owo-section-head { margin-bottom: 26px; }
    .owo-section-head h2 { font-size: 24px; }

    .owo-hero { padding: 56px 0 48px; }
    .owo-hero h1 { font-size: 32px; }
    .owo-hero-lead { font-size: 15px; }
    .owo-hero-actions .btn { flex: 1 1 auto; text-align: center; }

    .owo-facts { gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 34px; }
    .owo-fact .owo-fact-value { font-size: 22px; }

    .owo-grid-2, .owo-grid-3, .owo-grid-4 { grid-template-columns: minmax(0, 1fr); }

    .owo-pagehead h1 { font-size: 24px; }

    h1, .h1 { font-size: 26px; }
    h2, .h2 { font-size: 21px; }

    .custom-card-block { padding: 18px; }
    .panel-body { padding: 16px; }
    .panel-heading { padding: 14px 16px; }

    .table > thead > tr > th { font-size: 11px; padding: 10px 12px; }
    .table > tbody > tr > td { padding: 12px; }

    .owo-search { flex-direction: column; }
    .owo-search .form-control { border-radius: var(--owo-rad-sm) var(--owo-rad-sm) 0 0; }
    .owo-search .btn { border-radius: 0 0 var(--owo-rad-sm) var(--owo-rad-sm); width: 100%; }

    .owo-product-head { gap: 14px; }
    .product-info-list > li { flex-wrap: wrap; gap: 4px; }
    .product-info-list .list-info-text { text-align: left; }

    .owo-footer { padding-top: 40px; }
    .owo-footer-bottom { margin-top: 28px; }

    .btn { padding: 9px 15px; }

    /* full-width action buttons on the narrowest layouts */
    .owo-product-actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (max-width: 480px) {
    .owo-hero h1 { font-size: 28px; }
    .owo-tiles { grid-template-columns: minmax(0, 1fr); }
    .owo-facts { grid-template-columns: minmax(0, 1fr); }
    .owo-cta { padding: 24px 20px; }
    .owo-auth-main { padding: 28px 16px; }

    /* Below 480px the header row runs out of room: the basket lives in the
       account menu and cart.php is one click away, so it steps aside and the
       remaining controls tighten up. */
    .owo-header .container { padding-left: 12px; padding-right: 12px; }
    .owo-actions { gap: 4px; }
    .owo-icon-btn { width: 34px; height: 34px; font-size: 14px; }
    .owo-actions .owo-cart-btn { display: none; }
    .owo-brand img { max-height: 30px; }
    .owo-brand .owo-brand-text { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   23. Print — invoices and quotes get a paper palette
   -------------------------------------------------------------------------- */

/* status pills on tickets, orders and domains: the word carries the state, the
   colour only reinforces it. The base sheet fills these white. */
.status {
    background-color: var(--owo-panel-2);
    border: 1px solid var(--owo-line);
    border-radius: 3px;
    color: var(--owo-text);
}

.status.status-pending,
.status.status-pending.transfer,
.status.status-suspended,
.status.status-customer-reply {
    border-color: rgba(224, 169, 74, .45);
    color: var(--owo-warn);
}

.status.status-active,
.status.status-open,
.status.status-completed,
.status.status-answered {
    border-color: rgba(78, 201, 138, .45);
    color: var(--owo-ok);
}

.status.status-cancelled,
.status.status-terminated,
.status.status-expired,
.status.status-fraud {
    border-color: var(--owo-line-2);
    color: var(--owo-muted);
}

.status.status-custom {
    background-color: var(--owo-panel-2);
    border: 1px solid var(--owo-line-2);
    color: var(--owo-text);
}

/* --------------------------------------------------------------------------
   20. Legal pages (TOS / AUP)

   Long-form Chinese legal text: a comfortable measure, generous leading, and
   headings that separate clauses without shouting.
   -------------------------------------------------------------------------- */

.owo-legal {
    color: var(--owo-text);
    font-size: 15px;
    line-height: 1.9;
    max-width: 78ch;
}

.owo-legal h2 {
    border-bottom: 1px solid var(--owo-line);
    font-size: 26px;
    margin: 0 0 6px;
    padding-bottom: 14px;
}

.owo-legal h3 {
    font-size: 19px;
    margin: 34px 0 10px;
}

.owo-legal h4 {
    color: var(--owo-text-strong);
    font-size: 16px;
    margin: 26px 0 8px;
}

.owo-legal p { margin: 0 0 14px; }

.owo-legal strong { color: var(--owo-text-strong); }

@media print {
    :root,
    html[data-theme="light"] {
        --owo-bg: #fff;
        --owo-panel: #fff;
        --owo-panel-2: #fff;
        --owo-text: #000;
        --owo-text-strong: #000;
        --owo-muted: #444;
        --owo-line: #ccc;
        --owo-accent: #000;
    }

    .owo-header, .owo-footer, .sidebar, .owo-product-actions, .btn { display: none !important; }

    body { background: #fff; color: #000; padding-top: 0; }
}
