/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f6fa;
    color: #2c3e50;
    min-height: 100vh;
}

a { color: #2980b9; text-decoration: none; }
a:hover { color: #1a5276; }

/* === Forms === */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.25rem; font-size: 0.85rem; color: #555; }
.form-control {
    display: block; width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd; border-radius: 6px;
    font-size: 0.9rem; font-family: inherit;
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: #2980b9; box-shadow: 0 0 0 3px rgba(41,128,185,0.1); }
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none; border-radius: 6px;
    font-size: 0.85rem; font-weight: 500; cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #2980b9; color: #fff; }
.btn-primary:hover { background: #2471a3; }
.btn-secondary { background: #95a5a6; color: #fff; }
.btn-secondary:hover { background: #7f8c8d; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-outline { background: transparent; border: 1px solid #ddd; color: #555; }
.btn-outline:hover { background: #f8f9fa; border-color: #bbb; }
.btn-block { display: block; width: 100%; justify-content: center; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }

/* === Alert === */
.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.85rem; }
.alert-danger { background: #fdf0ef; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-success { background: #eafaf1; color: #27ae60; border: 1px solid #a9dfbf; }

/* === Login Page === */
.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
}
.login-card {
    background: #fff; border-radius: 12px;
    padding: 2.5rem; width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header i { font-size: 2.5rem; color: #2980b9; }
.login-header h1 { font-size: 1.5rem; margin: 0.5rem 0 0.25rem; }
.login-header p { color: #888; font-size: 0.85rem; }

/* === Password Toggle === */
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 2.5rem; }
.toggle-password {
    position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: #888; font-size: 1rem; padding: 0.25rem;
}
.toggle-password:hover { color: #2980b9; }

/* === App Layout === */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px; background: #2c3e50; color: #ecf0f1;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 100;
}
.sidebar-header { padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-header h2 { font-size: 1.2rem; font-weight: 600; }
.sidebar-header h2 i { margin-right: 0.5rem; color: #3498db; }

.btn-create-invoice {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin: 1rem; padding: 0.7rem;
    background: #27ae60; color: #fff;
    border-radius: 8px; font-weight: 600; font-size: 0.85rem;
    transition: background 0.2s;
}
.btn-create-invoice:hover { background: #219a52; color: #fff; }

.nav-links { list-style: none; flex: 1; padding: 0.5rem 0; }
.nav-links li a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 1.25rem; color: #bdc3c7;
    font-size: 0.85rem; transition: all 0.2s;
}
.nav-links li a:hover { background: rgba(255,255,255,0.05); color: #ecf0f1; }
.nav-links li a.active { background: rgba(255,255,255,0.1); color: #fff; border-left: 3px solid #3498db; }
.nav-links li a i { width: 20px; text-align: center; }

.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.btn-logout {
    background: none; border: none; color: #bdc3c7;
    cursor: pointer; font-size: 0.85rem; font-family: inherit;
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem;
}
.btn-logout:hover { color: #e74c3c; }

.main-content {
    margin-left: 240px; flex: 1;
    padding: 2rem; min-height: 100vh;
}

/* === Page Header === */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.5rem; font-weight: 600; }

/* === Stats Grid === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    background: #fff; border-radius: 10px; padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
}
.stat-value { display: block; font-size: 1.1rem; font-weight: 700; }
.stat-label { display: block; font-size: 0.75rem; color: #888; margin-top: 0.1rem; }

/* === Dashboard === */
.dashboard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dashboard-card {
    background: #fff; border-radius: 10px; padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dashboard-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

.status-list { display: flex; flex-direction: column; gap: 0.75rem; }
.status-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot.paid { background: #27ae60; }
.status-dot.unpaid { background: #f39c12; }
.status-dot.overdue { background: #e74c3c; }
.status-dot.draft { background: #95a5a6; }
.status-count { margin-left: auto; font-weight: 600; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quick-action-btn {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem; border-radius: 8px;
    background: #f8f9fa; color: #2c3e50;
    font-size: 0.85rem; font-weight: 500;
    transition: all 0.2s;
}
.quick-action-btn:hover { background: #e8f4fd; color: #2980b9; }

/* === Table === */
/* Bulk action bar */
.bulk-action-bar {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem; margin-bottom: 0.75rem;
    background: #eaf2f8; border: 1px solid #aed6f1; border-radius: 8px;
    font-size: 0.85rem; font-weight: 500;
}
.bulk-action-bar span { margin-right: 0.5rem; color: #2c3e50; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.data-table thead { background: #f8f9fa; }
.data-table th { padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #888; }
.data-table td { padding: 0.75rem 1rem; font-size: 0.85rem; border-top: 1px solid #f0f0f0; }
.data-table tr:hover { background: #fafbfc; }

/* === Status Badges === */
.badge {
    display: inline-block; padding: 0.2rem 0.6rem;
    border-radius: 20px; font-size: 0.7rem; font-weight: 600;
}
.badge-paid { background: #eafaf1; color: #27ae60; }
.badge-unpaid { background: #fef9e7; color: #f39c12; }
.badge-overdue { background: #fdf0ef; color: #e74c3c; }
.badge-draft { background: #f2f3f4; color: #95a5a6; }

/* === Card/Panel === */
.panel {
    background: #fff; border-radius: 10px;
    padding: 1.5rem; margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #f0f0f0; }

/* === Form Layout === */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

/* === Search Bar === */
.search-bar {
    display: flex; gap: 0.75rem; margin-bottom: 1.5rem;
}
.search-bar input {
    flex: 1; padding: 0.5rem 0.75rem;
    border: 1px solid #ddd; border-radius: 6px;
    font-size: 0.85rem; font-family: inherit;
}

/* === Empty State === */
.empty-state {
    text-align: center; padding: 3rem; color: #888;
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; color: #ddd; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #555; }
.empty-state p { font-size: 0.85rem; }

/* === Invoice Line Items === */
.line-items-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.line-items-table th {
    padding: 0.5rem; text-align: left;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #888;
    border-bottom: 2px solid #e0e0e0;
}
.line-items-table td { padding: 0.4rem; }
.line-items-table input, .line-items-table select {
    width: 100%; padding: 0.4rem 0.5rem;
    border: 1px solid #ddd; border-radius: 4px;
    font-size: 0.85rem; font-family: inherit;
}
.line-items-table .btn-remove { color: #e74c3c; cursor: pointer; background: none; border: none; font-size: 1rem; }

/* === Totals === */
.totals-section { display: flex; justify-content: flex-end; }
.totals-table { width: 300px; }
.totals-table tr td { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.totals-table tr td:last-child { text-align: right; font-weight: 500; }
.totals-table tr.total-row { font-size: 1rem; font-weight: 700; border-top: 2px solid #2c3e50; }

/* === Filter Tabs === */
.filter-tabs { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.filter-tab {
    padding: 0.4rem 0.8rem; border-radius: 6px;
    font-size: 0.8rem; font-weight: 500;
    background: #f0f0f0; color: #555;
    cursor: pointer; border: none; font-family: inherit;
    transition: all 0.2s;
}
.filter-tab.active, .filter-tab:hover { background: #2980b9; color: #fff; }

/* === Activity Log === */
.activity-log { display: flex; flex-direction: column; gap: 0; }
.activity-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0; border-bottom: 1px solid #f0f0f0;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 20px; text-align: center; font-size: 0.85rem; }
.activity-text { flex: 1; font-size: 0.9rem; color: #333; }
.activity-time { font-size: 0.8rem; color: #999; white-space: nowrap; }

/* === Collapsible Panel === */
.panel-collapsible .panel-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.panel-collapsible:not(.collapsed) .panel-header { margin-bottom: 1rem !important; padding-bottom: 0.5rem !important; border-bottom: 1px solid #f0f0f0 !important; }
.panel-collapsible .panel-header .chevron {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    color: #888;
}
.panel-collapsible.collapsed .panel-header .chevron { transform: rotate(-90deg); }
.panel-collapsible .panel-body {
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 1;
}
.panel-collapsible.collapsed .panel-body { max-height: 0; opacity: 0; }

/* === Drop Zone === */
.drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #888;
    font-size: 0.85rem;
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: #2980b9;
    background: #f0f7fd;
    color: #2980b9;
}
.drop-zone i.fa-cloud-upload-alt { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.drop-zone .upload-preview { display: flex; align-items: center; gap: 0.5rem; justify-content: center; }

/* === Responsive (App) === */
@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar-header h2 span, .nav-links li a span, .btn-create-invoice span { display: none; }
    .main-content { margin-left: 60px; padding: 1rem; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .dashboard-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   PUBLIC PAGES
   ============================================ */

.public-page { background: #fff; }

.public-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.public-container-narrow { max-width: 800px; }

/* --- Public Header --- */
.public-header {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky; top: 0; z-index: 100;
}
.public-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1100px; margin: 0 auto;
}
.public-logo { font-size: 1.3rem; font-weight: 700; color: #2c3e50; }
.public-logo i { color: #2980b9; margin-right: 0.4rem; }
.public-logo:hover { color: #2c3e50; }

.public-nav { display: flex; gap: 1.5rem; }
.public-nav a { color: #555; font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.public-nav a:hover, .public-nav a.active { color: #2980b9; }

.public-auth-buttons { display: flex; gap: 0.5rem; }

/* --- Breadcrumbs --- */
.breadcrumbs {
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}
.breadcrumbs .public-container {
    display: flex; align-items: center; gap: 0.5rem;
}
.breadcrumbs a { color: #2980b9; }
.breadcrumbs a:hover { color: #1a5276; }
.breadcrumbs span { color: #888; }
.breadcrumbs .fa-chevron-right { font-size: 0.6rem; color: #bbb; }
.breadcrumbs .fa-home { color: #888; }

/* --- Hero (Landing) --- */
.hero {
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
    color: #fff;
}
.hero h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.text-accent { color: #82e0aa; }
.hero-subtitle { font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; line-height: 1.6; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-light { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-light:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }

/* --- Features Grid --- */
.features-section { padding: 4rem 1.5rem; background: #f8f9fa; }
.section-title { text-align: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 2.5rem; color: #2c3e50; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    background: #fff; border-radius: 10px; padding: 1.75rem;
    text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; color: #fff; font-size: 1.3rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: #666; line-height: 1.5; }

/* --- How It Works --- */
.how-it-works { padding: 4rem 1.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.step-card { padding: 1.5rem; }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: #2980b9; color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.2rem; font-weight: 700;
}
.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: #666; }

/* --- More Features --- */
.more-features { padding: 3rem 1.5rem; background: #f8f9fa; }
.more-features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.more-feature {
    background: #fff; border-radius: 8px; padding: 1rem;
    font-size: 0.85rem; font-weight: 500; color: #2c3e50;
    display: flex; align-items: center; gap: 0.6rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.more-feature i { color: #2980b9; font-size: 1rem; width: 20px; text-align: center; }

/* --- CTA Banner --- */
.cta-banner {
    text-align: center; padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
}
.cta-banner h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-banner p { font-size: 1rem; opacity: 0.9; margin-bottom: 1.5rem; }

/* --- Page Hero (subpages) --- */
.page-hero {
    text-align: center; padding: 3rem 1.5rem;
    background: #f8f9fa; border-bottom: 1px solid #e8e8e8;
}
.page-hero h1 { font-size: 2rem; font-weight: 700; color: #2c3e50; }
.page-hero h1 i { color: #2980b9; margin-right: 0.5rem; }
.page-hero p { color: #666; font-size: 1rem; margin-top: 0.5rem; }
.page-hero-sm { padding: 2.5rem 1.5rem; }

/* --- Accordion (Návody) --- */
.navody-content { padding: 3rem 1.5rem; }
.accordion-item { border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; }
.accordion-header {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; background: #fff; border: none; cursor: pointer;
    font-size: 0.95rem; font-weight: 600; font-family: inherit; color: #2c3e50;
    transition: background 0.2s;
}
.accordion-header:hover { background: #f8f9fa; }
.accordion-header span i { margin-right: 0.75rem; color: #2980b9; }
.accordion-chevron { transition: transform 0.3s; color: #888; font-size: 0.85rem; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-item.open .accordion-body { max-height: 800px; }
.accordion-body-inner {
    padding: 1rem 1.25rem 1.25rem; font-size: 0.9rem;
    line-height: 1.7; color: #555; border-top: 1px solid #f0f0f0;
}
.accordion-body-inner ol { padding-left: 1.25rem; }
.accordion-body-inner li { margin-bottom: 0.5rem; }
.accordion-body-inner h4 { font-size: 0.95rem; font-weight: 600; color: #2c3e50; margin-bottom: 0.5rem; }

/* --- Articles --- */
.articles-content { padding: 3rem 1.5rem; }
.article-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.article-card {
    background: #fff; border: 1px solid #e8e8e8; border-radius: 10px;
    padding: 1.5rem; display: block; color: inherit; transition: all 0.2s;
}
a.article-card:hover { border-color: #2980b9; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.article-card.placeholder-card { opacity: 0.5; pointer-events: none; }
.article-card-icon { font-size: 1.5rem; color: #2980b9; margin-bottom: 0.75rem; }
.article-card-tag {
    display: inline-block; padding: 0.15rem 0.5rem;
    border-radius: 4px; font-size: 0.7rem; font-weight: 600; margin-bottom: 0.75rem;
}
.tag-published { background: #eafaf1; color: #27ae60; }
.tag-coming { background: #fef9e7; color: #f39c12; }
.article-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.article-card p { font-size: 0.85rem; color: #666; line-height: 1.5; }
.article-card-meta { display: flex; gap: 1rem; margin-top: 0.75rem; font-size: 0.75rem; color: #999; }
.article-card-meta i { margin-right: 0.3rem; }

/* --- Article Detail --- */
.article-meta-hero { margin-top: 0.75rem; font-size: 0.85rem; color: #888; display: flex; gap: 1.5rem; justify-content: center; }
.article-meta-hero i { margin-right: 0.3rem; }
.article-content { padding: 3rem 1.5rem; }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; }
.article-body { min-width: 0; }
.article-body h2 { font-size: 1.4rem; font-weight: 700; color: #2c3e50; margin: 2rem 0 1rem; padding-top: 1rem; border-top: 1px solid #f0f0f0; }
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 { font-size: 1.1rem; font-weight: 600; color: #2c3e50; margin: 1.5rem 0 0.75rem; }
.article-body p { font-size: 0.95rem; line-height: 1.8; color: #444; margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.article-body li { font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.4rem; color: #444; }

/* Article info boxes */
.article-info-box {
    display: flex; gap: 0.75rem; padding: 1rem 1.25rem;
    border-radius: 8px; margin: 1.25rem 0;
    background: #eaf2f8; border-left: 4px solid #2980b9;
}
.article-info-box i { color: #2980b9; font-size: 1.1rem; margin-top: 0.15rem; flex-shrink: 0; }
.article-info-box p { margin: 0; font-size: 0.9rem; line-height: 1.6; }
.article-info-box-success { background: #eafaf1; border-left-color: #27ae60; }
.article-info-box-success i { color: #27ae60; }
.article-info-box-warning { background: #fef9e7; border-left-color: #f39c12; }
.article-info-box-warning i { color: #f39c12; }
.article-info-box a { color: #27ae60; font-weight: 600; }

/* Article tables */
.article-table-wrapper { margin: 1.25rem 0; overflow-x: auto; }
.article-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden;
}
.article-table th { padding: 0.75rem 1rem; background: #f8f9fa; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: #888; text-align: left; }
.article-table td { padding: 0.75rem 1rem; font-size: 0.9rem; border-top: 1px solid #f0f0f0; }

/* Article comparison cards */
.article-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.comparison-card {
    background: #f8f9fa; border-radius: 8px; padding: 1.25rem;
    border: 1px solid #e8e8e8;
}
.comparison-card h4 { font-size: 1rem; font-weight: 600; color: #2c3e50; margin-bottom: 0.75rem; }
.comparison-card h4 i { color: #2980b9; margin-right: 0.4rem; }
.comparison-card ul { padding-left: 1rem; }
.comparison-card li { font-size: 0.85rem; margin-bottom: 0.4rem; }

/* Tips grid */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.tip-card { background: #f8f9fa; border-radius: 8px; padding: 1.25rem; border: 1px solid #e8e8e8; }
.tip-icon { font-size: 1.3rem; color: #2980b9; margin-bottom: 0.5rem; }
.tip-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.tip-card p { font-size: 0.85rem; color: #666; line-height: 1.5; }

/* --- Article Sidebar --- */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-cta {
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
    color: #fff; border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-cta h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.sidebar-cta h3 i { margin-right: 0.4rem; }
.sidebar-cta p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 1rem; line-height: 1.5; }
.sidebar-toc { background: #f8f9fa; border-radius: 10px; padding: 1.25rem; border: 1px solid #e8e8e8; }
.sidebar-toc h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; color: #2c3e50; }
.sidebar-toc ul { list-style: none; }
.sidebar-toc li { margin-bottom: 0.4rem; }
.sidebar-toc a { font-size: 0.8rem; color: #2980b9; }
.sidebar-toc a:hover { color: #1a5276; }

/* --- Public Footer --- */
.public-footer { background: #2c3e50; color: #bdc3c7; padding: 3rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-col {}
.public-footer h4 { color: #ecf0f1; font-size: 1rem; margin-bottom: 0.75rem; }
.public-footer h4 i { color: #3498db; margin-right: 0.4rem; }
.public-footer p { font-size: 0.85rem; line-height: 1.6; }
.public-footer ul { list-style: none; }
.public-footer ul li { margin-bottom: 0.4rem; }
.public-footer ul a { color: #bdc3c7; font-size: 0.85rem; transition: color 0.2s; }
.public-footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; }

/* --- Public Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .more-features-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .public-nav { display: none; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .article-cards-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .article-comparison { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: 1fr; }
}
