/* Unified design system for DDOS.COM */

:root {
    --header-offset: 79px;
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-soft: #fff8f8;
    --bg-surface-muted: #fff2f2;
    --bg-accent-soft: #fff0f0;
    --bg-dark: #0f172a;

    --border-color: #e5e7eb;
    --border-strong: #d1d5db;
    --border-accent: rgba(148, 163, 184, 0.22);
    --border-focus: rgba(148, 163, 184, 0.34);
    --ring-color: rgba(148, 163, 184, 0.12);

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --text-white: #f8fafc;

    --color-primary: #c62828;
    --color-primary-strong: #a61b1b;
    --color-accent: #e04a4a;
    --color-primary-rgb: 198, 40, 40;
    --color-success: #15803d;
    --color-warning: #b91c1c;
    --color-danger: #dc2626;

    --font-heading: 'Outfit', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', 'Outfit', sans-serif;

    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.08);

    --transition-fast: 180ms ease;
    --transition-smooth: 280ms ease;
}

html[data-theme="dark"] {
    --bg-body: #101b2d;
    --bg-surface: #101b2d;
    --bg-surface-soft: #101b2d;
    --bg-surface-muted: #101b2d;
    --bg-accent-soft: rgba(var(--color-primary-rgb), 0.14);
    --bg-dark: #020617;

    --border-color: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(148, 163, 184, 0.34);
    --border-accent: rgba(248, 113, 113, 0.2);
    --border-focus: rgba(248, 113, 113, 0.36);
    --ring-color: rgba(248, 113, 113, 0.18);

    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-soft: #64748b;
    --text-white: #f8fafc;

    --shadow-sm: 0 10px 24px rgba(2, 6, 23, 0.24);
    --shadow-md: 0 18px 40px rgba(2, 6, 23, 0.34);
    --shadow-lg: 0 30px 72px rgba(2, 6, 23, 0.48);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-fast);
}

::selection {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.12);
}

::-moz-selection {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.12);
}

.bg-grid,
.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    display: none;
}

.container {
    width: 100%;
    max-width: 1580px;
    margin: 0 auto;
    padding: 0 32px;
}

body[data-page="vendor-detail"] .main-content .container,
body[data-page="news-detail"] .main-content .container,
body[data-page="tech-detail"] .main-content .container {
    max-width: 1380px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.18;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-strong);
}

button,
input,
select,
textarea {
    font: inherit;
}

img,
svg {
    display: block;
}

.main-content {
    flex: 1;
    padding: 28px 0 88px;
}

.tab-pane {
    animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--color-primary);
}

.text-success {
    color: var(--color-success);
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.12em;
}

.leading-relaxed {
    line-height: 1.8;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.m-0 {
    margin: 0;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-10 {
    padding: 2.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.d-inline-block {
    display: inline-block;
}

.gap-3 {
    gap: 0.75rem;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.overflow-x-auto {
    overflow-x: auto;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-3xl {
    max-width: 52rem;
}

.max-w-4xl {
    max-width: 68rem;
}

.max-w-5xl {
    max-width: 78rem;
}

.col-span-3 {
    grid-column: 1 / -1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn svg,
.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--text-white);
    box-shadow: 0 12px 28px rgba(var(--color-primary-rgb), 0.2);
}

.btn-primary:hover {
    color: var(--text-white);
    box-shadow: 0 16px 34px rgba(var(--color-primary-rgb), 0.28);
}

.btn-outline {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--border-strong);
    color: var(--color-primary);
    background: var(--bg-accent-soft);
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
}

.btn-text:hover {
    color: var(--text-main);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.85rem;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand:hover {
    color: var(--text-main);
}

.brand-logo {
    display: block;
    width: auto;
    height: 42px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--bg-accent-soft);
    border: 1px solid var(--border-accent);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.accent-dot {
    color: var(--color-primary);
}

.header-desktop {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 600;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-primary);
    background: var(--bg-accent-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.theme-toggle-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-toggle-btn {
    flex-shrink: 0;
}

.theme-toggle-desktop .theme-toggle-btn {
    width: 46px;
    min-width: 46px;
    padding: 0;
}

.theme-toggle-desktop .theme-toggle-btn i,
.theme-toggle-desktop .theme-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.theme-toggle-btn span {
    white-space: nowrap;
}

.theme-toggle-mobile {
    width: 100%;
}

.theme-toggle-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    min-width: 176px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    z-index: 40;
}

.theme-toggle-wrap.open .theme-toggle-menu {
    display: grid;
    gap: 6px;
}

.theme-toggle-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle-option:hover {
    background: var(--bg-surface-soft);
    border-color: var(--border-color);
    color: var(--text-main);
}

.theme-toggle-option.active {
    background: var(--bg-accent-soft);
    border-color: var(--border-accent);
    color: var(--color-primary);
    font-weight: 700;
}

.theme-toggle-option i,
.theme-toggle-option svg {
    width: 16px;
    height: 16px;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.menu-toggle:hover,
.menu-toggle.active {
    border-color: var(--border-strong);
    color: var(--color-primary);
    background: var(--bg-accent-soft);
}

.mobile-nav-wrap {
    display: none;
    padding: 0 0 18px;
}

.mobile-nav-wrap.active {
    display: block;
}

.mobile-nav-links {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-nav-links .nav-item {
    width: 100%;
    justify-content: flex-start;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

/* Common surfaces */
.page-section {
    margin-top: 28px;
}

.page-hero {
    margin-bottom: 18px;
}

body[data-page="home"] .page-hero.hero-home {
    margin-top: 10px;
}

.page-hero-card,
.section-shell,
.detail-card,
.info-card,
.directory-shell,
.news-detail-wrapper,
.cyber-panel,
.stat-card,
.vendor-card,
.promo-card-detailed,
.news-card-detailed,
.promo-compact-card,
.news-sidebar-card,
.directory-sidebar,
.guide-item,
.spec-tile,
.modal-box {
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    box-shadow: none;
}

.page-hero-card {
    padding: 32px 0 12px;
}

.page-hero-card.compact {
    display: grid;
    gap: 14px;
    padding: 12px 0;
}

body[data-page="vendors"] .page-hero-card.compact .section-header {
    margin-bottom: 0;
}

.promo-card-tag,
.region-badge,
.feature-tag,
.filter-chip,
.detail-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.detail-verified-badge {
    background: var(--bg-accent-soft);
    border-color: var(--border-accent);
    color: var(--color-primary);
}

.detail-verified-badge svg {
    width: 14px;
    height: 14px;
}

.section-shell {
    padding: 18px 0;
}

body[data-page="promos"] .main-content > .page-section:first-child > .container > .section-shell:first-child {
    padding-top: 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-header h1,
.section-header h2,
.section-title {
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}

.section-header h1,
.section-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-header h1::before,
.section-header h2::before {
    content: "";
    width: 6px;
    height: 1.1em;
    border-radius: 999px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    flex-shrink: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Home */
.hero-home-card {
    background: transparent;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: min(100%, 720px);
}

.hero-title {
    margin: 18px 0 56px;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    max-width: 18ch;
}

.hero-banner-card .hero-title {
    color: #f8fbff;
    text-shadow: 0 10px 30px rgba(8, 17, 31, 0.32);
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-strong), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-container {
    max-width: 760px;
}

.search-box,
.directory-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 8px 8px 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    box-shadow: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box:focus-within,
.directory-search:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--ring-color);
}

.search-icon,
.directory-search i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input,
.directory-search input,
.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 1rem;
}

.search-box input::placeholder,
.directory-search input::placeholder {
    color: var(--text-soft);
}

.search-btn {
    min-width: 104px;
}

.search-form {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
    min-width: 0;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.search-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.search-tags a:hover {
    border-color: var(--border-strong);
    color: var(--color-primary);
}

.hero-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-side-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.hero-side-card h3 {
    font-size: 1.1rem;
}

.hero-side-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hero-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-data-item {
    padding: 18px 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.hero-data-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    margin-top: 8px;
    color: var(--text-main);
}

.hero-data-item span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.hero-side-note {
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.stat-card:hover,
.vendor-card:hover,
.promo-card-detailed:hover,
.news-card-detailed:hover,
.news-sidebar-card:hover,
.guide-item:hover,
.cyber-panel:hover,
.section-shell:hover {
    transform: translateY(-1px);
    box-shadow: none;
    border-color: transparent;
}

.stat-icon,
.detail-logo-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 108px;
    height: 54px;
    border-radius: 12px;
    background: transparent;
    color: var(--color-primary);
}

.stat-icon svg,
.detail-logo-block svg {
    width: 24px;
    height: 24px;
}

.stat-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 3px;
}

.stat-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.home-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.home-content-grid > .section-shell {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-content-grid > .section-shell + .section-shell {
    padding-left: 22px;
    border-left: 0;
}

.home-content-grid .section-header {
    flex-shrink: 0;
}

.home-content-grid .promo-compact-list,
.home-content-grid .news-list-sidebar {
    flex: 1;
    min-height: 0;
    grid-auto-rows: auto;
    align-content: start;
}

.home-content-grid .promo-compact-card,
.home-content-grid .news-sidebar-card {
    min-height: 0;
    height: auto;
}

.home-content-grid .news-sidebar-card {
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    align-content: start;
}

.home-content-grid .news-sidebar-card:first-child {
    padding-top: 0;
    border-top: 0;
}

.home-content-grid .promo-compact-card {
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    align-content: start;
}

.home-content-grid .promo-compact-card:first-child {
    padding-top: 0;
    border-top: 0;
}

.home-content-grid .promo-details {
    display: grid;
    gap: 8px;
}

.home-content-grid .promo-details h4 {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.home-content-grid .promo-details p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-content-grid .news-sidebar-title,
.home-content-grid .news-sidebar-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-content-grid .home-reference-list {
    grid-auto-rows: auto;
}

.home-content-grid .home-reference-list .news-sidebar-card {
    min-height: 0;
    height: auto;
    padding: 8px 0;
}

.home-content-grid .home-reference-list .news-sidebar-card > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 4px 14px;
}

.home-content-grid .home-reference-list .news-sidebar-title,
.home-content-grid .home-reference-list .news-sidebar-title a {
    grid-column: 1;
    grid-row: 1;
    min-height: auto;
    -webkit-line-clamp: 1;
}

.home-content-grid .home-reference-list .news-sidebar-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.home-content-grid .home-reference-list .news-sidebar-date {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    text-align: right;
}

body[data-page="home"] .home-content-grid > .section-shell {
    padding: 22px 24px 18px;
    border-color: rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.04);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 252, 0.98));
}

body[data-page="home"] .home-content-grid > .section-shell + .section-shell {
    padding-left: 24px;
}

body[data-page="home"] .home-content-grid .section-header {
    margin-bottom: 6px;
}

body[data-page="home"] .home-content-grid .home-reference-list .news-sidebar-card {
    padding: 10px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    gap: 22px;
}

.hero-aibase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 360px;
    gap: 34px;
    align-items: start;
}

.hero-banner-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    height: 445px;
    padding: 34px 38px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.22), transparent 32%),
        radial-gradient(circle at 78% 24%, rgba(34, 197, 94, 0.14), transparent 18%),
        linear-gradient(135deg, #08111f 0%, #0b1c34 48%, #112b4f 100%);
}

.hero-banner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(6, 13, 24, 0.92) 0%, rgba(6, 13, 24, 0.78) 36%, rgba(6, 13, 24, 0.18) 68%, rgba(6, 13, 24, 0) 100%),
        radial-gradient(circle at 82% 22%, rgba(56, 189, 248, 0.28), transparent 22%),
        radial-gradient(circle at 87% 72%, rgba(34, 197, 94, 0.18), transparent 20%);
    z-index: -2;
}

.hero-banner-card::after {
    content: "";
    position: absolute;
    top: -12px;
    right: -18px;
    bottom: -12px;
    width: min(48%, 360px);
    border-radius: 28px;
    opacity: 0.65;
    background-image:
        url("data:image/svg+xml,%3Csvg width='360' height='340' viewBox='0 0 360 340' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.72'%3E%3Cpath d='M128 28C184 49 230 50 288 44C270 92 275 140 302 194C255 194 217 214 183 258C151 221 112 197 58 193C92 143 103 94 96 42C109 41 119 41 128 28Z' stroke='%2394A3B8' stroke-width='1.2'/%3E%3Cpath d='M180 66L226 100L214 160L180 188L145 160L136 102L180 66Z' stroke='%2338BDF8' stroke-width='1.2'/%3E%3Cpath d='M82 80L146 102' stroke='%2394A3B8' stroke-width='1.2'/%3E%3Cpath d='M226 100L290 72' stroke='%2394A3B8' stroke-width='1.2'/%3E%3Cpath d='M214 160L284 178' stroke='%2394A3B8' stroke-width='1.2'/%3E%3Cpath d='M145 160L78 222' stroke='%2394A3B8' stroke-width='1.2'/%3E%3Cpath d='M183 258L250 280' stroke='%2322C55E' stroke-width='1.2'/%3E%3Cpath d='M183 258L112 286' stroke='%2322C55E' stroke-width='1.2'/%3E%3Ccircle cx='82' cy='80' r='6' fill='%2308171F' stroke='%2338BDF8' stroke-width='2'/%3E%3Ccircle cx='290' cy='72' r='6' fill='%2308171F' stroke='%2338BDF8' stroke-width='2'/%3E%3Ccircle cx='284' cy='178' r='6' fill='%2308171F' stroke='%2322C55E' stroke-width='2'/%3E%3Ccircle cx='78' cy='222' r='6' fill='%2308171F' stroke='%2394A3B8' stroke-width='2'/%3E%3Ccircle cx='250' cy='280' r='6' fill='%2308171F' stroke='%2322C55E' stroke-width='2'/%3E%3Ccircle cx='112' cy='286' r='6' fill='%2308171F' stroke='%2322C55E' stroke-width='2'/%3E%3Ccircle cx='180' cy='66' r='7' fill='%2308171F' stroke='%23F97316' stroke-width='2'/%3E%3Ccircle cx='183' cy='258' r='7' fill='%2308171F' stroke='%23F97316' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: center, center, center;
    background-size: contain, 26px 26px, 26px 26px;
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.7) 18%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.7) 18%, #000 100%);
    z-index: -1;
}

.hero-banner-card > * {
    position: relative;
    z-index: 1;
}

.hero-banner-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-content: start;
}

.hero-metric-pill {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-surface-soft);
}

.hero-metric-pill span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-metric-pill strong {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.hot-ranking-panel,
.rank-sidebar-card,
.news-stream-shell,
.headline-card,
.headline-brief-item,
.feature-tool-card,
.article-sidebar,
.vendor-reference-card,
.vendor-preview-card {
    background: var(--bg-surface);
}

.hot-ranking-panel,
.rank-sidebar-card,
.news-stream-shell,
.article-sidebar,
.vendor-preview-card,
.headline-card,
.feature-tool-card,
.headline-brief-item {
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.hot-ranking-panel,
.rank-sidebar-card,
.news-stream-shell,
.article-sidebar {
    padding: 22px 24px;
}

.hot-ranking-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hot-ranking-list,
.article-related-list {
    display: grid;
    gap: 12px;
}

.hot-ranking-item,
.article-related-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-surface);
    overflow: hidden;
}

.hot-ranking-item {
    min-height: 74px;
}

.article-related-card {
    min-height: 74px;
}

.hot-ranking-item.no-border {
    border: none;
    height: auto;
}

.hot-ranking-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
}

.hot-ranking-rank {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -0.03em;
}

.hot-ranking-item:nth-child(1) .hot-ranking-rank {
    background: linear-gradient(180deg, #b91c1c, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hot-ranking-item:nth-child(2) .hot-ranking-rank {
    background: linear-gradient(180deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hot-ranking-item:nth-child(3) .hot-ranking-rank {
    background: linear-gradient(180deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hot-ranking-item:nth-child(4) .hot-ranking-rank,
.hot-ranking-item:nth-child(5) .hot-ranking-rank,
.hot-ranking-item:nth-child(6) .hot-ranking-rank,
.hot-ranking-item:nth-child(7) .hot-ranking-rank,
.hot-ranking-item:nth-child(8) .hot-ranking-rank {
    color: #475569;
}

.hot-ranking-item h3,
.article-related-card h3,
.article-related-card h4 {
    font-size: 0.98rem;
    line-height: 1.45;
}

.hot-ranking-item h3,
.article-related-card h4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hot-ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

body[data-page="home"] .hero-aibase-layout {
    align-items: stretch;
}

body[data-page="home"] .hero-banner-card {
    border-color: rgba(226, 232, 240, 0.92);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
    background:
        radial-gradient(circle at 34% 42%, rgba(248, 113, 113, 0.12), transparent 22%),
        radial-gradient(circle at 54% 58%, rgba(251, 191, 36, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 250, 0.98) 52%, rgba(255, 255, 255, 0.96) 100%);
}

body[data-page="home"] .hero-banner-card::before {
    background:
        radial-gradient(circle at 36% 54%, rgba(239, 68, 68, 0.12), transparent 18%),
        radial-gradient(circle at 62% 44%, rgba(251, 191, 36, 0.08), transparent 20%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 245, 0.42) 50%, rgba(255, 255, 255, 0.04) 100%);
}

body[data-page="home"] .hero-banner-card::after {
    top: 8px;
    right: 10px;
    bottom: 8px;
    width: min(40%, 300px);
    opacity: 0.2;
    background-image:
        url("data:image/svg+xml,%3Csvg width='320' height='320' viewBox='0 0 320 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.88'%3E%3Ccircle cx='164' cy='162' r='68' stroke='%2394A3B8' stroke-width='1.2'/%3E%3Ccircle cx='164' cy='162' r='102' stroke='%23CBD5E1' stroke-width='1.2' stroke-dasharray='5 7'/%3E%3Cpath d='M164 54V270' stroke='%2394A3B8' stroke-width='1.2'/%3E%3Cpath d='M56 162H272' stroke='%2394A3B8' stroke-width='1.2'/%3E%3Cpath d='M88 92L240 244' stroke='%23CBD5E1' stroke-width='1.2'/%3E%3Cpath d='M240 92L88 244' stroke='%23CBD5E1' stroke-width='1.2'/%3E%3Cpath d='M164 162L228 116' stroke='%23EF4444' stroke-width='2'/%3E%3Cpath d='M164 162L116 224' stroke='%2338BDF8' stroke-width='2'/%3E%3Ccircle cx='164' cy='162' r='12' fill='%23F8FAFC' stroke='%230F172A' stroke-width='2'/%3E%3Ccircle cx='228' cy='116' r='8' fill='%23F8FAFC' stroke='%23EF4444' stroke-width='2'/%3E%3Ccircle cx='116' cy='224' r='8' fill='%23F8FAFC' stroke='%2338BDF8' stroke-width='2'/%3E%3Ccircle cx='164' cy='60' r='6' fill='%23F8FAFC' stroke='%2394A3B8' stroke-width='2'/%3E%3Ccircle cx='164' cy='264' r='6' fill='%23F8FAFC' stroke='%2394A3B8' stroke-width='2'/%3E%3Ccircle cx='62' cy='162' r='6' fill='%23F8FAFC' stroke='%2394A3B8' stroke-width='2'/%3E%3Ccircle cx='266' cy='162' r='6' fill='%23F8FAFC' stroke='%2394A3B8' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: contain, 24px 24px, 24px 24px;
}

body[data-page="home"] .hero-banner-card .hero-title {
    color: #0f172a;
    text-shadow: none;
}

body[data-page="home"] .hero-title {
    margin: 4px 0 28px;
    max-width: 16ch;
}

body[data-page="home"] .hero-link-row {
    order: 2;
    margin-top: 0;
    margin-bottom: 18px;
    gap: 10px;
}

body[data-page="home"] .search-container {
    order: 3;
    max-width: 640px;
}

body[data-page="home"] .search-box {
    border-color: rgba(248, 113, 113, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(248, 113, 113, 0.08);
}

body[data-page="home"] .search-btn {
    min-width: 94px;
    border-radius: 999px;
}

body[data-page="home"] .hero-link-row .btn-outline {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(226, 232, 240, 0.92);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

body[data-page="home"] .hero-link-row .btn-primary {
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.18);
}

body[data-page="home"] .hot-ranking-panel {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding: 14px 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
}

body[data-page="home"] #home-hot-ranking {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0;
    height: 100%;
    align-content: start;
}

body[data-page="home"] #home-hot-ranking .hot-ranking-item {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    min-height: 0;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 0;
    background: transparent;
}

body[data-page="home"] #home-hot-ranking .hot-ranking-item:last-child {
    border-bottom: 0;
}

body[data-page="home"] #home-hot-ranking .hot-ranking-title-row {
    gap: 12px;
}

body[data-page="home"] #home-hot-ranking .hot-ranking-rank {
    flex: 0 0 24px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

body[data-page="home"] #home-hot-ranking .hot-ranking-item h3 {
    font-size: 0.92rem;
    line-height: 1.5;
}

.headline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.headline-card {
    overflow: hidden;
    padding: 16px 18px;
}

.headline-card a {
    color: inherit;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    height: 100%;
}

.headline-card-media {
    min-width: 0;
    height: 100%;
}

.headline-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 112px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-soft);
}

.headline-card-body {
    display: grid;
    align-content: start;
    gap: 8px;
}

.headline-card-body h3 {
    font-size: 1.04rem;
    line-height: 1.42;
    min-height: calc(1.42em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.headline-card-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: calc(1.6em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

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

.feature-tool-card {
    padding: 24px;
}

.feature-tool-card h3 {
    margin: 18px 0 8px;
    font-size: 1.06rem;
}

.feature-tool-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.news-page-head {
    padding: 4px 0 8px;
}

.news-reference-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 360px;
    gap: 34px;
    align-items: start;
}

.news-reference-layout > *,
.article-reference-layout > * {
    min-width: 0;
}

.news-stream-shell {
    padding: 0;
    border: 0;
    border-radius: 0;
}

.news-reference-sidebar {
    display: grid;
    gap: 18px;
}

body[data-page="tech"] .news-reference-sidebar .rank-sidebar-card:first-child,
body[data-page="news"] .news-reference-sidebar .rank-sidebar-card:first-child,
.news-reference-sidebar .rank-sidebar-card:first-child {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body[data-page="tech"] .news-reference-sidebar .rank-sidebar-card:nth-of-type(2),
body[data-page="news"] .news-reference-sidebar .rank-sidebar-card:nth-of-type(2) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body[data-page="tech"] .news-reference-sidebar .rank-sidebar-card:nth-of-type(3),
body[data-page="news"] .news-reference-sidebar .rank-sidebar-card:nth-of-type(3) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body[data-page="tag-detail"] .news-reference-sidebar .rank-sidebar-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.article-reference-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 340px;
    gap: 34px;
    align-items: start;
}

.article-sidebar {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body[data-page="news-detail"] .article-sidebar .rank-sidebar-card:first-child,
body[data-page="tech-detail"] .article-sidebar .rank-sidebar-card:first-child {
}

body[data-page="news-detail"] .article-related-list,
body[data-page="tech-detail"] .article-related-list {
}

.article-breadcrumbs {
    margin-bottom: 28px;
}

.news-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.84rem;
}

.news-meta-pill strong,
.news-meta-pill span {
    color: var(--text-main);
}

.article-view-pill {
    gap: 8px;
}

.article-view-pill svg,
.article-view-pill i {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.article-view-count {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-main);
}

.vendor-reference-hero {
    background: transparent;
}

.vendor-detail-layout {
    display: block;
}

.vendor-detail-main-column,
.vendor-detail-side-column {
    min-width: 0;
}

.vendor-detail-side-column {
    display: grid;
    gap: 22px;
    padding-top: 44px;
}

.vendor-reference-card {
    padding: 28px 0 20px;
}

.vendor-reference-top {
    display: block;
}

.vendor-reference-title-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.vendor-rating-corner {
    display: grid;
    justify-items: end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.vendor-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vendor-rating-corner .rating-stars {
    justify-content: flex-end;
}

.vendor-hero-description {
    margin-bottom: 18px;
}

.vendor-meta-rail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 14px;
}

.vendor-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 860px;
}

.vendor-overview-pill {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 2px;
}

.vendor-overview-label {
    color: var(--text-muted);
}

.vendor-inline-action {
    flex-shrink: 0;
}

.vendor-preview-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--bg-surface);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
}

.vendor-preview-stat {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.vendor-preview-stat:last-of-type {
    border-bottom: 0;
}

.vendor-preview-stat span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.vendor-preview-stat strong {
    font-family: var(--font-heading);
    font-size: 1rem;
}

.vendor-detail-grid .detail-card {
    border-top: 1px solid var(--border-color);
}

body[data-page="vendor-detail"] .vendor-detail-main-column .detail-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
}

/* Vendor cards */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.vendor-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.vendor-list-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.vendor-list-item.vendor-list-item-region-domestic {
    border-color: rgba(220, 38, 38, 0.28);
}

.vendor-list-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.vendor-list-item.vendor-list-item-region-domestic:hover {
    border-color: rgba(220, 38, 38, 0.42);
}

.vendor-list-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.vendor-list-feature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
}

.vendor-list-compare {
    margin-top: 0;
    margin-left: auto;
}

.vendor-list-heading {
    display: grid;
    gap: 8px;
}

.vendor-list-side {
    width: 252px;
    flex-shrink: 0;
    display: grid;
    gap: 14px;
    padding-left: 22px;
    border-left: 1px solid var(--border-color);
}

.vendor-list-rating {
    display: grid;
    justify-items: end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.vendor-list-rating .rating-stars {
    justify-content: flex-end;
}

.vendor-list-metrics {
    display: grid;
    gap: 10px;
    height: 100%;
}

.vendor-list-promo-item {
    display: grid;
    grid-template-rows: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    height: 100%;
}

.vendor-list-promo-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vendor-list-promo-title,
.vendor-list-promo-meta,
.vendor-list-promo-empty {
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-list-promo-title {
    color: var(--text-main);
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 600;
    white-space: normal;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.vendor-list-promo-meta,
.vendor-list-promo-empty {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.promo-type-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    width: fit-content;
}

.promo-type-free_use {
    background: rgba(21, 128, 61, 0.1);
    color: #15803d;
}

.promo-type-limited_discount {
    background: rgba(22, 72, 140, 0.1);
    color: rgb(22, 72, 140);
}

.promo-type-coupon_code {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.promo-type-invite_referral {
    background: rgba(251, 146, 60, 0.14);
    color: #c2410c;
}

.vendor-list-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.vendor-list-promo-link svg,
.vendor-list-promo-link i {
    width: 13px;
    height: 13px;
}

.copy-code-btn {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 6px;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.copy-code-btn:hover {
    background: var(--bg-accent-soft);
    border-color: var(--color-primary);
}

.vendor-card {
    position: relative;
    padding: 24px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.vendor-card.featured {
    border-color: var(--border-color);
    background: var(--bg-surface);
}

.vendor-logo-wrapper,
.vendor-card-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.vendor-card-home .vendor-card-head {
    padding-right: 0;
}

.vendor-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-primary);
    overflow: hidden;
}

.vendor-logo img,
.detail-logo-block img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vendor-logo svg {
    width: 26px;
    height: 26px;
}

.vendor-title {
    flex: 1;
    min-width: 0;
}

.vendor-list-item .vendor-card-head {
    align-items: center;
    min-height: 88px;
}

.vendor-list-brand {
    display: flex;
    flex: 0 0 168px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    text-align: center;
}

.vendor-list-item .vendor-title {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

.vendor-list-item .vendor-list-heading {
    gap: 0;
    width: 100%;
    justify-items: center;
    text-align: center;
}

.vendor-list-item .vendor-title h3 {
    margin-bottom: 0;
}

.vendor-list-item .vendor-list-heading h3 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.vendor-list-summary {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.vendor-title h3 {
    font-size: 1.18rem;
    margin-bottom: 8px;
}

.vendor-title h3 a,
.vendor-list-heading h3 a,
.promo-details h4 a,
.news-sidebar-title a,
.article-related-card,
.article-related-card h3 {
    color: var(--text-main);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vendor-title h3 a:hover,
.vendor-title h3 a:focus-visible,
.vendor-title h3 a:active,
.vendor-list-heading h3 a:hover,
.vendor-list-heading h3 a:focus-visible,
.vendor-list-heading h3 a:active,
.promo-details h4 a:hover,
.promo-details h4 a:focus-visible,
.promo-details h4 a:active,
.news-sidebar-title a:hover,
.news-sidebar-title a:focus-visible,
.news-sidebar-title a:active,
.article-related-card:hover,
.article-related-card:focus-visible,
.article-related-card:active,
.article-related-card:hover h3,
.article-related-card:focus-visible h3,
.article-related-card:active h3 {
    color: var(--color-primary);
}

.vendor-list-item .vendor-list-heading h3 a:hover,
.vendor-list-item .vendor-list-heading h3 a:focus-visible,
.vendor-list-item .vendor-list-heading h3 a:active {
    color: #111827;
    color: #dc2626;
    text-decoration: none;
}

.vendor-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.vendor-home-rating {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    align-items: flex-end;
    gap: 4px;
    z-index: 1;
}

.vendor-home-rating-value {
    font-size: 0.9rem;
    line-height: 1;
    color: var(--text-main);
}

.vendor-home-rating .rating-stars {
    justify-content: flex-end;
}

.region-badge {
    background: var(--bg-surface-soft);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.vendor-list-item .region-badge.region-badge-domestic {
    background: rgba(var(--color-primary-rgb), 0.08);
    border-color: rgba(var(--color-primary-rgb), 0.18);
    color: var(--color-primary);
}

.vendor-list-item .region-badge.region-badge-international {
    background: #f8fafc;
    border-color: var(--border-color);
    color: var(--text-muted);
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
}

.rating-star-btn {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rating-star-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.rating-stars svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.rating-star-btn .icon-star-empty,
.rating-stars .icon-star-empty {
    color: rgba(245, 158, 11, 0.28);
}

.rating-star-btn .icon-star-full,
.rating-stars .icon-star-full,
.rating-stars .icon-star-half {
    fill: #f59e0b;
}

.rating-star-btn.is-user-selected .icon-star-full,
.rating-star-btn.is-user-selected .icon-star-half,
.rating-star-btn .is-user-selected.icon-star-full,
.rating-star-btn .is-user-selected.icon-star-half {
    color: #f97316;
    fill: #f97316;
}

.vendor-desc {
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 18px;
    min-height: calc(1.55em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vendor-desc-inline {
    margin-bottom: 0;
    max-height: calc(1.55em * 3);
}

.vendor-features,
.vendor-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vendor-list-feature-row .vendor-feature-list {
    margin-bottom: 0;
}

.vendor-list-feature-row .vendor-feature-list .feature-tag {
    background: transparent;
    border-color: #d1d5db;
    color: var(--text-secondary);
}

.feature-tag {
    background: var(--bg-surface-muted);
    border-color: transparent;
    color: var(--text-secondary);
    font-weight: 600;
}

body[data-page="home"] #featured-vendors .feature-tag {
    background: #f3f4f6;
}

body[data-page="home"] #featured-vendors .region-badge.region-badge-international {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
}

.vendor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.vendor-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.vendor-capacity {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.cap-label {
    color: var(--text-muted);
    font-size: 0.83rem;
}

.cap-val {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.compare-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.compare-label-floating {
    position: absolute;
    top: 22px;
    right: 24px;
}

.compare-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 32px;
    text-align: center;
    background: var(--bg-surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}

/* Promo cards */
.promo-compact-list,
.news-list-sidebar,
.guide-list {
    display: grid;
    gap: 14px;
}

.promo-compact-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
}

.promo-brand-info {
    flex: 1;
    min-width: 0;
}

.promo-details h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.promo-details p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.promo-action {
    display: flex;
    align-items: center;
}

.promo-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px dashed var(--border-strong);
    background: var(--bg-accent-soft);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.promo-code-btn:hover {
    border-style: solid;
    color: var(--color-primary-strong);
}

.promo-grid-detailed {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

#home-promo-preview .promo-logo-slot {
    border: 0;
    background: transparent;
}

#full-promos-list .promo-card-detailed {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

#full-promos-list .promo-card-detailed:hover {
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

#full-promos-list .promo-card-type-free_use {
    border-color: rgba(34, 154, 93, 0.28);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 0 0 1px rgba(34, 154, 93, 0.14),
        0 0 24px rgba(34, 154, 93, 0.18),
        0 18px 38px rgba(15, 23, 42, 0.08);
}

#full-promos-list .promo-card-type-free_use:hover {
    border-color: rgba(34, 154, 93, 0.42);
    box-shadow:
        0 0 0 1px rgba(34, 154, 93, 0.2),
        0 0 32px rgba(34, 154, 93, 0.24),
        0 24px 46px rgba(15, 23, 42, 0.12);
}

#full-promos-list .promo-card-type-limited_discount {
    border-color: rgba(22, 72, 140, 0.28);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 0 0 1px rgba(22, 72, 140, 0.14),
        0 0 24px rgba(59, 130, 246, 0.18),
        0 18px 38px rgba(15, 23, 42, 0.08);
}

#full-promos-list .promo-card-type-limited_discount:hover {
    border-color: rgba(22, 72, 140, 0.42);
    box-shadow:
        0 0 0 1px rgba(22, 72, 140, 0.2),
        0 0 32px rgba(59, 130, 246, 0.24),
        0 24px 46px rgba(15, 23, 42, 0.12);
}

#full-promos-list .promo-card-type-coupon_code {
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 0 0 1px rgba(220, 38, 38, 0.14),
        0 0 24px rgba(248, 113, 113, 0.18),
        0 18px 38px rgba(15, 23, 42, 0.08);
}

#full-promos-list .promo-card-type-coupon_code:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow:
        0 0 0 1px rgba(220, 38, 38, 0.2),
        0 0 32px rgba(248, 113, 113, 0.24),
        0 24px 46px rgba(15, 23, 42, 0.12);
}

#full-promos-list .promo-card-type-invite_referral {
    border-color: rgba(251, 146, 60, 0.28);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 0 0 1px rgba(251, 146, 60, 0.14),
        0 0 24px rgba(251, 146, 60, 0.16),
        0 18px 38px rgba(15, 23, 42, 0.08);
}

#full-promos-list .promo-card-type-invite_referral:hover {
    border-color: rgba(251, 146, 60, 0.42);
    box-shadow:
        0 0 0 1px rgba(251, 146, 60, 0.2),
        0 0 32px rgba(251, 146, 60, 0.22),
        0 24px 46px rgba(15, 23, 42, 0.12);
}

#all-promos-list .promo-card-detailed {
    border-color: var(--border-color);
}

#all-promos-list .promo-card-detailed:hover {
    border-color: var(--border-color);
}

.promo-card-detailed {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px;
}

.promo-card-detailed[data-promo-id] {
    cursor: pointer;
}

.promo-card-detailed[data-promo-id]:focus-visible {
    outline: 2px solid rgba(220, 38, 38, 0.24);
    outline-offset: 3px;
}

.promo-card-featured {
    min-height: 100%;
}

#home-promo-preview .promo-card-featured {
    gap: 12px;
}

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

.promo-featured-brand,
.promo-tag-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.promo-logo-slot {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 247, 251, 0.92)),
    radial-gradient(circle at top, rgba(var(--color-primary-rgb), 0.1), transparent 62%);
    color: var(--color-primary-strong);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
}

.promo-logo-slot.featured {
    width: 60px;
    height: 60px;
}

.promo-logo-slot img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.promo-logo-slot.featured img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

#full-promos-list .promo-logo-slot,
#all-promos-list .promo-logo-slot {
    border: 0;
    background: transparent;
}

.promo-featured-brand-copy,
.promo-tag-brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.promo-featured-brand-copy {
    flex: 1;
}

.promo-featured-side {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 6px;
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.promo-featured-vendor,
.promo-tag-vendor {
    color: var(--text-main);
    font-size: 20px;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.promo-featured-mode,
.promo-tag-title {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.promo-type-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.promo-card-expired {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.promo-tag-block {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.96));
    border: 1px solid rgba(215, 225, 235, 0.92);
    border-radius: var(--radius-md);
}

.promo-tag-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.promo-tag-expired {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: right;
}

.promo-tag-amount {
    color: var(--color-primary-strong);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.promo-tag-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-tag-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.promo-tag-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.promo-tag-secondary:hover {
    color: var(--color-primary);
}

.promo-action-soft {
    border-color: rgba(127, 29, 29, 0.08);
    background: linear-gradient(135deg, #f0ddd4 0%, #e9c8bb 100%);
    color: #7f1d1d;
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.16);
}

.promo-action-soft:hover {
    color: #7f1d1d;
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.22);
}

#full-promos-list .promo-action-soft.promo-action-copy,
#full-promos-list .promo-action-soft.promo-action-copy:hover,
#home-promo-preview .promo-action-soft.promo-action-copy,
#home-promo-preview .promo-action-soft.promo-action-copy:hover,
#all-promos-list .promo-action-soft.promo-action-copy,
#all-promos-list .promo-action-soft.promo-action-copy:hover {
    border-color: rgba(220, 38, 38, 0.42);
    background: #ffffff;
    color: #b91c1c;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.08);
}

.promo-action-soft.promo-action-visit {
    border-color: rgba(53, 80, 112, 0.08);
    background: linear-gradient(135deg, #e7eef6 0%, #dce6f1 100%);
    color: #355070;
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.14);
}

.promo-action-soft.promo-action-visit:hover {
    color: #355070;
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.2);
}

#all-promos-list .promo-action-soft.promo-action-visit,
#all-promos-list .promo-action-soft.promo-action-visit:hover {
    border-color: rgba(22, 72, 140, 0.4);
    background: #ffffff;
    color: rgb(22, 72, 140);
    box-shadow: 0 10px 22px rgba(22, 72, 140, 0.08);
}

#full-promos-list .promo-card-type-free_use .btn-primary,
#full-promos-list .promo-card-type-free_use .btn-primary:hover,
#home-promo-preview .promo-card-type-free_use .btn-primary,
#home-promo-preview .promo-card-type-free_use .btn-primary:hover,
#all-promos-list .promo-card-type-free_use .btn-primary,
#all-promos-list .promo-card-type-free_use .btn-primary:hover {
    border-color: rgba(34, 154, 93, 0.42);
    background: #ffffff;
    color: rgb(34, 154, 93);
    box-shadow: 0 10px 22px rgba(34, 154, 93, 0.08);
}

#full-promos-list .promo-card-type-limited_discount .btn-primary,
#full-promos-list .promo-card-type-limited_discount .btn-primary:hover,
#home-promo-preview .promo-card-type-limited_discount .btn-primary,
#home-promo-preview .promo-card-type-limited_discount .btn-primary:hover,
#all-promos-list .promo-card-type-limited_discount .btn-primary,
#all-promos-list .promo-card-type-limited_discount .btn-primary:hover {
    border-color: rgba(22, 72, 140, 0.4);
    background: #ffffff;
    color: rgb(22, 72, 140);
    box-shadow: 0 10px 22px rgba(22, 72, 140, 0.08);
}

#home-promo-preview .promo-card-type-coupon_code .btn-primary,
#home-promo-preview .promo-card-type-coupon_code .btn-primary:hover {
    border-color: rgba(220, 38, 38, 0.42);
    background: #ffffff;
    color: #b91c1c;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.08);
}

#full-promos-list .promo-card-type-invite_referral .btn-primary,
#full-promos-list .promo-card-type-invite_referral .btn-primary:hover,
#home-promo-preview .promo-card-type-invite_referral .btn-primary,
#home-promo-preview .promo-card-type-invite_referral .btn-primary:hover,
#all-promos-list .promo-card-type-invite_referral .btn-primary,
#all-promos-list .promo-card-type-invite_referral .btn-primary:hover {
    border-color: rgba(251, 146, 60, 0.42);
    background: #ffffff;
    color: #c2410c;
    box-shadow: 0 10px 22px rgba(251, 146, 60, 0.08);
}

#all-promos-list .promo-card-detailed {
    gap: 14px;
}

#all-promos-list .promo-discount-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#all-promos-list .promo-card-footer {
    margin-top: auto;
}

.promo-drawer-open {
    overflow: hidden;
}

.promo-drawer-backdrop {
    position: fixed;
    inset: var(--header-offset) 0 0;
    z-index: 90;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.promo-drawer-backdrop[hidden] {
    display: none !important;
}

.promo-drawer-backdrop.active {
    pointer-events: auto;
}

.promo-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.promo-drawer-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(500px, 100vw);
    height: calc(100dvh - var(--header-offset));
    margin-left: auto;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(215, 225, 235, 0.92);
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.14);
    transform: translateX(100%);
    transition: transform 0.24s ease;
}

.promo-drawer-backdrop.active .promo-drawer-mask {
    opacity: 1;
}

.promo-drawer-backdrop.active .promo-drawer-panel {
    transform: translateX(0);
}

.promo-drawer-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 78px 18px 24px;
    border-bottom: 1px solid rgba(215, 225, 235, 0.92);
}

.promo-drawer-header-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.promo-drawer-kicker {
    color: #b91c1c;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.promo-drawer-header h2 {
    font-size: 1.08rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.promo-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-main);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.promo-drawer-close:hover {
    color: var(--color-primary);
    background: transparent;
}

.promo-drawer-body {
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 24px;
    overflow-y: auto;
}

.promo-drawer-summary {
    display: grid;
    align-content: start;
    gap: 18px;
}

.promo-drawer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.promo-drawer-logo {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #f8fafc;
    color: var(--text-main);
    flex-shrink: 0;
    overflow: hidden;
}

.promo-drawer-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.promo-drawer-logo span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
}

.promo-drawer-brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.promo-drawer-vendor {
    color: var(--text-main);
    font-size: 1.18rem;
    font-weight: 700;
}

.promo-drawer-expired {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.promo-drawer-type {
    justify-self: start;
}

.promo-drawer-expired {
    margin-left: auto;
    text-align: right;
    max-width: 126px;
}

.promo-drawer-amount {
    color: #dc2626;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.promo-drawer-desc {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.8;
}

.promo-drawer-meta {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(215, 225, 235, 0.92);
}

.promo-drawer-meta-item {
    display: grid;
    gap: 4px;
}

.promo-drawer-meta-item span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.promo-drawer-meta-item strong {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.promo-drawer-actions {
    display: grid;
    gap: 10px;
}

.promo-drawer-action {
    justify-content: center;
}

.promo-drawer-section {
    display: grid;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid rgba(215, 225, 235, 0.92);
}

.promo-drawer-section h3 {
    font-size: 0.98rem;
}

.promo-drawer-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.75;
}

.promo-drawer-list li::marker {
    color: #b91c1c;
}

.promo-drawer-notes {
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.78;
}

.promo-list-shell {
    margin-top: 20px;
}

.promo-faq-shell {
    margin-top: 20px;
}

.promo-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.promo-faq-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 253, 0.95));
    border: 1px solid rgba(215, 225, 235, 0.9);
    border-radius: var(--radius-md);
}

.promo-faq-card h3 {
    font-size: 1rem;
    line-height: 1.45;
}

.promo-faq-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.78;
}

.promo-list-detailed {
    display: grid;
    gap: 0;
}

.promo-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--border-color);
}

.promo-list-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.promo-list-main {
    min-width: 0;
}

.promo-list-main h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.promo-list-main h3 a {
    color: var(--text-main);
}

.promo-list-item.is-active .promo-list-main h3 a {
    color: var(--color-primary);
}

.promo-list-main p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.promo-list-side {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 10px;
}

.promo-list-expired {
    color: var(--text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.news-header-meta,
.news-footer-meta,
.meta-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.promo-card-tag {
    background: var(--bg-accent-soft);
    border-color: var(--border-accent);
    color: var(--color-primary);
}

.promo-card-tag.warning {
    background: #fff1f1;
    border-color: var(--border-color);
    color: var(--color-warning);
}

.promo-discount-amount {
    color: var(--color-primary-strong);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#full-promos-list .promo-discount-amount {
    color: #dc2626;
}

#all-promos-list .promo-discount-amount {
    color: #7f1d1d;
}

.promo-discount-desc,
.news-summary-det {
    color: var(--text-muted);
    font-size: 0.94rem;
}

#full-promos-list .promo-discount-desc,
#home-promo-preview .promo-discount-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-card-detailed h4 {
    font-size: 0.98rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.promo-meta-rows {
    display: grid;
    gap: 12px;
    padding: 16px 0 0;
    border-top: 1px solid var(--border-color);
}

.meta-row-item span:first-child {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.meta-row-item strong {
    color: var(--text-main);
}

.promo-card-footer {
    margin-top: auto;
}

/* News */
.news-portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.92fr);
    gap: 22px;
}

.news-grid-detailed {
    display: grid;
    gap: 0;
}

.news-card-detailed {
    padding: 22px;
    cursor: pointer;
}

.news-grid-detailed .news-card-detailed {
    border-radius: 0;
}

.news-card-illustrated {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tech-card-detailed {
    padding: 24px 0;
}

.news-card-detailed + .news-card-detailed {
    border-top: 1px solid var(--border-color);
}

.list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.pagination-link:hover,
.pagination-link.active {
    border-color: var(--border-accent);
    background: var(--bg-accent-soft);
    color: var(--color-primary);
}

.pagination-link.disabled {
    pointer-events: none;
    opacity: 0.45;
}

.news-card-media {
    min-width: 0;
}

.news-card-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-soft);
}

.tech-card-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 0 22px;
}

.tech-card-media,
.tech-detail-hero-media {
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.tech-card-media {
    min-height: 200px;
}

.tech-card-media img,
.tech-detail-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-card-media img {
    max-height: 220px;
}

.tech-card-body {
    min-width: 0;
}

.news-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.news-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.news-title-det {
    font-size: 1.18rem;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.news-date-inline {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
    padding-top: 2px;
}

.news-summary-det {
    margin-top: 12px;
}

.news-category-inline {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

.news-source-inline {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

.news-footer-meta .article-view-pill {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.news-sidebar-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
}

.news-list-sidebar .news-sidebar-card > div {
    display: grid;
    gap: 8px;
}

.news-sidebar-title,
.news-sidebar-title a {
    color: var(--text-main);
    font-size: 0.98rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.news-sidebar-summary {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.news-sidebar-date {
    color: var(--text-muted);
    font-size: 0.82rem;
    justify-self: end;
    text-align: right;
}

.sidebar-block-title {
    font-size: 1.02rem;
    margin-bottom: 16px;
}

.guide-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 20px;
}

.guide-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
}

.guide-detail h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

.guide-note {
    padding: 22px;
}

/* Directory */
.directory-shell {
    padding: 8px 0;
}

.directory-container {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
}

.directory-sidebar {
    padding: 18px 20px;
    height: fit-content;
    border-color: var(--border-color);
}

.filter-group + .filter-group {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-btn {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--border-strong);
    color: var(--text-main);
    background: var(--bg-surface-soft);
}

.filter-btn.active {
    border-color: var(--border-strong);
    background: transparent;
    color: var(--color-primary);
    font-weight: 700;
}

.directory-main {
    min-width: 0;
}

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

.directory-search {
    flex: 1;
}

.directory-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Detail pages */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs svg {
    width: 14px;
    height: 14px;
}

.detail-header-panel {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
}

.detail-logo-block {
    width: 144px;
    height: 72px;
    border-radius: 14px;
}

.detail-title-block {
    flex: 1;
    min-width: 0;
}

.detail-title-block h1 {
    font-size: 2rem;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-action-block {
    display: flex;
    align-items: center;
}

.detail-body-grid {
    display: block;
}

.detail-content-area,
.detail-sidebar-area {
    min-width: 0;
}

.detail-card {
    padding: 26px 0;
}

.detail-section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.detail-section-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.vendor-specs-panel .detail-section-head h2::before,
.vendor-promo-panel .detail-section-head h2::before {
    content: "";
    width: 3px;
    height: 18px;
    border-radius: 0;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    flex-shrink: 0;
}

.detail-section-head p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.detail-description-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.vendor-promo-panel,
.vendor-specs-panel {
    padding: 26px 28px;
}

.vendor-promo-panel {
    border-top: 1px solid var(--border-color);
}

.vendor-promo-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.vendor-promo-wall .promo-card-detailed {
    min-width: 0;
    border-color: var(--border-color);
}

.vendor-promo-wall .promo-featured-brand {
    display: block;
}

.vendor-promo-wall .promo-featured-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-left: 0;
    text-align: left;
}

.vendor-promo-wall .promo-card-expired {
    margin-left: auto;
    text-align: right;
}

.vendor-promo-wall .promo-discount-desc {
    display: -webkit-box;
    line-height: 1.72;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    min-height: calc(1.72em * 5);
    overflow: hidden;
}

.vendor-promo-wall .promo-logo-slot {
    border: 0;
    background: transparent;
}

.vendor-promo-wall .promo-card-type-coupon_code .btn-primary,
.vendor-promo-wall .promo-card-type-coupon_code .btn-primary:hover {
    border-color: rgba(220, 38, 38, 0.42);
    background: #ffffff;
    color: #b91c1c;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.08);
}

.vendor-promo-wall .promo-card-type-free_use .btn-primary,
.vendor-promo-wall .promo-card-type-free_use .btn-primary:hover {
    border-color: rgba(34, 154, 93, 0.42);
    background: #ffffff;
    color: rgb(34, 154, 93);
    box-shadow: 0 10px 22px rgba(34, 154, 93, 0.08);
}

.vendor-promo-wall .promo-card-type-limited_discount .btn-primary,
.vendor-promo-wall .promo-card-type-limited_discount .btn-primary:hover {
    border-color: rgba(22, 72, 140, 0.4);
    background: #ffffff;
    color: rgb(22, 72, 140);
    box-shadow: 0 10px 22px rgba(22, 72, 140, 0.08);
}

.vendor-promo-wall .promo-card-type-invite_referral .btn-primary,
.vendor-promo-wall .promo-card-type-invite_referral .btn-primary:hover {
    border-color: rgba(251, 146, 60, 0.42);
    background: #ffffff;
    color: #c2410c;
    box-shadow: 0 10px 22px rgba(251, 146, 60, 0.08);
}

.detail-specs-table,
.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table {
    table-layout: fixed;
}

.detail-specs-table td,
.compare-table td,
.compare-table th {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    color: var(--text-secondary);
    word-break: break-word;
}

.detail-specs-table td:first-child,
.compare-table th:first-child,
.compare-table td:first-child {
    padding-right: 24px;
    color: var(--text-main);
    font-weight: 700;
}

.compare-table th {
    text-align: left;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.feature-check,
.feature-cross {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.feature-check {
    color: var(--color-success);
}

.feature-cross {
    color: var(--color-danger);
}

.spec-tile-list {
    display: grid;
    gap: 12px;
}

.spec-tile {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
}

.spec-tile:last-child {
    border-bottom: 0;
}

.tile-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.tile-val {
    display: block;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
}

.side-promo-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(240, 112, 84, 0.18);
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(255, 170, 140, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 250, 247, 0.98), rgba(255, 255, 255, 1));
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.06);
}

.vendor-detail-side-column .detail-sidebar-area {
    position: sticky;
    top: 106px;
}

.detail-offer-title {
    font-size: 1.18rem;
    line-height: 1.45;
}

.promo-amount-inline {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary-strong);
}

.detail-promo-header {
    display: grid;
    gap: 10px;
}

.detail-promo-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.detail-promo-expired,
.detail-promo-label {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.detail-promo-desc,
.detail-promo-section p,
.detail-promo-note {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
}

.detail-promo-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-promo-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-primary-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.detail-promo-section {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.detail-promo-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--text-main);
}

.detail-promo-list li {
    line-height: 1.65;
    color: var(--text-secondary);
}

.detail-promo-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-color);
}

.detail-promo-actions {
    display: grid;
    gap: 10px;
}

.news-detail-wrapper {
    padding: 32px 0;
}

.news-detail-header {
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.tech-detail-hero {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
}

.tech-detail-hero[hidden] {
    display: none;
}

.tech-detail-hero-media {
    padding: 22px;
    min-height: 280px;
}

.tech-detail-hero-media img {
    max-height: 400px;
}

.tech-detail-hero figcaption {
    color: var(--text-muted);
    font-size: 0.84rem;
    text-align: right;
}

.tech-detail-hero figcaption a {
    color: inherit;
}

.tech-detail-hero figcaption a:hover {
    color: var(--color-primary);
}

.news-detail-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 12px 0 16px;
    letter-spacing: -0.05em;
}

.news-detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-detail-meta .news-meta-pill {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.news-detail-meta .news-meta-pill:nth-child(1) {
    justify-self: start;
}

.news-detail-meta .news-meta-pill:nth-child(2) {
    justify-self: center;
}

.news-detail-meta .news-meta-pill:nth-child(3) {
    justify-self: end;
}

.news-detail-content p + p {
    margin-top: 1rem;
}

.news-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.news-detail-figure {
    margin-bottom: 26px;
}

.news-detail-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-soft);
}

.news-detail-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    margin-top: 26px;
    border-top: 1px solid var(--border-color);
}

.news-detail-footer .btn-primary {
    margin-left: auto;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.52);
    z-index: 140;
}

.modal-backdrop.active {
    display: flex;
}

.modal-box {
    width: min(100%, 640px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.modal-box.modal-lg {
    width: min(100%, 1200px);
}

#compareModal .modal-box.modal-lg {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.12rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--bg-surface-soft);
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-close:hover {
    background: var(--bg-accent-soft);
    color: var(--color-primary);
}

.modal-body {
    padding: 24px;
}

#compareModal .modal-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.input-field {
    display: grid;
    gap: 8px;
}

.input-field + .input-field {
    margin-top: 16px;
}

.input-field label {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.92rem;
}

.input-field input,
.input-field select,
.input-field textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-surface-soft);
    color: var(--text-main);
    padding: 14px 16px;
    outline: 0;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--ring-color);
}

/* Compare dock */
.compare-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 120;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.compare-dock.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.compare-dock-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: rgba(15, 23, 42, 0.96);
    color: var(--text-white);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.compare-dock-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(248, 250, 252, 0.92);
}

.compare-dock-info strong,
.compare-dock-info .text-accent {
    color: #f8fafc;
}

.compare-dock-actions {
    display: flex;
    gap: 10px;
}

.compare-dock-actions .btn-text {
    min-width: 72px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: rgba(248, 250, 252, 0.92);
    background: rgba(255, 255, 255, 0.04);
}

.compare-dock-actions .btn-text:hover {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.compare-dock-actions .btn-primary {
    min-width: 104px;
    border-radius: 999px;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .mobile-nav-links .nav-item,
html[data-theme="dark"] .search-tags a,
html[data-theme="dark"] .filter-btn,
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .directory-search,
html[data-theme="dark"] .theme-toggle-menu {
    box-shadow: none;
}

html[data-theme="dark"] .main-header,
html[data-theme="dark"] .main-footer {
    background: #0b0f14;
}

html[data-theme="dark"] .main-header,
html[data-theme="dark"] .hero-banner-card,
html[data-theme="dark"] .hero-side-card,
html[data-theme="dark"] .hot-ranking-panel,
html[data-theme="dark"] .rank-sidebar-card,
html[data-theme="dark"] .news-stream-shell,
html[data-theme="dark"] .headline-card,
html[data-theme="dark"] .headline-brief-item,
html[data-theme="dark"] .feature-tool-card,
html[data-theme="dark"] .article-sidebar,
html[data-theme="dark"] .hot-ranking-item,
html[data-theme="dark"] .article-related-card,
html[data-theme="dark"] .vendor-reference-card,
html[data-theme="dark"] .vendor-preview-card,
html[data-theme="dark"] .vendor-list-item,
html[data-theme="dark"] .promo-card-detailed,
html[data-theme="dark"] .promo-tag-block,
html[data-theme="dark"] .promo-faq-card,
html[data-theme="dark"] .promo-logo-slot,
html[data-theme="dark"] .news-card-detailed,
html[data-theme="dark"] .news-sidebar-card,
html[data-theme="dark"] .promo-compact-card,
html[data-theme="dark"] .directory-sidebar,
html[data-theme="dark"] .modal-box {
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .vendor-list-item.vendor-list-item-region-domestic {
    border-color: rgba(248, 113, 113, 0.34);
}

html[data-theme="dark"] .vendor-logo,
html[data-theme="dark"] .detail-logo-block {
    border-color: rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.28),
        0 10px 24px rgba(2, 6, 23, 0.18);
}

html[data-theme="dark"] .btn-outline {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-color);
}

html[data-theme="dark"] body[data-page="home"] .hero-link-row .btn-outline {
    background: rgba(248, 250, 252, 0.94);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.58);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
}

html[data-theme="dark"] body[data-page="home"] .hero-link-row .btn-outline:hover {
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    border-color: rgba(100, 116, 139, 0.74);
}

html[data-theme="dark"] body[data-page="home"] .hot-ranking-panel {
    border-color: rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.34);
}

html[data-theme="dark"] body[data-page="home"] #home-hot-ranking .hot-ranking-item {
    border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] body[data-page="home"] #home-hot-ranking .hot-ranking-item h3,
html[data-theme="dark"] body[data-page="home"] #home-hot-ranking .hot-ranking-meta {
    color: #e2e8f0;
}

html[data-theme="dark"] body[data-page="home"] #home-hot-ranking .hot-ranking-item:nth-child(4) .hot-ranking-rank,
html[data-theme="dark"] body[data-page="home"] #home-hot-ranking .hot-ranking-item:nth-child(5) .hot-ranking-rank,
html[data-theme="dark"] body[data-page="home"] #home-hot-ranking .hot-ranking-item:nth-child(6) .hot-ranking-rank,
html[data-theme="dark"] body[data-page="home"] #home-hot-ranking .hot-ranking-item:nth-child(7) .hot-ranking-rank,
html[data-theme="dark"] body[data-page="home"] #home-hot-ranking .hot-ranking-item:nth-child(8) .hot-ranking-rank {
    color: #94a3b8;
}

html[data-theme="dark"] .site-footer-grid .footer-cta-block {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 18% 18%, rgba(248, 113, 113, 0.11), transparent 24%),
        linear-gradient(180deg, rgba(8, 17, 32, 0.96), rgba(15, 23, 42, 0.92));
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] .site-footer-grid .footer-cta-block .btn-block {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.24);
    color: #e2e8f0;
}

html[data-theme="dark"] .site-footer-grid .footer-cta-block .btn-block:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(148, 163, 184, 0.36);
    color: #f8fafc;
}

html[data-theme="dark"] .site-footer-grid .footer-cta-block .footer-nav-title {
    color: #f8fafc;
}

html[data-theme="dark"] body[data-page="home"] .home-content-grid > .section-shell {
    border-color: rgba(148, 163, 184, 0.18);
    background: #101b2d;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] body[data-page="home"] .home-content-grid .section-header h2,
html[data-theme="dark"] body[data-page="home"] .home-content-grid .section-header .text-link,
html[data-theme="dark"] body[data-page="home"] .home-content-grid .news-sidebar-title,
html[data-theme="dark"] body[data-page="home"] .home-content-grid .news-sidebar-title a {
    color: #f8fafc;
}

html[data-theme="dark"] body[data-page="home"] .home-content-grid .news-sidebar-summary,
html[data-theme="dark"] body[data-page="home"] .home-content-grid .news-sidebar-date {
    color: #94a3b8;
}

html[data-theme="dark"] body[data-page="home"] .home-content-grid .news-sidebar-card,
html[data-theme="dark"] body[data-page="home"] .home-content-grid .promo-compact-card {
    border-top-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] body[data-page="home"] #featured-vendors .feature-tag {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

html[data-theme="dark"] body[data-page="home"] #featured-vendors .region-badge.region-badge-international {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

html[data-theme="dark"] .btn-outline:hover,
html[data-theme="dark"] .menu-toggle:hover,
html[data-theme="dark"] .menu-toggle.active,
html[data-theme="dark"] .mobile-nav-links .nav-item:hover,
html[data-theme="dark"] .mobile-nav-links .nav-item.active,
html[data-theme="dark"] .search-tags a:hover,
html[data-theme="dark"] .filter-btn:hover,
html[data-theme="dark"] .theme-toggle-option:hover {
    background: var(--bg-surface-soft);
}

html[data-theme="dark"] .headline-card-media img,
html[data-theme="dark"] .news-detail-figure img,
html[data-theme="dark"] .tech-card-media,
html[data-theme="dark"] .tech-detail-hero-media {
    background: #101b2d;
}

html[data-theme="dark"] .compare-dock-container {
    background: linear-gradient(180deg, rgba(11, 28, 52, 0.96), rgba(16, 27, 45, 0.98));
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.38);
}

html[data-theme="dark"] .compare-dock-info {
    color: #e2e8f0;
}

html[data-theme="dark"] .compare-dock-actions .btn-text {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .compare-dock-actions .btn-text:hover {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color);
}

html[data-theme="dark"] body[data-page="promos"] .promo-card-detailed,
html[data-theme="dark"] body[data-page="promos"] .promo-tag-block,
html[data-theme="dark"] body[data-page="promos"] .promo-faq-card {
    background: #101b2d;
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-detailed {
    background: #132033;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.3);
}

html[data-theme="dark"] body[data-page="promos"] .promo-drawer-mask,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-mask,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-mask {
    background: rgba(2, 6, 23, 0.7);
}

html[data-theme="dark"] body[data-page="promos"] .promo-drawer-panel,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-panel,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-panel {
    background: #081120;
    border-left-color: rgba(148, 163, 184, 0.18);
    box-shadow: -18px 0 48px rgba(2, 6, 23, 0.42);
}

html[data-theme="dark"] body[data-page="promos"] .promo-drawer-header,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-meta,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-section,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-header,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-meta,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-section,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-header,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-meta,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-section {
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] body[data-page="promos"] .promo-drawer-kicker,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-amount,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-list li::marker,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-kicker,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-amount,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-list li::marker,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-kicker,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-amount,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-list li::marker {
    color: #f87171;
}

html[data-theme="dark"] body[data-page="promos"] .promo-drawer-close,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-close,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-close {
    color: #e2e8f0;
}

html[data-theme="dark"] body[data-page="promos"] .promo-drawer-close:hover,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-close:hover,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-close:hover {
    color: #fca5a5;
}

html[data-theme="dark"] body[data-page="promos"] .promo-drawer-logo,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-logo,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-logo {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
    color: #0f172a;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.28),
        0 10px 24px rgba(2, 6, 23, 0.18);
}

html[data-theme="dark"] body[data-page="promos"] .promo-drawer-desc,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-type,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-expired,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-meta-item span,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-desc,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-type,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-expired,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-meta-item span,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-desc,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-type,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-expired,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-meta-item span {
    color: var(--text-secondary);
}

html[data-theme="dark"] body[data-page="promos"] .promo-drawer-vendor,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-meta-item strong,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-list,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-notes,
html[data-theme="dark"] body[data-page="promos"] .promo-drawer-header h2,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-vendor,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-meta-item strong,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-list,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-notes,
html[data-theme="dark"] body[data-page="home"] .promo-drawer-header h2,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-vendor,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-meta-item strong,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-list,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-notes,
html[data-theme="dark"] body[data-page="vendor-detail"] .promo-drawer-header h2 {
    color: #e2e8f0;
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-free_use {
    border-color: rgba(34, 197, 94, 0.34);
    background: #101b2d;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.18),
        0 0 28px rgba(34, 197, 94, 0.18),
        0 18px 40px rgba(2, 6, 23, 0.3);
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-limited_discount {
    border-color: rgba(96, 165, 250, 0.34);
    background: #122033;
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.18),
        0 0 28px rgba(96, 165, 250, 0.18),
        0 18px 40px rgba(2, 6, 23, 0.3);
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-coupon_code {
    border-color: rgba(248, 113, 113, 0.32);
    background: #2a1618;
    box-shadow:
        0 0 0 1px rgba(248, 113, 113, 0.18),
        0 0 28px rgba(248, 113, 113, 0.18),
        0 18px 40px rgba(2, 6, 23, 0.3);
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-invite_referral {
    border-color: rgba(251, 146, 60, 0.34);
    background: #101b2d;
    box-shadow:
        0 0 0 1px rgba(251, 146, 60, 0.18),
        0 0 28px rgba(251, 146, 60, 0.18),
        0 18px 40px rgba(2, 6, 23, 0.3);
}

html[data-theme="dark"] .promo-card-detailed.promo-card-visit,
html[data-theme="dark"] .promo-tag-block-visit {
    background: #101b2d;
    border-color: rgba(125, 211, 252, 0.2);
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-logo-slot,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-logo-slot,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-logo-slot,
html[data-theme="dark"] .vendor-promo-wall .promo-logo-slot {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
    color: #b91c1c;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.28),
        0 10px 24px rgba(2, 6, 23, 0.18);
}

html[data-theme="dark"] .promo-card-detailed.promo-card-visit .promo-logo-slot,
html[data-theme="dark"] .promo-tag-block-visit .promo-logo-slot,
html[data-theme="dark"] #all-promos-list .promo-tag-block-visit .promo-logo-slot {
    border-color: rgba(125, 211, 252, 0.28);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
    color: #1d4ed8;
}

html[data-theme="dark"] body[data-page="promos"] .promo-featured-mode,
html[data-theme="dark"] body[data-page="promos"] .promo-faq-card p,
html[data-theme="dark"] body[data-page="promos"] .promo-discount-desc,
html[data-theme="dark"] body[data-page="promos"] .meta-row-item span:first-child,
html[data-theme="dark"] body[data-page="promos"] .promo-list-expired,
html[data-theme="dark"] body[data-page="promos"] .promo-list-main p,
html[data-theme="dark"] body[data-page="promos"] .promo-card-expired {
    color: var(--text-secondary);
}

html[data-theme="dark"] body[data-page="promos"] .promo-card-tag {
    background: rgba(var(--color-primary-rgb), 0.16);
    border-color: rgba(var(--color-primary-rgb), 0.28);
    color: #fca5a5;
}

html[data-theme="dark"] .promo-card-detailed.promo-card-visit .promo-card-tag,
html[data-theme="dark"] .promo-tag-block-visit .promo-card-tag {
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.26);
    color: #bfdbfe;
}

html[data-theme="dark"] body[data-page="promos"] .promo-card-tag.warning {
    background: rgba(251, 146, 60, 0.14);
    border-color: rgba(251, 146, 60, 0.24);
    color: #fdba74;
}

html[data-theme="dark"] body[data-page="promos"] .promo-tag-amount,
html[data-theme="dark"] body[data-page="promos"] .promo-discount-amount,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-tag-amount,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-tag-block-visit .promo-tag-amount {
    color: #fecaca;
}

html[data-theme="dark"] .promo-card-detailed.promo-card-visit .promo-discount-amount,
html[data-theme="dark"] .promo-tag-block-visit .promo-tag-amount,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-tag-block-visit .promo-tag-amount {
    color: #bfdbfe;
}

html[data-theme="dark"] .promo-card-detailed.promo-card-visit .promo-featured-mode {
    color: #bfdbfe;
}

html[data-theme="dark"] body[data-page="promos"] .promo-action-soft,
html[data-theme="dark"] body[data-page="promos"] .promo-action-soft:hover,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-card-detailed .promo-action-soft,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-card-detailed .promo-action-soft:hover {
    border-color: rgba(var(--color-primary-rgb), 0.22);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.78) 0%, rgba(166, 27, 27, 0.92) 100%);
    color: #fff5f5;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] body[data-page="promos"] .promo-action-soft.promo-action-visit,
html[data-theme="dark"] body[data-page="promos"] .promo-action-soft.promo-action-visit:hover {
    border-color: rgba(125, 211, 252, 0.18);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.72) 0%, rgba(29, 78, 216, 0.86) 100%);
    color: #eff6ff;
}

html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-action-soft.promo-action-visit,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-action-soft.promo-action-visit:hover {
    border-color: rgba(147, 197, 253, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-action-soft.promo-action-copy,
html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-action-soft.promo-action-copy:hover,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-action-soft.promo-action-copy,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-action-soft.promo-action-copy:hover,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-action-soft.promo-action-copy,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-action-soft.promo-action-copy:hover {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fecaca;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-free_use .btn-primary,
html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-free_use .btn-primary:hover,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-card-type-free_use .btn-primary,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-card-type-free_use .btn-primary:hover,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-card-type-free_use .btn-primary,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-card-type-free_use .btn-primary:hover {
    border-color: rgba(134, 239, 172, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #bbf7d0;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-limited_discount .btn-primary,
html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-limited_discount .btn-primary:hover,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-card-type-limited_discount .btn-primary,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-card-type-limited_discount .btn-primary:hover,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-card-type-limited_discount .btn-primary,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-card-type-limited_discount .btn-primary:hover {
    border-color: rgba(147, 197, 253, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-card-type-coupon_code .btn-primary,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-card-type-coupon_code .btn-primary:hover {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fecaca;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] .vendor-promo-wall .promo-card-type-coupon_code .btn-primary,
html[data-theme="dark"] .vendor-promo-wall .promo-card-type-coupon_code .btn-primary:hover {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fecaca;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] .vendor-promo-wall .promo-card-type-free_use .btn-primary,
html[data-theme="dark"] .vendor-promo-wall .promo-card-type-free_use .btn-primary:hover {
    border-color: rgba(134, 239, 172, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #bbf7d0;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] .vendor-promo-wall .promo-card-type-limited_discount .btn-primary,
html[data-theme="dark"] .vendor-promo-wall .promo-card-type-limited_discount .btn-primary:hover {
    border-color: rgba(147, 197, 253, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-invite_referral .btn-primary,
html[data-theme="dark"] body[data-page="promos"] #full-promos-list .promo-card-type-invite_referral .btn-primary:hover,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-card-type-invite_referral .btn-primary,
html[data-theme="dark"] body[data-page="home"] #home-promo-preview .promo-card-type-invite_referral .btn-primary:hover,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-card-type-invite_referral .btn-primary,
html[data-theme="dark"] body[data-page="promos"] #all-promos-list .promo-card-type-invite_referral .btn-primary:hover,
html[data-theme="dark"] .vendor-promo-wall .promo-card-type-invite_referral .btn-primary,
html[data-theme="dark"] .vendor-promo-wall .promo-card-type-invite_referral .btn-primary:hover {
    border-color: rgba(253, 186, 116, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fdba74;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] .promo-card-detailed.promo-card-visit .btn-primary,
html[data-theme="dark"] .promo-card-detailed.promo-card-visit .btn-primary:hover,
html[data-theme="dark"] .promo-tag-block-visit .btn-primary,
html[data-theme="dark"] .promo-tag-block-visit .btn-primary:hover {
    border-color: rgba(125, 211, 252, 0.2);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.72) 0%, rgba(29, 78, 216, 0.86) 100%);
    color: #eff6ff;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] .vendor-list-item .vendor-list-heading h3 a {
    color: #f8fafc;
}

html[data-theme="dark"] .vendor-list-item .vendor-list-heading h3 a:hover,
html[data-theme="dark"] .vendor-list-item .vendor-list-heading h3 a:focus-visible,
html[data-theme="dark"] .vendor-list-item .vendor-list-heading h3 a:active {
    color: #f87171;
}

html[data-theme="dark"] body[data-page="promos"] .promo-meta-rows {
    border-top-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .promo-type-free_use {
    background: rgba(21, 128, 61, 0.18);
    color: #4ade80;
}

html[data-theme="dark"] .promo-type-limited_discount {
    background: rgba(22, 72, 140, 0.22);
    color: #93c5fd;
}

html[data-theme="dark"] .promo-type-coupon_code {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

html[data-theme="dark"] .promo-type-invite_referral {
    background: rgba(251, 146, 60, 0.18);
    color: #fdba74;
}

html[data-theme="dark"] .brand-logo {
    content: url("/statics/logo-dark.png");
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 52px 0 34px;
}

.site-footer-grid {
    grid-template-columns: 1fr auto;
    gap: 28px 40px;
    justify-content: space-between;
    align-items: start;
}

.site-footer-grid .footer-brand {
    grid-row: 1;
    grid-column: 1;
    max-width: 320px;
    padding-left: 16px;
}

.footer-brand .brand-logo {
    height: 52px;
}

.site-footer-grid .footer-cta-block {
    grid-row: 1;
    grid-column: 2;
    padding-right: 16px;
    justify-self: end;
    width: auto;
    min-width: 380px;
    max-width: 560px;
    text-align: left;
}

.site-footer-grid .footer-cta-block {
    padding: 22px 24px 24px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 26px;
    background:
        radial-gradient(circle at 18% 18%, rgba(248, 113, 113, 0.09), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.04);
}

.site-footer-grid .footer-cta-block .text-xs,
.site-footer-grid .footer-cta-block .btn-block {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.site-footer-grid .footer-cta-block .btn-block {
    justify-content: center;
    min-height: 46px;
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.96);
}

.footer-nav-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.footer-nav-inline .footer-nav-title {
    margin-bottom: 0;
    white-space: nowrap;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    line-height: 1.4;
    font-size: 0.875rem;
}

.footer-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary, #1a1a2e);
}

.footer-nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px 10px;
    list-style: none;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 100%;
}

.footer-nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    line-height: 1.4;
    font-size: 0.875rem;
    white-space: nowrap;
    flex: 0 1 auto;
}

.footer-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-links a:hover {
    color: var(--color-primary);
}

.footer-friend-row {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(215, 225, 235, 0.5);
    padding-top: 16px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.footer-friend-row a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-friend-row a:hover {
    color: var(--color-primary);
}

.footer-friend-row .friend-links-label {
    color: var(--text-muted);
}

.footer-friend-links {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(215, 225, 235, 0.3);
    font-size: 0.8rem;
}

.footer-friend-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 8px;
}

.footer-friend-links a:hover {
    color: var(--color-primary);
}

.friend-links-label {
    color: var(--text-muted);
}

.footer-brand p,
.footer-links a,
.footer-bottom {
    color: var(--text-muted);
}

.main-footer h4 {
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.footer-links {
    display: grid;
    gap: 10px;
    list-style: none;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-cta-block {
    text-align: center;
    justify-self: end;
    max-width: 560px;
}

.footer-bottom {
    padding: 18px 0 24px;
    border-top: 1px solid rgba(215, 225, 235, 0.8);
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-links {
        position: static;
        left: auto;
        transform: none;
    }

    .header-desktop {
        justify-content: space-between;
    }

    .hero-layout,
    .hero-aibase-layout,
    .split-layout,
    .home-content-grid,
    .news-portal-layout,
    .news-reference-layout,
    .article-reference-layout,
    .vendor-detail-layout,
    .directory-container,
    .footer-grid,
    .site-footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats,
    .vendor-grid,
    .vendor-list,
    .promo-grid-detailed,
    .promo-tag-wall,
    .promo-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vendor-promo-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vendor-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .vendor-list-item {
        gap: 22px;
    }

    .vendor-list-side {
        width: 220px;
        padding-left: 18px;
    }

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

    .footer-cta-block {
        max-width: none;
    }

    .hero-banner-card {
        grid-template-columns: 1fr;
    }

    .hero-banner-card::after {
        width: min(42%, 300px);
        opacity: 0.52;
    }

    .news-card-illustrated {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    .hero-banner-metrics {
        margin-top: 6px;
    }

    .vendor-detail-side-column {
        padding-top: 0;
    }

    .vendor-detail-side-column .detail-sidebar-area {
        position: static;
    }

    .tech-card-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .tech-card-media {
        min-height: 180px;
    }
}

@media (max-width: 820px) {
    .container {
        padding: 0 18px;
    }

    .main-content {
        padding: 20px 0 72px;
    }

    .header-desktop {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .mobile-nav-wrap {
        display: none;
    }

    .mobile-nav-wrap.active {
        display: block;
    }

    .theme-toggle-mobile .theme-toggle-menu {
        position: static;
        min-width: 0;
        margin-top: 0;
    }

    .theme-toggle-mobile .theme-toggle-btn {
        width: 100%;
    }

    .page-hero-card,
    .page-hero-card.compact,
    .section-shell,
    .directory-shell,
    .detail-card,
    .news-detail-wrapper {
        padding: 24px;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-banner-card {
        padding: 28px 24px;
    }

    .hero-banner-card::after {
        right: -42px;
        width: min(46%, 240px);
        opacity: 0.34;
    }

    .quick-stats,
    .vendor-grid,
    .promo-grid-detailed,
    .promo-tag-wall,
    .promo-faq-grid {
        grid-template-columns: 1fr;
    }

    .vendor-promo-wall {
        grid-template-columns: 1fr;
    }

    .vendor-list-item {
        flex-direction: column;
        gap: 18px;
    }

    .footer-cta-block {
        justify-self: stretch;
        text-align: left;
    }

    .site-footer-grid .footer-brand,
    .site-footer-grid .footer-cta-block {
        padding-left: 0;
        padding-right: 0;
    }

    .site-footer-grid .footer-cta-block {
        width: 100%;
    }

    .footer-nav-inline {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .footer-nav-links {
        flex-wrap: wrap;
    }

    .vendor-list-side {
        width: 100%;
        padding-left: 0;
        padding-top: 18px;
        border-left: 0;
        border-top: 1px solid var(--border-color);
    }

    .vendor-list-feature-row {
        align-items: flex-start;
    }

    .vendor-list-compare {
        margin-left: 0;
    }

    .vendor-list-rating {
        justify-items: start;
        margin-left: 0;
    }

    .vendor-list-rating .rating-stars {
        justify-content: flex-start;
    }

    .vendor-list-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .promo-list-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .promo-tag-topline,
    .promo-featured-brand,
    .promo-tag-brand {
        align-items: flex-start;
    }

    .promo-featured-side {
        justify-items: start;
        text-align: left;
        margin-left: 0;
    }

    .promo-drawer-header,
    .promo-drawer-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .promo-drawer-header {
        padding-right: 72px;
    }

    .promo-drawer-brand {
        align-items: flex-start;
    }

    .promo-drawer-expired {
        margin-left: 0;
        max-width: none;
        text-align: left;
    }

    .news-card-illustrated {
        grid-template-columns: 1fr;
    }

    .news-reference-layout,
    .article-reference-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-stream-shell,
    .article-sidebar,
    .news-reference-sidebar,
    .news-detail-wrapper {
        width: 100%;
    }

    .vendor-reference-title-row,
    .flex-align-center.gap-3 {
        flex-direction: column;
        align-items: flex-start;
    }

    .vendor-list-item .vendor-title {
        flex: 1 1 auto;
    }

    .vendor-list-item .vendor-card-head {
        align-items: flex-start;
        min-height: 0;
    }

    .vendor-list-brand {
        flex: 1 1 auto;
        align-items: flex-start;
        text-align: left;
    }

    .vendor-list-item .vendor-list-heading {
        justify-items: start;
        text-align: left;
    }

    .vendor-list-summary {
        padding-top: 0;
    }

    .vendor-rating-corner {
        margin-left: 0;
        justify-items: start;
    }

    .vendor-meta-rail {
        align-items: stretch;
    }

    .vendor-meta-strip {
        flex-basis: 100%;
    }

    .vendor-inline-action {
        width: 100%;
    }

    .vendor-detail-side-column {
        gap: 18px;
        padding-top: 0;
    }

    .promo-list-side {
        justify-items: start;
    }

    .news-detail-meta {
        grid-template-columns: 1fr;
    }

    .news-detail-meta .news-meta-pill:nth-child(1),
    .news-detail-meta .news-meta-pill:nth-child(2),
    .news-detail-meta .news-meta-pill:nth-child(3) {
        justify-self: start;
    }

    .news-detail-footer .btn-primary {
        margin-left: 0;
    }

    .news-title-row,
    .news-footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .list-pagination {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pagination-pages {
        flex-wrap: wrap;
    }

    .headline-card a {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 16px;
    }

    .tech-card-layout {
        gap: 18px;
        padding: 0 18px;
    }

    .tech-card-media {
        min-height: 168px;
        padding: 14px;
    }

    .tech-detail-hero {
        margin-bottom: 22px;
    }

    .tech-detail-hero-media {
        min-height: 220px;
        padding: 18px;
    }

    .headline-grid {
        grid-template-columns: 1fr;
    }

    .home-content-grid > .section-shell + .section-shell {
        border-top: 0;
        padding-left: 0;
        padding-top: 24px;
    }

    .home-content-grid > .section-shell {
        height: auto;
    }

    .home-content-grid .promo-compact-list,
    .home-content-grid .news-list-sidebar {
        grid-auto-rows: auto;
    }

    .home-content-grid .promo-details p {
        -webkit-line-clamp: unset;
    }

    .directory-controls,
    .vendor-footer,
    .promo-compact-card,
    .section-header,
    .detail-header-panel,
    .compare-dock-container {
        flex-direction: column;
        align-items: stretch;
    }

    .compare-dock {
        bottom: 16px;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 1.2rem;
    }

    .brand-logo {
        height: 36px;
    }

    .footer-brand .brand-logo {
        height: 44px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .search-box,
    .directory-search {
        min-height: auto;
        flex-wrap: wrap;
        padding: 14px;
    }

    .search-btn {
        width: 100%;
    }

    .hero-title,
    .news-detail-title {
        font-size: 1.7rem;
    }

    .hero-banner-card {
        min-height: auto;
        padding: 24px 18px;
    }

    .hero-banner-card::before {
        background:
            linear-gradient(135deg, rgba(6, 13, 24, 0.94) 0%, rgba(6, 13, 24, 0.84) 52%, rgba(6, 13, 24, 0.42) 100%),
            radial-gradient(circle at 82% 22%, rgba(56, 189, 248, 0.2), transparent 20%);
    }

    .hero-banner-card::after {
        top: auto;
        right: -24px;
        bottom: -36px;
        width: 180px;
        height: 180px;
        opacity: 0.22;
        background-size: contain, 22px 22px, 22px 22px;
    }

    .hero-data-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        padding-top: 40px;
    }

    .promo-brand-info,
    .vendor-logo-wrapper {
        flex-direction: column;
    }

    .headline-card a {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .headline-card-media img {
        min-height: 168px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .side-promo-card {
        padding: 20px;
        border-radius: 20px;
    }

    .vendor-preview-card {
        border-radius: 18px;
    }

    .detail-promo-topline {
        align-items: flex-start;
    }

    .vendor-list-item {
        padding: 20px 18px;
    }

    .vendor-list-heading,
    .vendor-list-metrics {
        grid-template-columns: 1fr;
    }

    .tech-card-detailed {
        padding: 22px 0;
    }

    .tech-card-layout {
        padding: 0 16px;
    }

    .tech-card-media {
        min-height: 150px;
    }

    .tech-detail-hero-media {
        min-height: 180px;
        padding: 14px;
        border-radius: 18px;
    }

    .tech-detail-hero figcaption {
        text-align: left;
    }
}

/* 文章上下篇导航 */
.article-prev-next {
    display: flex;
    width: 100%;
    flex: 1 1 100%;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-prev-next .prev-article {
    margin-right: auto;
}

.article-prev-next > :last-child {
    margin-left: auto;
}

.article-prev-next .next-article {
    margin-left: auto;
}


.news-detail-content p {
    margin: 24px 0;
}

/* ---------- tag cloud & tag pill ---------- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tag-pill:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(128,128,128,0.15);
    color: var(--text-secondary, #666);
    font-size: 0.75rem;
}

.tag-pill:hover .tag-count {
    background: rgba(255,255,255,0.3);
    color: var(--text-primary);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.news-reference-sidebar .tag-cloud {
    justify-content: flex-start;
    gap: 8px;
}

body[data-page="tag"] .tag-cloud .tag-pill {
    width: calc(14.28% - 11px);
    justify-content: center;
}

body[data-page="tag-detail"] .news-reference-sidebar .tag-cloud .tag-pill {
    width: calc(33.333% - 6px);
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- user form ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; color: #374151; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; background: #fff; color: #111827; }
.form-control:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { appearance: auto; }
