:root {
    --bg: #F7F6F3;
    --surface: #FFFFFF;
    --surface2: #F1F0ED;
    --border: #E3E2E0;
    --border2: #D3D2CF;
    --text: #37352F;
    --muted: #787774;
    --accent: #2383E2;
    --accent-s: rgba(35, 131, 226, 0.1);
    --r: 8px;
    --r-lg: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --t: 0.15s ease;
    
    --success: #3F9142;
    --success-bg: rgba(63, 145, 66, 0.1);
    --warning: #D93025;
    --warning-bg: rgba(217, 48, 37, 0.1);
}

[data-theme="dark"] {
    --bg: #191919;
    --surface: #202020;
    --surface2: #2A2A2A;
    --border: #373737;
    --border2: #4A4A4A;
    --text: #E8E8E6;
    --muted: #9B9A97;
    --accent: #529CCA;
    --accent-s: rgba(82, 156, 202, 0.12);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.45);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 14px;
    transition: background 0.25s, color 0.25s;
    font-size: 14px;
    line-height: 1.6;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 100;
    font-size: 1.2rem;
    transition: all var(--t);
}

.theme-toggle:hover {
    background: var(--surface2);
}

.layout-main {
    width: 100%;
    max-width: 900px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    transition: background 0.25s, border-color 0.25s;
}

.pg-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.pg-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.pg-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.pg-title .hi {
    color: var(--accent);
}

.pg-lead {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
}

.n-divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn-primary {
    padding: 8px 18px;
    background: var(--text);
    color: var(--surface);
    border: none;
    border-radius: var(--r);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: opacity var(--t);
}

[data-theme="dark"] .btn-primary {
    color: #191919;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* Update blocks */
.update-block {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.update-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.change-list {
    list-style: none;
    margin-bottom: 24px;
}

.change-list li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.change-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--accent-s);
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.badge.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge.success {
    background: var(--success-bg);
    color: var(--success);
}

.highlight {
    font-weight: 600;
    color: var(--text);
}

/* Comparisons */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.image-card {
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface);
    position: relative;
}

.image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform var(--t);
}

.image-card img:hover {
    transform: scale(1.02);
}

.mt-4 { margin-top: 1.5rem; }
.text-muted { color: var(--muted); font-size: 0.8rem; margin-bottom: 12px; }

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.75rem;
    color: var(--muted);
}

.image-label.before {
    background-color: var(--warning);
    color: white;
    border-color: var(--warning);
}

.image-label.after {
    background-color: var(--success);
    color: white;
    border-color: var(--success);
}

/* Modal styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--t);
}

.close-modal:hover {
    color: var(--muted);
}
