:root {
    --brand: #ea5455;
    --brand-dark: #d94a4b;
    --ink: #1f2937;
    --muted: #6b7280;
    --surface: #ffffff;
    --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background: #f3f4f6;
}

a { color: inherit; text-decoration: none; }

.support-shell { min-height: 100vh; display: flex; flex-direction: column; }

.support-topbar {
    background: var(--brand);
    color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.support-topbar-inner,
.support-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

@media (max-width: 768px) {
    .support-topbar-inner,
    .support-container {
        width: min(1180px, calc(100% - 20px));
    }
}

.support-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.support-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.support-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.support-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px;
    flex-shrink: 0;
    display: block;
}

.support-nav {
    display: flex;
    gap: 22px;
    font-size: 0.95rem;
}

.support-nav a { opacity: 0.95; }
.support-nav a:hover { opacity: 1; text-decoration: underline; }

.support-hero {
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 56px 0 72px;
}

.support-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
}

.support-hero p {
    margin: 0 0 28px;
    font-size: 1.15rem;
    opacity: 0.95;
}

.support-search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    max-width: 760px;
}

.support-search input {
    flex: 1;
    border: 0;
    padding: 18px 22px;
    font-size: 1rem;
    outline: none;
}

.support-search button {
    border: 0;
    background: transparent;
    padding: 0 22px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
}

.support-main { flex: 1; }

.support-panel {
    position: relative;
    margin-top: -36px;
    padding-bottom: 56px;
}

.support-panel-card {
    background: rgba(17, 24, 39, 0.88);
    color: #fff;
    border-radius: 10px;
    padding: 34px 28px 40px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(4px);
}

.support-panel-card h2 {
    text-align: center;
    margin: 0 0 28px;
    font-size: 1.7rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 28px;
}

.support-link-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.support-link-card:hover { background: rgba(255, 255, 255, 0.06); }

.support-link-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    color: #fff;
}

.support-link-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.support-link-copy {
    min-width: 0;
}

.support-link-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.support-link-copy span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.45;
}

.support-content {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.support-card {
    background: var(--surface);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.support-card + .support-card { margin-top: 18px; }

.support-list { list-style: none; padding: 0; margin: 0; }
.support-list li { padding: 14px 0; border-bottom: 1px solid #eef2f7; }
.support-list li:last-child { border-bottom: 0; }

.support-meta { color: var(--muted); font-size: 0.92rem; }

.support-footer {
    padding: 24px 0 36px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.support-empty {
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.support-article-content {
    margin-top: 20px;
    line-height: 1.7;
    color: var(--ink);
}

.support-article-content h1,
.support-article-content h2,
.support-article-content h3 {
    margin: 1.2em 0 0.6em;
    line-height: 1.3;
}

.support-article-content p,
.support-article-content ul,
.support-article-content ol {
    margin: 0 0 1em;
}

.support-article-content ul,
.support-article-content ol {
    padding-left: 1.4em;
}

.support-article-content a {
    color: var(--brand-dark);
    text-decoration: underline;
}

.support-article-content img {
    max-width: 100%;
    height: auto;
}

.support-tree {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.support-tree-product-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.support-tree-product-title a {
    color: var(--text);
}

.support-tree-categories {
    list-style: none;
    margin: 12px 0 0;
    padding: 0 0 0 18px;
    border-left: 3px solid var(--brand);
}

.support-tree-categories li {
    margin: 0 0 14px;
}

.support-tree-categories a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.support-tree-count {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.support-tree-empty {
    margin: 8px 0 0;
}

.support-list-spaced li {
    margin-bottom: 18px;
}

.support-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.support-breadcrumb a {
    color: var(--brand-dark);
}

@media (max-width: 900px) {
    .support-grid { grid-template-columns: 1fr; }
    .support-nav { display: none; }
}
