/* PiglinHost custom styles. Loaded explicitly from includes/head.tpl with a cache-busting version. */

/* PiglinHost login panel (includes/tt/kohost/tt-login-panel.tpl) */
.ph-login-panel {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    align-items: center;
    padding: 50px;
    color: #fff;
    background: linear-gradient(135deg, #0840a0 0%, #0145c6 100%);
}
.ph-login-panel::before,
.ph-login-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.ph-login-panel::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -140px;
}
.ph-login-panel::after {
    width: 300px;
    height: 300px;
    bottom: -120px;
    left: -100px;
}
.ph-login-panel-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}
.ph-login-logo {
    max-height: 44px;
    margin-bottom: 32px;
}
.ph-login-panel .ph-login-title {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 8px;
}
.ph-login-lead {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}
.ph-login-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.ph-login-icon {
    flex: 0 0 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.1rem;
}
.ph-login-features strong {
    display: block;
    color: #fff;
}
.ph-login-features span {
    color: rgba(255, 255, 255, 0.75);
}
.ph-login-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.ph-login-links a {
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}
.ph-login-links a:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
}

/* PiglinHost header, page header & footer: match piglinhost.com blue gradient */
.tt-header,
.tt-header.affix,
[data-bs-theme="dark"] .tt-header.affix,
.tt-page-header.bg-gradient,
.footer.tt-footer {
    background: linear-gradient(75deg, #0840a0, #0145c6) !important;
}
.tt-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tt-header.affix {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.tt-header .logo-img {
    max-height: 40px;
}
/* Toolbar icons (search, notifications, account, cart, menu) are always on the blue bar */
.tt-header .tt-toolbar-wrap .toolbar > li > a,
.tt-header .tt-toolbar-wrap .toolbar > li > button,
.tt-header .tt-toolbar-wrap .toolbar > li > a.cart-btn,
.tt-header .tt-toolbar-wrap .toolbar > li > button.btn {
    color: #fff;
    opacity: 0.85;
}
.tt-header .tt-toolbar-wrap .toolbar > li > a:hover,
.tt-header .tt-toolbar-wrap .toolbar > li > button:hover {
    color: #fff;
    opacity: 1;
}
/* Bold main nav links */
.tt-header #nav > li > a {
    font-weight: 600;
}
/* Main nav links sit on the blue bar from xl up; below that they live in the light off-canvas menu */
@media (min-width: 1200px) {
    .tt-header #nav > li > a {
        color: #fff;
        opacity: 0.95;
    }
    .tt-header #nav > li > a:hover {
        color: #fff;
        opacity: 1;
    }
}
.footer.tt-footer .tt-footer-menu li a,
.footer.tt-footer .tt-footer-bottom a {
    color: #fff;
    opacity: 0.8;
}
.footer.tt-footer .tt-footer-menu li a:hover,
.footer.tt-footer .tt-footer-bottom a:hover {
    opacity: 1;
}
.footer.tt-footer p,
.footer.tt-footer .copyright {
    color: rgba(255, 255, 255, 0.8);
}
.footer.tt-footer .tt-footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================
   PiglinHost Help Center (knowledgebase.tpl)
   ========================================================== */
.ph-help {
    --ph-blue: #0145c6;
    --ph-gradient: linear-gradient(75deg, #0840a0, #0145c6);
    --ph-surface: #fff;
    --ph-surface-alt: #f6f8fc;
    --ph-border: #e3e8f1;
    --ph-heading: #1d1d1f;
    --ph-text: #5b6373;
    padding-bottom: 8px;
}
[data-bs-theme="dark"] .ph-help {
    --ph-surface: #1e293b;
    --ph-surface-alt: #0f172a;
    --ph-border: #334155;
    --ph-heading: #f8fafc;
    --ph-text: #94a3b8;
}

/* Buttons */
.ph-help .btn.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 0;
    border-radius: 10px;
    font-family: var(--font-family-monospace);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ph-help .btn.ph-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}
.ph-help .btn.ph-btn:focus {
    box-shadow: 0 0 0 3px rgba(1, 69, 198, 0.3);
}
.ph-help .btn.ph-btn-primary {
    background: var(--ph-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(1, 69, 198, 0.25);
}
.ph-help .btn.ph-btn-primary:hover {
    color: #fff;
    box-shadow: 0 6px 16px rgba(1, 69, 198, 0.35);
}
.ph-help .btn.ph-btn-light {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.ph-help .btn.ph-btn-light:hover {
    background: #f1f4fa;
    color: #1d1d1f;
}
.ph-help .ph-link {
    color: var(--ph-blue);
    font-weight: 500;
}
[data-bs-theme="dark"] .ph-help .ph-link {
    color: #8fb0ff;
}

/* Search hero */
.ph-help-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 44px 40px;
    border-radius: 16px;
    background: var(--ph-gradient);
    color: #fff;
    text-align: center;
}
.ph-help-hero::before,
.ph-help-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.ph-help-hero::before {
    width: 320px;
    height: 320px;
    top: -140px;
    right: -80px;
}
.ph-help-hero::after {
    width: 220px;
    height: 220px;
    bottom: -110px;
    left: -60px;
}
.ph-help-hero > * {
    position: relative;
    z-index: 1;
}
.ph-help .ph-help-hero-title {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.9rem;
}
.ph-help-hero-lead {
    margin: 0 auto 24px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.85);
}
.ph-help-search {
    display: flex;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 6px 6px 6px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.ph-help-search-icon {
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.8);
}
.ph-help .ph-help-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
}
.ph-help .ph-help-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Section boxes */
.ph-box {
    margin-bottom: 24px;
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    background: var(--ph-surface);
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}
.ph-box-header {
    display: flex;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--ph-border);
}
.ph-box-header-icon {
    flex: 0 0 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    border-radius: 12px;
    background: rgba(1, 69, 198, 0.1);
    color: var(--ph-blue);
    font-size: 1.1rem;
}
[data-bs-theme="dark"] .ph-box-header-icon {
    background: rgba(143, 176, 255, 0.12);
    color: #8fb0ff;
}
.ph-help .ph-box-title {
    margin: 0;
    color: var(--ph-heading);
    font-size: 1.2rem;
}
.ph-box-subtitle {
    margin: 2px 0 0;
    color: var(--ph-text);
}
.ph-box-body {
    padding: 28px;
}
.ph-box-footer {
    padding: 14px 28px;
    border-top: 1px solid var(--ph-border);
    background: var(--ph-surface-alt);
    color: var(--ph-text);
    font-size: 13px;
}

/* Support departments */
.ph-dept {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--ph-border);
    border-radius: 14px;
    background: var(--ph-surface-alt);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ph-dept:hover {
    transform: translateY(-3px);
    border-color: rgba(1, 69, 198, 0.4);
    box-shadow: 0 10px 24px rgba(1, 69, 198, 0.1);
}
.ph-dept-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--ph-gradient);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 6px 14px rgba(1, 69, 198, 0.25);
}
.ph-help .ph-dept-title {
    margin-bottom: 6px;
    color: var(--ph-heading);
    font-size: 1rem;
}
.ph-dept-text {
    margin-bottom: 16px;
    color: var(--ph-text);
    font-size: 14px;
}
.ph-dept-badge {
    align-self: flex-start;
    margin: 0 0 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff4e0;
    color: #9a6200;
    font-size: 12px;
    font-weight: 500;
}
[data-bs-theme="dark"] .ph-dept-badge {
    background: rgba(249, 149, 27, 0.15);
    color: #f9b45b;
}
.ph-dept .btn.ph-btn {
    margin-top: auto;
    width: 100%;
}

/* Discord & status banners */
.ph-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 26px 28px;
    border-radius: 16px;
    color: #fff;
}
.ph-banner::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    top: -90px;
    right: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.ph-banner > * {
    position: relative;
    z-index: 1;
}
.ph-banner-discord {
    background: linear-gradient(75deg, #4752c4, #5865f2);
}
.ph-banner-status {
    background: linear-gradient(75deg, #0a2f74, #0840a0);
}
.ph-banner-icon {
    flex: 0 0 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.6rem;
}
.ph-banner-avatar {
    padding: 0;
    border-radius: 50%;
    background: none;
}
.ph-banner-avatar img {
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}
.ph-banner-avatar-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #5865f2;
    border-radius: 50%;
    background: #fff;
    color: #5865f2;
    font-size: 12px;
}
.ph-banner-body {
    flex: 1 1 auto;
    margin-right: 18px;
}
.ph-help .ph-banner-title {
    margin-bottom: 4px;
    color: #fff;
    font-size: 1.1rem;
}
.ph-banner-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}
.ph-help .ph-banner-link {
    display: inline-block;
    margin-top: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}
.ph-help .ph-banner-link:hover {
    color: rgba(255, 255, 255, 0.85);
}
.ph-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #fff;
    vertical-align: middle;
    animation: ph-status-pulse 2s infinite;
}
.ph-node-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}
.ph-node-list li + li {
    margin-top: 2px;
}
.ph-node-list strong {
    color: #fff;
}
.ph-node-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    vertical-align: middle;
}
.ph-node-dot.is-up {
    background: #3ddc84;
}
.ph-node-dot.is-down {
    background: #ff5c5c;
}
.ph-node-dot.is-maintenance {
    background: #ffc107;
}
@keyframes ph-status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Knowledgebase categories */
.ph-help .ph-kb-cat {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 16px 18px;
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    background: var(--ph-surface-alt);
    color: var(--ph-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ph-help .ph-kb-cat:hover {
    transform: translateY(-2px);
    border-color: rgba(1, 69, 198, 0.4);
    box-shadow: 0 8px 20px rgba(1, 69, 198, 0.08);
    text-decoration: none;
}
.ph-kb-cat-icon {
    flex: 0 0 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    border-radius: 10px;
    background: rgba(1, 69, 198, 0.1);
    color: var(--ph-blue);
}
[data-bs-theme="dark"] .ph-kb-cat-icon {
    background: rgba(143, 176, 255, 0.12);
    color: #8fb0ff;
}
.ph-kb-cat-body {
    flex: 1 1 auto;
    min-width: 0;
}
.ph-kb-cat-name {
    display: block;
    color: var(--ph-heading);
    font-family: var(--font-family-monospace);
    font-weight: 500;
}
.ph-kb-cat-desc {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}
.ph-kb-cat-count {
    flex: 0 0 auto;
    min-width: 30px;
    margin-left: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ph-surface);
    border: 1px solid var(--ph-border);
    color: var(--ph-heading);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* Popular articles */
.ph-help .ph-kb-article {
    display: flex;
    align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid var(--ph-border);
    color: var(--ph-text);
    transition: background 0.15s ease;
}
.ph-help .ph-kb-article:last-child {
    border-bottom: 0;
}
.ph-help .ph-kb-article:hover {
    background: var(--ph-surface-alt);
    text-decoration: none;
}
.ph-kb-article-icon {
    margin-right: 16px;
    color: var(--ph-blue);
    font-size: 1.1rem;
}
[data-bs-theme="dark"] .ph-kb-article-icon {
    color: #8fb0ff;
}
.ph-kb-article-body {
    flex: 1 1 auto;
    min-width: 0;
}
.ph-kb-article-title {
    display: block;
    color: var(--ph-heading);
    font-weight: 500;
}
.ph-kb-article-excerpt {
    display: block;
    font-size: 13px;
    line-height: 1.5;
}
.ph-kb-article-arrow {
    margin-left: 16px;
    color: var(--ph-text);
    font-size: 12px;
    transition: transform 0.15s ease;
}
.ph-help .ph-kb-article:hover .ph-kb-article-arrow {
    transform: translateX(3px);
    color: var(--ph-blue);
}

/* Assistant answer (js/ph-assistant.js) */
.ph-help .btn.ph-btn-discord {
    background: #5865f2;
    color: #fff;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.ph-help .btn.ph-btn-discord:hover {
    background: #4752c4;
    color: #fff;
}
.ph-ai-question {
    font-style: italic;
}
.ph-ai-muted {
    color: var(--ph-text);
}
.ph-ai-answer {
    color: var(--ph-heading);
    line-height: 1.65;
}
.ph-ai-answer p,
.ph-ai-guide-body p {
    margin-bottom: 10px;
}
.ph-ai-answer ul,
.ph-ai-answer ol,
.ph-ai-guide-body ul,
.ph-ai-guide-body ol {
    margin-bottom: 10px;
    padding-left: 1.3rem;
}
.ph-ai li {
    margin-bottom: 4px;
}
.ph-help .ph-ai-heading {
    margin: 18px 0 8px;
    color: var(--ph-heading);
    font-size: 1rem;
}
.ph-ai code {
    padding: 1px 6px;
    border: 1px solid var(--ph-border);
    border-radius: 6px;
    background: var(--ph-surface-alt);
    color: var(--ph-heading);
    font-size: 0.9em;
}
.ph-help .ph-ai-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 10px;
    border-radius: 999px;
    background: rgba(1, 69, 198, 0.08);
    color: var(--ph-blue);
    font-size: 0.92em;
    font-weight: 500;
    white-space: nowrap;
}
.ph-help .ph-ai-inline-link:hover {
    background: rgba(1, 69, 198, 0.15);
    text-decoration: none;
}
[data-bs-theme="dark"] .ph-help .ph-ai-inline-link {
    background: rgba(143, 176, 255, 0.12);
    color: #8fb0ff;
}

/* Related articles as buttons */
.ph-ai-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.ph-help .ph-ai-link,
.ph-ai-guide-toggle {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    background: var(--ph-surface-alt);
    color: var(--ph-heading);
    font-family: var(--font-family-monospace);
    font-weight: 500;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ph-help .ph-ai-link:hover {
    transform: translateY(-2px);
    border-color: rgba(1, 69, 198, 0.4);
    box-shadow: 0 8px 20px rgba(1, 69, 198, 0.08);
    color: var(--ph-heading);
    text-decoration: none;
}
.ph-ai-link-icon {
    flex: 0 0 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 10px;
    background: rgba(1, 69, 198, 0.1);
    color: var(--ph-blue);
}
[data-bs-theme="dark"] .ph-ai-link-icon {
    background: rgba(143, 176, 255, 0.12);
    color: #8fb0ff;
}
.ph-ai-link-title {
    flex: 1 1 auto;
    min-width: 0;
}
.ph-ai-link-arrow,
.ph-ai-guide-chevron {
    margin-left: 12px;
    color: var(--ph-text);
    font-size: 12px;
}

/* Step-by-step guide with screenshots */
.ph-ai-guide {
    margin-top: 16px;
}
.ph-ai-guide-toggle {
    width: 100%;
    cursor: pointer;
}
.ph-ai-guide-toggle:hover {
    border-color: rgba(1, 69, 198, 0.4);
}
.ph-ai-guide-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 69, 198, 0.3);
}
.ph-ai-guide-toggle[aria-expanded="true"] {
    border-radius: 12px 12px 0 0;
}
.ph-ai-guide-toggle[aria-expanded="true"] .ph-ai-guide-chevron {
    transform: rotate(180deg);
}
.ph-ai-guide-label {
    flex: 1 1 auto;
}
.ph-ai-guide-label small {
    display: block;
    color: var(--ph-text);
    font-family: var(--font-family-sans-serif);
    font-weight: 400;
}
.ph-ai-guide-body {
    padding: 6px 22px 18px;
    border: 1px solid var(--ph-border);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    color: var(--ph-heading);
}
.ph-ai-figure {
    margin: 10px 0 18px;
}
.ph-ai-figure img {
    display: block;
    max-width: 100%;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
}
.ph-ai-figure figcaption {
    margin-top: 6px;
    color: var(--ph-text);
    font-size: 13px;
}
.ph-ai-guide-more {
    margin: 4px 0 0;
}

/* Footer: Support ticket and Discord */
.ph-box-footer.ph-ai-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    font-size: 14px;
}
.ph-ai-footer-text {
    flex: 1 1 260px;
}
.ph-ai-footer.is-unanswered {
    background: rgba(1, 69, 198, 0.06);
    color: var(--ph-heading);
}
.ph-ai-footer.is-unanswered strong {
    display: block;
}
.ph-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ph-ai-search-all {
    flex-basis: 100%;
    font-size: 13px;
}

/* Help centre article pages (guides-article.tpl) */
.ph-help .ph-guide-title {
    font-size: 1.45rem;
}
.ph-guide-content {
    color: var(--ph-heading);
    font-size: 15px;
    line-height: 1.7;
}
.ph-guide-content > :first-child {
    margin-top: 0;
}
.ph-help .ph-guide-content h3,
.ph-help .ph-guide-content h4,
.ph-help .ph-guide-content h5 {
    margin: 28px 0 10px;
    color: var(--ph-heading);
}
.ph-help .ph-guide-content h3 {
    font-size: 1.2rem;
}
.ph-help .ph-guide-content h4,
.ph-help .ph-guide-content h5 {
    font-size: 1.05rem;
}
.ph-guide-content p,
.ph-guide-content ul,
.ph-guide-content ol {
    margin-bottom: 14px;
}
.ph-guide-content ul,
.ph-guide-content ol {
    padding-left: 1.4rem;
}
.ph-guide-content li {
    margin-bottom: 6px;
}
.ph-help .ph-guide-content a {
    color: var(--ph-blue);
    font-weight: 500;
}
[data-bs-theme="dark"] .ph-help .ph-guide-content a {
    color: #8fb0ff;
}
.ph-guide-content code {
    padding: 1px 6px;
    border: 1px solid var(--ph-border);
    border-radius: 6px;
    background: var(--ph-surface-alt);
    color: var(--ph-heading);
    font-size: 0.9em;
}
.ph-guide-content pre {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    background: var(--ph-surface-alt);
}
.ph-guide-content pre code {
    padding: 0;
    border: 0;
    background: none;
}
.ph-guide-figure {
    margin: 14px 0 22px;
}
.ph-guide-figure img {
    display: block;
    max-width: 100%;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
}
.ph-guide-figure figcaption {
    margin-top: 8px;
    color: var(--ph-text);
    font-size: 13px;
}

/* Support ticket departments page (supportticketsubmit-stepone.tpl) */
.ph-dept-row {
    margin-bottom: -24px;
}

/* Help Center: small screens */
@media (max-width: 767px) {
    .ph-ai-actions,
    .ph-ai-actions .btn.ph-btn {
        width: 100%;
    }
    .ph-help-hero {
        padding: 32px 20px;
    }
    .ph-help .ph-help-hero-title {
        font-size: 1.5rem;
    }
    .ph-box-header,
    .ph-box-body {
        padding: 20px;
    }
    .ph-help .ph-kb-article {
        padding: 14px 20px;
    }
    .ph-banner {
        flex-wrap: wrap;
    }
    .ph-banner-body {
        flex-basis: calc(100% - 74px);
        margin-right: 0;
    }
    .ph-banner .btn.ph-btn {
        width: 100%;
        margin-top: 18px;
    }
}
@media (max-width: 480px) {
    .ph-help-search {
        flex-wrap: wrap;
        padding: 6px;
    }
    .ph-help-search-icon {
        display: none;
    }
    .ph-help .ph-help-search-input {
        padding: 0 12px;
    }
    .ph-help-search .btn.ph-btn {
        width: 100%;
    }
}


/* Minecraft tier icon on the service details page (clientareaproductdetails.tpl) */
.product-icon .ph-tier-icon {
    display: block;
    width: auto;
    height: 74px;
    margin: 0 auto 10px;
}

/* Small Minecraft tier icon: services table (clientareaproducts.tpl) & dashboard panel (active-products-services-item.tpl) */
.ph-tier-icon-sm {
    flex: 0 0 auto;
    width: auto;
    height: 34px;
    margin-right: 12px;
}
.div-service-item .ph-tier-icon-dash {
    height: 30px;
    margin: 0 0 0 12px;
}

/* Dashboard "Manage" button on each service (active-products-services-item.tpl) */
.div-service-buttons .btn.ph-btn-manage {
    border: 0;
    border-radius: 8px;
    padding: 5px 14px;
    background: linear-gradient(75deg, #0840a0, #0145c6);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(1, 69, 198, 0.25);
}
.div-service-buttons .btn.ph-btn-manage:hover,
.div-service-buttons .btn.ph-btn-manage:focus {
    color: #fff;
    background: linear-gradient(75deg, #073a91, #013db0);
}

/* Cancellation submitted notice (clientareacancelrequest.tpl) */
.ph-cancel-notice {
    margin-bottom: 24px;
    border: 2px solid #f5a524;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
[data-bs-theme="dark"] .ph-cancel-notice {
    background: #1e293b;
}
.ph-cancel-notice-header {
    padding: 14px 24px;
    background: #f5a524;
    color: #1d1d1f;
    font-family: var(--font-family-monospace);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.ph-cancel-notice-body {
    padding: 4px 24px;
}
.ph-cancel-notice-section {
    padding: 20px 0;
}
.ph-cancel-notice-section + .ph-cancel-notice-section {
    border-top: 1px solid var(--border-color);
}
.ph-cancel-notice .ph-cancel-notice-title {
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}
.ph-cancel-notice-title .fa-check-circle {
    color: #1e9e4a;
}
.ph-cancel-notice-title .fa-credit-card {
    color: #0145c6;
}
.ph-cancel-notice a {
    color: #0145c6;
    font-weight: 500;
    text-decoration: underline;
}
[data-bs-theme="dark"] .ph-cancel-notice a,
[data-bs-theme="dark"] .ph-cancel-notice-title .fa-credit-card {
    color: #8fb0ff;
}
.ph-cancel-notice-title .fa-hdd {
    color: #e83737;
}

/* Discord account linking (discord-link.tpl) */
.ph-discord-user {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ph-discord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: 0 0 48px;
}
.ph-discord-name {
    color: var(--ph-heading);
    font-weight: 600;
}
