@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

/* =========================================================
   TOKENS
========================================================= */
:root {
    --container: 1380px;

    --accent-red: #ff0000;
    --accent-red-dark: #c40000;

    --bg: #f3f4f6;
    --page-bg: linear-gradient(180deg, #f6f7f8 0%, #eceef1 100%);
    --surface: #ffffff;
    --surface-2: #f8f8f8;
    --black: #050505;
    --text: #111111;
    --muted: #6b7280;
    --border: #e8e8e8;
    --card-border: rgba(0, 0, 0, 0.06);
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.05);

    --topbar-bg: #ffffff;
    --topbar-text: #111111;

    --header-bg: #ffffff;
    --header-border: rgba(0, 0, 0, 0.05);

    --nav-bg: linear-gradient(135deg, #000000 0%, #161616 45%, #2a2a2a 100%);
    --nav-link: rgba(255,255,255,0.88);
    --nav-link-hover-bg: rgba(255,255,255,0.09);
    --nav-link-active-bg: rgba(255,255,255,0.10);
    --nav-dropdown-bg: linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
    --nav-dropdown-border: rgba(255,255,255,0.08);
    --nav-dropdown-link: #ffffff;
    --nav-dropdown-link-hover: rgba(255,255,255,0.08);

    --widget-gradient: linear-gradient(135deg, #000000 0%, #161616 45%, #2a2a2a 100%);
    --widget-title-text: #ffffff;

    --footer-bg: #000000;
    --footer-text: rgba(255,255,255,0.86);

    --pre-footer-bg: linear-gradient(180deg, #1a1f28 0%, #11161f 45%, #080c12 100%);
    --pre-footer-border: rgba(255,255,255,0.06);
    --pre-footer-text: rgba(255,255,255,0.9);
}

html[data-theme="dark"] {
    --bg: #0c1118;
    --page-bg: linear-gradient(180deg, #07111d 0%, #0d1623 35%, #111a28 100%);
    --surface: linear-gradient(180deg, rgba(16,24,36,0.98) 0%, rgba(18,28,42,0.98) 100%);
    --surface-2: rgba(255,255,255,0.03);
    --black: #000000;
    --text: #edf1f7;
    --muted: #a8b0bd;
    --border: rgba(255,255,255,0.08);
    --card-border: rgba(255,255,255,0.08);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.22);

    --topbar-bg: linear-gradient(180deg, rgba(7,15,28,0.96) 0%, rgba(8,16,29,0.96) 100%);
    --topbar-text: #edf1f7;

    --header-bg: linear-gradient(180deg, rgba(5,13,24,0.96) 0%, rgba(8,17,31,0.96) 100%);
    --header-border: rgba(255,255,255,0.05);

    --nav-bg: linear-gradient(135deg, #eef2f6 0%, #dfe5ec 45%, #cfd6df 100%);
    --nav-link: rgba(0,0,0,0.86);
    --nav-link-hover-bg: rgba(0,0,0,0.08);
    --nav-link-active-bg: rgba(0,0,0,0.09);
    --nav-dropdown-bg: linear-gradient(180deg, #081325 0%, #0d1b33 100%);
    --nav-dropdown-border: rgba(255,255,255,0.08);
    --nav-dropdown-link: #f3f6ff;
    --nav-dropdown-link-hover: rgba(255,255,255,0.08);

    --widget-gradient: linear-gradient(135deg, #f3f5f8 0%, #e3e8ee 45%, #d4dbe3 100%);
    --widget-title-text: #050505;

    --footer-bg: #040404;
    --footer-text: rgba(255,255,255,0.84);

    --pre-footer-bg: linear-gradient(180deg, #151a22 0%, #0d1219 45%, #05080d 100%);
    --pre-footer-border: rgba(255,255,255,0.08);
    --pre-footer-text: rgba(255,255,255,0.88);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    background: var(--page-bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    display: block;
    max-width: 100%;
}

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

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

/* =========================================================
   TYPO
========================================================= */
.logo-title,
.hero-card h1,
.section-title-bar h2,
.widget-title,
.info-card h3,
.nav-menu a,
.nav-dropdown-toggle,
.topbar-date,
.pre-footer-title,
.pre-footer-newsletter-title,
.pre-footer-brand-text h3 {
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
}

.logo-title,
.hero-card h1,
.section-title-bar h2,
.widget-title,
.info-card h3,
.pre-footer-title,
.pre-footer-newsletter-title,
.pre-footer-brand-text h3 {
    letter-spacing: -0.04em;
}

.nav-menu a,
.nav-dropdown-toggle,
.topbar-date {
    letter-spacing: -0.02em;
}

/* =========================================================
   TOPBAR
========================================================= */
.topbar {
    background: var(--topbar-bg);
    color: var(--topbar-text);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
    pointer-events: none;
}

.topbar-inner {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-date {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--topbar-text);
    line-height: 1;
}

/* =========================================================
   THEME TOGGLE
========================================================= */
.theme-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.toggle-track {
    width: 64px;
    height: 36px;
    border-radius: 999px;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}

html[data-theme="light"] .toggle-track {
    background: linear-gradient(135deg, #f2f4f7, #dfe4ea);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 18px rgba(0,0,0,0.08);
}

.toggle-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #e9edf3 100%);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: translateX(28px);
    transition: transform 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.85);
}

html[data-theme="light"] .toggle-thumb {
    transform: translateX(0);
}

.toggle-icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.toggle-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.toggle-icon.sun { opacity: 0; }
.toggle-icon.moon { opacity: 1; }

html[data-theme="light"] .toggle-icon.sun { opacity: 1; }
html[data-theme="light"] .toggle-icon.moon { opacity: 0; }

/* =========================================================
   SOCIAL LINKS
========================================================= */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.social-link svg {
    width: 15px;
    height: 15px;
    display: block;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 0, 0.22);
    box-shadow: 0 12px 22px rgba(0,0,0,0.22), 0 0 18px rgba(255,0,0,0.10);
}

html[data-theme="light"] .social-link {
    color: #111;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 16px rgba(0,0,0,0.08);
}

html[data-theme="light"] .social-link:hover {
    color: var(--accent-red);
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
    position: relative;
    z-index: 20;
}

.top-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
}

.top-header-inner {
    min-height: 124px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    min-width: 260px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #000000 0%, #1b1b1b 50%, #444444 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.logo-mark::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.32);
}

.logo-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #000;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.98rem;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

html[data-theme="dark"] .logo-title {
    color: #fff;
}

html[data-theme="dark"] .logo-subtitle {
    color: #c3cad5;
}

.header-banner-area {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.header-banner {
    width: 728px;
    max-width: 100%;
    height: 90px;
    border-radius: 22px;
    background: linear-gradient(90deg, #040404 0%, #111111 42%, #434343 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}

.header-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 28%),
        radial-gradient(circle at center left, rgba(255,255,255,0.04), transparent 22%);
    pointer-events: none;
}

.header-banner span {
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

/* =========================================================
   NAVBAR
========================================================= */
.main-nav {
    background: var(--nav-bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 30;
}

.nav-inner {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
}

.nav-logo-mobile {
    display: none;
    color: var(--nav-link);
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    padding: 10px;
}

html[data-theme="dark"] .nav-toggle {
    background: rgba(0,0,0,0.06);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 10px;
}

html[data-theme="dark"] .nav-toggle span {
    background: #111;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu > a,
.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    color: var(--nav-link);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 800;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: all 0.18s ease;
    font: inherit;
}

.nav-menu > a::after,
.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-menu > a:hover,
.nav-dropdown-toggle:hover {
    background: var(--nav-link-hover-bg);
}

.nav-menu > a:hover::after,
.nav-menu > a.active::after,
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.is-active .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-menu > a.active,
.nav-dropdown.is-active .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
    background: var(--nav-link-active-bg);
}

.nav-link-label {
    line-height: 1.1;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-arrow {
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.85;
    transition: transform 0.18s ease;
    color: currentColor;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    background: var(--nav-dropdown-bg);
    border: 1px solid var(--nav-dropdown-border);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.18s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--nav-dropdown-link);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.18s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: var(--nav-dropdown-link-hover);
}

.nav-icon,
.nav-subicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}

.nav-icon {
    font-size: 16px;
}

.nav-subicon {
    width: 22px;
    text-align: center;
    font-size: 16px;
    flex: 0 0 22px;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */
.site-main {
    padding: 28px 0 40px;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

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

/* =========================================================
   CONTENT
========================================================= */
.hero-card,
.content-block,
.widget-card,
.info-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-card {
    padding: 34px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.04), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255,255,255,0.02), transparent 24%);
    pointer-events: none;
}

html[data-theme="dark"] .hero-card::before {
    background:
        radial-gradient(circle at top right, rgba(0,0,0,0.05), transparent 30%),
        radial-gradient(circle at bottom left, rgba(0,0,0,0.04), transparent 26%);
}

.hero-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 34px;
    width: 90px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-red) 0%, rgba(255, 0, 0, 0.12) 100%);
    box-shadow: 0 0 18px rgba(255,0,0,0.22);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

html[data-theme="light"] .hero-badge {
    background: rgba(255, 0, 0, 0.06);
    color: #7a0000;
    border: 0;
}

html[data-theme="dark"] .hero-badge {
    background: rgba(255, 0, 0, 0.12);
    color: #ffb3b3;
    border: 1px solid rgba(255, 0, 0, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 0 1px rgba(255, 0, 0, 0.08);
}

.hero-card h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
    font-weight: 800;
    margin-bottom: 18px;
    max-width: 920px;
}

.hero-card p {
    font-size: 1.05rem;
    max-width: 780px;
    margin-bottom: 26px;
    font-weight: 500;
}

html[data-theme="light"] .hero-card p {
    color: #4b5563;
}

html[data-theme="dark"] .hero-card p {
    color: #d7dde7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(255, 0, 0, 0.18), 0 0 0 1px rgba(255, 0, 0, 0.08);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(255, 0, 0, 0.24), 0 0 20px rgba(255, 0, 0, 0.14);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

html[data-theme="dark"] .btn-secondary {
    background: #f6f6f6;
    color: #111;
    border: 1px solid #e6e6e6;
}

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

.content-block {
    padding: 24px;
}

.section-title-bar {
    margin-bottom: 20px;
}

.section-title-bar h2 {
    font-size: 1.35rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title-bar h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-red) 0%, rgba(255,0,0,0.15) 100%);
}

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

.info-card {
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.info-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-red) 0%, rgba(255, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.info-card:hover::before {
    opacity: 1;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 0, 0.16);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(255, 0, 0, 0.06);
}

.card-tag {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

html[data-theme="light"] .card-tag {
    background: rgba(255, 0, 0, 0.07);
    color: #7d0000;
}

html[data-theme="dark"] .card-tag {
    background: rgba(255, 0, 0, 0.12);
    color: #ffb3b3;
    border: 1px solid rgba(255, 0, 0, 0.14);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

html[data-theme="light"] .info-card p {
    color: #5b6472;
}

html[data-theme="dark"] .info-card p {
    color: #cfd7e3;
}

/* =========================================================
   SIDEBAR / WIDGETS
========================================================= */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget-card {
    overflow: hidden;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.widget-card:hover {
    border-color: rgba(255, 0, 0, 0.12);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 0, 0, 0.05);
}

.widget-title {
    background: var(--widget-gradient);
    color: var(--widget-title-text);
    padding: 14px 18px;
    font-size: 1.05rem;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

.widget-title::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-red) 0%, rgba(255,0,0,0.18) 100%);
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.18);
}

.widget-body {
    padding: 18px;
}

.widget-body p + p {
    margin-top: 8px;
}

.widget-list {
    list-style: none;
}

.widget-list li + li {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

html[data-theme="dark"] .widget-list li + li {
    border-top: 1px solid #efefef;
}

.widget-list a {
    color: var(--text);
    font-weight: 700;
    transition: color 0.2s ease;
}

.widget-list a:hover {
    color: var(--accent-red);
}

/* =========================================================
   WIDGET MÉTÉO PREMIUM SIDEBAR
========================================================= */

.meteo-widget-card--premium {
    overflow: hidden;
    border-radius: 26px;
    padding: 0;
}

.meteo-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    background: var(--widget-gradient);
    color: var(--widget-title-text);
    border-bottom: 1px solid var(--card-border);
}

.meteo-widget-head__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.meteo-widget-head__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: rgba(255,255,255,0.08);
    flex: 0 0 44px;
}

.meteo-widget-title {
    margin: 0;
    padding: 0;
    background: none !important;
    color: inherit !important;
    font-size: 1.15rem;
    line-height: 1.1;
}

.meteo-widget-title::after {
    display: none !important;
}

.meteo-widget-city {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
}

.meteo-widget-refresh {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: inherit;
    font-size: 18px;
    transition: transform 0.18s ease, background 0.18s ease;
    flex: 0 0 36px;
}

.meteo-widget-refresh:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.14);
}

.meteo-widget-body {
    padding: 16px;
}

.meteo-widget-main {
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(50, 115, 220, 0.12) 0%, rgba(220, 235, 255, 0.55) 100%);
    border: 1px solid rgba(70, 120, 220, 0.12);
    margin-bottom: 14px;
    min-width: 0;
}

html[data-theme="dark"] .meteo-widget-main {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(30, 41, 59, 0.65) 100%);
    border-color: rgba(96, 165, 250, 0.16);
}

.meteo-widget-main__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    min-width: 0;
}

.meteo-widget-main__top-left {
    min-width: 0;
    flex: 1 1 auto;
}

.meteo-widget-main__temp {
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 10px;
}

.meteo-widget-main__desc {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.meteo-widget-main__icon {
    font-size: 4rem;
    line-height: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.meteo-widget-main__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    align-items: start;
}

.meteo-widget-main__meta span {
    min-width: 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.meteo-widget-tomorrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 22px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(173, 115, 220, 0.12) 0%, rgba(243, 232, 255, 0.55) 100%);
    border: 1px solid rgba(173, 115, 220, 0.12);
    margin-bottom: 14px;
    min-width: 0;
}

html[data-theme="dark"] .meteo-widget-tomorrow {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.16) 0%, rgba(51, 35, 74, 0.58) 100%);
    border-color: rgba(192, 132, 252, 0.16);
}

.meteo-widget-tomorrow__left {
    min-width: 0;
    flex: 1 1 auto;
}

.meteo-widget-tomorrow__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
}

.meteo-widget-tomorrow__temp {
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 8px;
}

.meteo-widget-tomorrow__desc {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.meteo-widget-tomorrow__icon {
    font-size: 3rem;
    line-height: 1;
    flex: 0 0 auto;
}

.meteo-widget-footer {
    padding-top: 4px;
}

.meteo-widget-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 0 4px;
    font-weight: 700;
    color: #2563eb;
    transition: color 0.18s ease;
}

.meteo-widget-link:hover {
    color: #1d4ed8;
}

.meteo-widget-empty {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    color: var(--muted);
}


/* =========================================================
   PRE-FOOTER
========================================================= */
.pre-footer {
    margin-top: 48px;
    background: var(--pre-footer-bg);
    color: var(--pre-footer-text);
    border-top: 1px solid var(--pre-footer-border);
    position: relative;
    overflow: hidden;
}

.pre-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 22%),
        radial-gradient(circle at top right, rgba(255,255,255,0.04), transparent 20%);
    pointer-events: none;
}

.pre-footer-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 0.9fr 1.15fr;
    gap: 0;
    padding: 40px 0;
}

.pre-footer-col {
    padding: 0 32px;
    min-width: 0;
}

.pre-footer-col:not(:first-child) {
    border-left: 1px solid rgba(255,255,255,0.08);
}

.pre-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.pre-footer-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #000000 0%, #1b1b1b 50%, #444444 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    position: relative;
}

.pre-footer-brand-mark::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.32);
}

.pre-footer-brand-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin: 0;
}

.pre-footer-brand-text p {
    margin-top: 6px;
    color: rgba(255,255,255,0.68);
    font-size: 0.98rem;
    font-weight: 500;
}

.pre-footer-desc {
    color: rgba(255,255,255,0.74);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}

.pre-footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pre-footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.88);
    font-weight: 500;
}

.pre-footer-contact-list a {
    color: rgba(255,255,255,0.88);
}

.pre-footer-contact-list a:hover {
    color: #fff;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    flex: 0 0 36px;
}

.pre-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pre-footer-social {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pre-footer-social svg {
    width: 17px;
    height: 17px;
    display: block;
}

.pre-footer-social:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 0, 0.22);
    box-shadow: 0 14px 24px rgba(0,0,0,0.22), 0 0 18px rgba(255,0,0,0.10);
}

.pre-footer-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 22px;
    position: relative;
}

.pre-footer-title::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--accent-red) 0%, rgba(255,0,0,0.16) 100%);
}

.pre-footer-links {
    list-style: none;
}

.pre-footer-links li + li {
    margin-top: 14px;
}

.pre-footer-links a {
    color: rgba(255,255,255,0.78);
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.pre-footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
    text-shadow: 0 0 14px rgba(255, 0, 0, 0.14);
}

.pre-footer-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.62);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
}

.pre-footer-newsletter-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 14px;
    color: #fff;
}

.pre-footer-newsletter-text {
    color: rgba(255,255,255,0.76);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 340px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-input-wrap {
    position: relative;
}

.newsletter-input-wrap input {
    width: 100%;
    height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    padding: 0 60px 0 18px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.newsletter-input-wrap input::placeholder {
    color: rgba(255,255,255,0.42);
}

.newsletter-input-wrap input:focus {
    border-color: rgba(255, 0, 0, 0.34);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}

.newsletter-send {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.newsletter-send:hover {
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.22), rgba(255, 0, 0, 0.10));
}

.newsletter-send svg {
    width: 15px;
    height: 15px;
}

.newsletter-btn {
    height: 52px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-red) 0%, #f23b36 100%);
    box-shadow: 0 14px 26px rgba(242,59,54,0.22), 0 0 0 1px rgba(255, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(242,59,54,0.28), 0 0 22px rgba(255, 0, 0, 0.16);
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
}

.footer-left p {
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-right a {
    color: rgba(255,255,255,0.84);
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-right a:hover {
    opacity: 1;
    color: #fff;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-link-icon {
    font-size: 15px;
    line-height: 1;
}

/* =========================================================
   BACK TO TOP
========================================================= */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 28px rgba(255, 0, 0, 0.20), 0 0 0 1px rgba(255, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 80;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px rgba(255, 0, 0, 0.24), 0 0 22px rgba(255, 0, 0, 0.18);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    display: block;
}

html[data-theme="light"] .widget-body,
html[data-theme="light"] .content-block,
html[data-theme="light"] .info-card {
    color: #111111;
}

html[data-theme="light"] .widget-body p,
html[data-theme="light"] .content-block p {
    color: #5b6472;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
    .layout-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

    .pre-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px 0;
    }

    .pre-footer-col:nth-child(3) {
        border-left: none;
    }
}

@media (max-width: 980px) {
    .top-header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .logo-area {
        justify-content: center;
    }

    .header-banner-area {
        justify-content: center;
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-logo-mobile {
        display: inline-block;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: var(--nav-bg);
        padding: 12px;
        border-radius: 18px;
        box-shadow: 0 18px 34px rgba(0,0,0,0.22);
        z-index: 1000;
    }

    body.nav-open .nav-menu,
    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu > a,
    .nav-dropdown-toggle {
        justify-content: flex-start;
        width: 100%;
        gap: 10px;
    }

    .nav-icon {
        font-size: 18px;
        min-width: 20px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 100%;
        margin-top: 8px;
        background: var(--nav-dropdown-bg);
        border: 1px solid var(--nav-dropdown-border);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        min-height: 42px;
        padding: 10px 12px;
    }

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

    .hero-card {
        padding: 24px;
    }

    .hero-card h1 {
        line-height: 1.04;
    }

    .hero-card p {
        font-size: 0.98rem;
    }

    .pre-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pre-footer-col {
        padding: 0;
    }

    .pre-footer-col:not(:first-child) {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
        padding-top: 24px;
    }

    .pre-footer-newsletter-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, var(--container));
    }

    .topbar-inner {
        min-height: auto;
        padding: 10px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .topbar-left,
    .topbar-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .topbar-date {
        text-align: center;
        font-size: 0.88rem;
    }

    .top-header-inner {
        min-height: auto;
        padding: 14px 0;
    }

    .logo-link {
        gap: 10px;
    }

    .logo-mark {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1.3rem;
    }

    .logo-title {
        font-size: 1.45rem;
    }

    .logo-subtitle {
        font-size: 0.82rem;
    }

    .header-banner {
        height: 90px;
        border-radius: 16px;
        font-size: 0.92rem;
        text-align: center;
        padding: 0 14px;
    }

    .site-main {
        padding: 18px 0 28px;
    }

    .content-block {
        padding: 18px;
    }

    .widget-title {
        font-size: 0.95rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .footer-right {
        gap: 12px 18px;
    }

    .pre-footer {
        margin-top: 34px;
    }

    .pre-footer-inner {
        padding: 28px 0;
    }

    .pre-footer-brand-text h3 {
        font-size: 1.5rem;
    }

    .pre-footer-title {
        font-size: 1.2rem;
    }

    .pre-footer-newsletter-title {
        font-size: 1.5rem;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
}
@media (max-width: 992px) {
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        display: none !important;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        position: static !important;
        margin-top: 8px;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block !important;
    }

    .nav-dropdown-menu a {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .meteo-widget-body {
        padding: 14px;
    }

    .meteo-widget-head {
        padding: 14px;
    }

    .meteo-widget-head__icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .meteo-widget-title {
        font-size: 1rem;
    }

    .meteo-widget-city {
        font-size: 12px;
    }

    .meteo-widget-main {
        padding: 16px;
        border-radius: 18px;
    }

    .meteo-widget-main__top {
        gap: 10px;
        margin-bottom: 12px;
    }

    .meteo-widget-main__temp {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }

    .meteo-widget-main__desc {
        font-size: 0.95rem;
    }

    .meteo-widget-main__icon {
        font-size: 3rem;
    }

    .meteo-widget-main__meta {
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
    }

    .meteo-widget-main__meta span {
        font-size: 12px;
    }

    .meteo-widget-tomorrow {
        padding: 14px;
        border-radius: 18px;
        gap: 12px;
    }

    .meteo-widget-tomorrow__temp {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }

    .meteo-widget-tomorrow__icon {
        font-size: 2.6rem;
    }
}
