/* 
   Used Tech Check (A06-S06)
   Global CSS Stylesheet - Custom Vanilla CSS
   Focus: trust, buyer safety, and fast static-site usability
*/

:root {
    --primary-color: #1a365d; /* Safe navy blue representing trust */
    --primary-light: #2a4365;
    --accent-color: #fcc419; /* MTN Gold-Yellow, highly recognizable locally */
    --accent-hover: #fab005;
    --success-color: #2b8a3e; /* Safe green */
    --danger-color: #e03131; /* Alert red */
    --bg-light: #f8f9fa; /* Light background */
    --bg-white: #ffffff;
    --text-dark: #212529; /* Deep charcoal */
    --text-muted: #868e96;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
a,
button,
label,
span {
    overflow-wrap: anywhere;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

ul {
    list-style: none;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-width: 0;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-badge {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top right, var(--bg-light) 49%, transparent 51%);
}

.hero-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    white-space: normal;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.compact-hero-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.compact-hero-copy {
    font-size: 16px;
    margin-bottom: 0;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
    font-size: 16px;
}

.btn-on-yellow {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-on-yellow:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(26, 54, 93, 0.08);
}

.trust-preview {
    background: var(--bg-light);
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.trust-preview-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.tool-preview,
.risk-stack {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.tool-preview {
    overflow: hidden;
}

.tool-preview-header {
    height: 54px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
}

.tool-preview-header span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
}

.tool-preview-header span:nth-child(1) {
    width: 180px;
}

.tool-preview-header span:nth-child(2) {
    width: 110px;
    background: var(--accent-color);
}

.tool-preview-header span:nth-child(3) {
    width: 70px;
}

.tool-preview-body {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 38px;
}

.phone-outline {
    width: 132px;
    height: 190px;
    border-radius: 24px;
    background: #212529;
    padding: 16px 12px;
    margin: 0 auto;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}

.phone-screen {
    background: #f8f9fa;
    height: 140px;
    border-radius: 12px;
    padding: 26px 18px;
}

.screen-line {
    display: block;
    height: 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.screen-line.good {
    width: 74px;
    background: var(--success-color);
}

.screen-line.warn {
    width: 58px;
    background: var(--accent-color);
}

.screen-line.muted {
    width: 82px;
    background: var(--border-color);
}

.preview-checks {
    display: grid;
    gap: 14px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
}

.preview-checks div {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fcfcfd;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.check-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.check-dot.pass {
    background: var(--success-color);
}

.check-dot.warn {
    background: var(--accent-color);
}

.check-dot.danger {
    background: var(--danger-color);
}

.risk-stack {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.risk-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.risk-item:last-child {
    border-bottom: 0;
}

.risk-item > span {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.risk-item h3 {
    color: var(--primary-color);
    font-size: 17px;
    margin-bottom: 6px;
}

.risk-item p {
    color: var(--text-muted);
    font-size: 14px;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(252, 196, 25, 0.3);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--bg-white);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Feature Cards Grid */
.features-section {
    margin-top: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--accent-color);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Guides Section */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.guide-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.guide-badge {
    background-color: rgba(26, 54, 93, 0.08);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 15px;
    align-self: flex-start;
}

.guide-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.guide-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.guide-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--accent-hover);
}

/* Trust Alert Banner (MTN Yellow style) */
.alert-banner {
    background-color: var(--accent-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.alert-icon {
    font-size: 64px;
    flex-shrink: 0;
}

.alert-text h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.alert-text p {
    font-size: 16px;
    color: rgba(26, 54, 93, 0.9);
    margin-bottom: 20px;
    font-weight: 500;
}

.guide-detail-panel {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.safe-hubs {
    margin-bottom: 60px;
}

.section-title.compact {
    margin-bottom: 24px;
}

.safe-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.safe-hub-grid > div {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.safe-hub-grid h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.safe-hub-grid p {
    color: var(--text-muted);
    font-size: 14px;
}

.article-shell {
    padding-top: 38px;
    padding-bottom: 72px;
}

.breadcrumb-link {
    display: inline-flex;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}

.article-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 42px;
}

.article-card h1 {
    color: var(--primary-color);
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-lede {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 32px;
}

.updated-note {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.article-card h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-top: 28px;
    margin-bottom: 10px;
}

.article-card p {
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 16px;
}

.article-cta {
    margin-top: 36px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: #fff9db;
    border: 1px solid rgba(252, 196, 25, 0.55);
}

.article-cta h2 {
    margin-top: 0;
}

/* Interactive Checklist Tool Layout */
.checklist-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 60px;
    width: 100%;
    max-width: 100%;
}

.checklist-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 30px;
}

.checklist-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.checklist-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.checklist-progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

.checklist-progress {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.checklist-category {
    border-bottom: 1px solid var(--border-color);
}

.checklist-category-title {
    padding: 20px 30px;
    background-color: #fcfcfd;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checklist-category-title span:first-child {
    min-width: 0;
}

.checklist-items {
    padding: 10px 30px 20px 30px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed #e9ecef;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    accent-color: var(--primary-color);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.checklist-item-content {
    flex-grow: 1;
    min-width: 0;
}

.checklist-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.checklist-item-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.checklist-footer {
    padding: 30px;
    background-color: #fcfcfd;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.checklist-note {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 500px;
}

.report-details {
    padding: 26px 30px 30px;
    background: #fcfcfd;
    border-top: 1px solid var(--border-color);
}

.report-details-header {
    margin-bottom: 18px;
}

.report-details-header h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 4px;
}

.report-details-header p {
    color: var(--text-muted);
    font-size: 13px;
}

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

.report-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
}

.report-grid input,
.report-grid select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-dark);
    background: var(--bg-white);
    font: inherit;
}

.tool-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 30px 0 70px;
}

.tool-hub-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.tool-hub-card h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.tool-hub-card p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.tool-hub-card ul {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 14px;
}

.tool-hub-card li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: 800;
    margin-right: 8px;
}

.message-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.message-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 26px;
}

.message-form-card h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 8px;
}

.message-form-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

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

.message-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
}

.message-form input,
.message-form select,
.message-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-dark);
    background: var(--bg-white);
    font: inherit;
}

.message-wide {
    grid-column: 1 / -1;
}

.message-output-card .summary-output {
    min-height: 260px;
    margin-bottom: 16px;
}

.config-notice {
    margin: 0 30px 30px 30px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(224, 49, 49, 0.08);
    color: var(--danger-color);
    font-size: 14px;
    font-weight: 600;
}

.config-notice p {
    margin-bottom: 12px;
}

.summary-output {
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 320px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    border: 1px solid rgba(224, 49, 49, 0.18);
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.5;
    font-family: var(--font-sans);
    font-weight: 500;
}

.tool-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: #fff9db;
    border: 1px solid rgba(252, 196, 25, 0.55);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
}

.tool-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.tool-switch a:hover {
    color: var(--bg-white);
    background: var(--primary-light);
}

/* Message Conversion Widget */
.message-widget {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
    gap: 30px;
}

.message-content {
    max-width: 650px;
}

.message-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message-content h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.message-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-message {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-message:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #0f172a; /* Near-black slate blue */
    color: #94a3b8;
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
}

/* Device Database */
.database-page {
    background: #252525;
    color: var(--bg-white);
}

.database-hero {
    padding: 56px 0 28px;
    text-align: center;
}

.database-hero-inner {
    max-width: 880px;
}

.database-hero h1 {
    color: var(--accent-color);
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.database-hero p {
    color: rgba(255,255,255,0.82);
    font-size: 17px;
}

.database-timeline {
    margin: 22px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 760px;
}

.database-timeline span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
    font-size: 13px;
}

.database-timeline strong {
    color: var(--accent-color);
}

.database-alert {
    margin: 26px auto 0;
    max-width: 720px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 16px 18px;
    text-align: left;
}

.database-alert span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.database-alert p {
    font-size: 14px;
    margin: 0;
}

.database-panel {
    padding-bottom: 70px;
}

.database-actions {
    max-width: 680px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.database-action {
    min-height: 132px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    background: #555;
    color: #e7e7e7;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font: inherit;
}

.database-action:hover,
.database-action.is-active {
    background: #646464;
    color: var(--accent-color);
}

.action-link:hover {
    color: var(--accent-color);
}

.db-icon {
    color: #b9b9b9;
    font-size: 38px;
    line-height: 1;
}

.database-action strong {
    font-size: 17px;
}

.database-side-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    max-width: 1040px;
    margin: 0 auto 28px;
}

.database-side-tabs button {
    border: 0;
    border-radius: var(--radius-md);
    background: #4b4b4b;
    color: var(--accent-color);
    font-weight: 800;
    padding: 12px 10px;
    cursor: pointer;
}

.database-side-tabs button:hover {
    background: #5c5c5c;
}

.database-workspace {
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.database-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.database-toolbar h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 6px;
}

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

.database-search {
    min-width: 300px;
    display: grid;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 700;
}

.database-search input,
.compare-controls select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font: inherit;
}

.compare-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.compare-controls label {
    display: grid;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 700;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.device-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    background: #fcfcfd;
}

.device-card h3 {
    color: var(--primary-color);
    margin-bottom: 14px;
    font-size: 20px;
}

.device-specs {
    display: grid;
    gap: 10px;
}

.device-specs div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
}

.device-specs dt {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.device-specs dd {
    color: var(--text-dark);
    font-size: 14px;
}

.config-intro {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.config-block {
    border-radius: var(--radius-md);
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    padding: 14px;
}

.config-block h4 {
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 10px;
}

.config-block dl {
    display: grid;
    gap: 8px;
}

.config-block dl div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}

.config-block dt {
    color: #5c6773;
    font-size: 12px;
    font-weight: 800;
}

.config-block dd {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 650;
}

.check-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.check-chip-list span {
    border-radius: var(--radius-sm);
    background: rgba(26, 54, 93, 0.08);
    color: var(--primary-color);
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 700;
}

.compare-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.compare-table th,
.compare-table td {
    border: 1px solid var(--border-color);
    padding: 14px;
    text-align: left;
    vertical-align: top;
}

.compare-table th {
    background: var(--primary-color);
    color: var(--bg-white);
}

.compare-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.compare-table td:first-child {
    font-weight: 800;
    color: var(--primary-color);
    width: 170px;
}

.empty-state {
    color: var(--text-muted);
    font-weight: 700;
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        max-width: 100vw;
    }

    .hero h1 {
        font-size: 21px;
        letter-spacing: 0;
        max-width: 300px;
        line-height: 1.25;
    }
    
    .hero p {
        font-size: 15px;
    }

    .compact-hero-title {
        font-size: 21px;
        max-width: 300px;
    }

    .compact-hero-copy {
        font-size: 15px;
    }

    .hero-content {
        max-width: 300px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        max-width: 100%;
    }

    .logo-title {
        font-size: 17px;
    }

    .logo-group {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .nav-links a {
        padding: 8px 10px;
    }

    .trust-preview {
        margin-top: -28px;
    }

    .trust-preview-inner {
        grid-template-columns: 1fr;
    }

    .tool-preview-body {
        grid-template-columns: 1fr;
        padding: 26px;
        gap: 22px;
    }

    .tool-preview-header span:nth-child(1) {
        width: 120px;
    }

    .tool-preview-header span:nth-child(2) {
        width: 76px;
    }

    .tool-preview-header span:nth-child(3) {
        width: 42px;
    }

    .preview-checks {
        font-size: 15px;
    }

    .cards-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .guide-detail-panel {
        padding: 24px;
    }

    .article-card {
        padding: 24px;
    }

    .article-card h1 {
        font-size: 24px;
    }

    .article-lede {
        font-size: 16px;
    }

    .checklist-header,
    .checklist-category-title,
    .checklist-items,
    .checklist-footer,
    .report-details,
    .config-notice {
        padding-left: 20px;
        padding-right: 20px;
    }

    .config-notice {
        margin-left: 20px;
        margin-right: 20px;
    }

    .checklist-category-title {
        align-items: flex-start;
        gap: 12px;
    }

    .checklist-header h2 {
        font-size: 19px;
        line-height: 1.35;
    }

    .checklist-header p,
    .checklist-item-desc,
    .alert-text p,
    .hero p {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .checklist-item {
        gap: 12px;
    }

    .checklist-item-content {
        max-width: 260px;
    }

    .checklist-item-desc {
        max-width: 260px;
    }
    
    .alert-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px;
    }
    
    .alert-icon {
        font-size: 48px;
    }
    
    .message-widget {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .checklist-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tool-switch {
        flex-direction: column;
        align-items: stretch;
    }

    .tool-switch a {
        width: 100%;
    }

    .report-grid,
    .tool-hub-grid,
    .message-panel,
    .message-form {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .database-hero {
        padding-top: 38px;
    }

    .database-hero h1 {
        font-size: 30px;
    }

    .database-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .database-action {
        min-height: 118px;
    }

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

    .database-workspace {
        padding: 20px;
    }

    .database-toolbar,
    .compare-controls {
        grid-template-columns: 1fr;
        display: grid;
    }

    .database-search {
        min-width: 0;
    }
}
