:root {
      color-scheme: light;
      --bg: #f3f6fb;
      --bg-soft: #eef3fb;
      --surface: rgba(255, 255, 255, 0.92);
      --surface-solid: #ffffff;
      --surface-2: #f8fafc;
      --text: #0f172a;
      --muted: #64748b;
      --line: #dbe4f0;
      --line-strong: #c8d6e8;
      --primary: #0b1f4d;
      --primary-2: #173a84;
      --accent: #d90429;
      --accent-2: #ef233c;
      --success: #059669;
      --warning: #f59e0b;
      --shadow-sm: 0 12px 26px rgba(15, 23, 42, 0.07);
      --shadow-md: 0 20px 45px rgba(15, 23, 42, 0.10);
      --radius-sm: 16px;
      --radius-md: 22px;
      --radius-lg: 30px;
      --container: min(1320px, calc(100% - 32px));
      --font-scale: 100%;
      --header-height: 92px;
      --panel-width: 360px;
    }

    html.preload-dark,
    body.dark {
      color-scheme: dark;
      --bg: #020817;
      --bg-soft: #081121;
      --surface: rgba(11, 19, 36, 0.88);
      --surface-solid: #0b1324;
      --surface-2: #111c33;
      --text: #f8fafc;
      --muted: #9fb1c7;
      --line: #1f2c44;
      --line-strong: #32455f;
      --primary: #0a1735;
      --primary-2: #14326f;
      --shadow-sm: 0 12px 26px rgba(0, 0, 0, 0.24);
      --shadow-md: 0 20px 45px rgba(0, 0, 0, 0.34);
    }

    body.accent-blue {
      --accent: #2563eb;
      --accent-2: #1d4ed8;
    }

    body.accent-green {
      --accent: #059669;
      --accent-2: #0f766e;
    }

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

    html {
      scroll-behavior: smooth;
      font-size: var(--font-scale);
    }

    body {
      font-family: 'Cairo', sans-serif;
      background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 25%),
        radial-gradient(circle at top left, rgba(217, 4, 41, 0.08), transparent 22%),
        var(--bg);
      color: var(--text);
      line-height: 1.75;
      transition: background 0.25s ease, color 0.25s ease;
      min-height: 100vh;
      overflow-x: hidden;
    }

    body.compact {
      --radius-md: 18px;
      --radius-lg: 22px;
    }

    body.panel-open,
    body.search-open,
    body.menu-open {
      overflow: hidden;
    }

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

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

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

    .container {
      width: var(--container);
      margin: auto;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .progress-bar {
      position: fixed;
      top: 0;
      right: 0;
      height: 4px;
      width: 0;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      z-index: 1200;
      box-shadow: 0 2px 12px rgba(217, 4, 41, 0.35);
    }

    .topbar {
      background: linear-gradient(90deg, var(--primary), var(--primary-2));
      color: #fff;
      padding: 10px 0;
      font-size: 0.92rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .topbar .container,
    .header .container,
    .hero-meta,
    .header-actions,
    .nav,
    .topbar-group,
    .chips,
    .footer-social,
    .quick-stats,
    .floating-actions,
    .panel-actions,
    .panel-color-grid,
    .panel-switch-row,
    .hero-actions,
    .meta,
    .news-controls,
    .search-box,
    .search-results ul {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .topbar .container {
      justify-content: space-between;
      gap: 16px;
    }

    .topbar-group {
      gap: 18px;
    }

    .live-pill,
    .badge,
    .tag-soft,
    .chip,
    .status-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 999px;
      font-weight: 800;
      line-height: 1;
    }

    .live-pill {
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.16);
      padding: 9px 12px;
    }

    .live-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.45); opacity: 0.72; }
    }

    .socials {
      display: flex;
      gap: 10px;
    }

    .socials a,
    .footer-social a,
    .floating-btn,
    .icon-btn,
    .menu-btn,
    .play-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .socials a,
    .footer-social a {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.08);
    }

    .socials a:hover,
    .footer-social a:hover {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.18);
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 1100;
      backdrop-filter: blur(16px);
      background: color-mix(in srgb, var(--surface-solid) 84%, transparent);
      border-bottom: 1px solid var(--line);
    }

    .header .container {
      min-height: var(--header-height);
      justify-content: space-between;
      gap: 22px;
      padding: 14px 0;
    }

    .brand-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: max-content;
    }

    .logo-mark {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      background: linear-gradient(140deg, var(--accent), var(--primary));
      box-shadow: var(--shadow-sm);
      color: #fff;
      font-size: 1.2rem;
    }

    .logo-text {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .logo {
      font-size: 2rem;
      font-weight: 900;
      letter-spacing: -0.03em;
      line-height: 1;
      color: var(--primary);
    }

    body.dark .logo {
      color: #fff;
    }

    .logo span,
    .footer-brand span {
      color: var(--accent);
    }

    .logo-sub {
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 700;
    }

    .nav {
      justify-content: center;
      gap: 22px;
      flex: 1;
    }

    .nav a {
      position: relative;
      padding: 6px 0;
      font-size: 0.98rem;
      font-weight: 800;
      color: var(--text);
      transition: color 0.2s ease;
    }

    .nav a::after {
      content: '';
      position: absolute;
      right: 0;
      bottom: -8px;
      height: 3px;
      width: 0;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      transition: width 0.25s ease;
    }

    .nav a:hover,
    .nav a.active {
      color: var(--accent);
    }

    .nav a:hover::after,
    .nav a.active::after {
      width: 100%;
    }

    .header-actions {
      justify-content: flex-end;
      min-width: max-content;
    }

    .icon-btn,
    .menu-btn,
    .floating-btn {
      width: 46px;
      height: 46px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--surface-solid);
      color: var(--text);
      box-shadow: var(--shadow-sm);
      cursor: pointer;
    }

    .icon-btn:hover,
    .menu-btn:hover,
    .floating-btn:hover,
    .play-btn:hover,
    .ghost-btn:hover,
    .primary-btn:hover,
    .chip:hover {
      transform: translateY(-2px);
    }

    .icon-btn:hover,
    .menu-btn:hover,
    .floating-btn:hover,
    .play-btn:hover,
    .chip.active,
    .chip:hover,
    .color-btn.active {
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #fff;
      border-color: transparent;
    }

    .menu-btn {
      display: none;
    }

    .ticker {
      margin: 18px 0 0;
    }

    .ticker[hidden],
    .video-section[hidden],
    .latest[hidden],
    .insight-section[hidden] {
      display: none !important;
    }

    .ticker-inner {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 0;
      background: var(--surface-solid);
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }

    .ticker-label {
      padding: 16px 18px;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      color: #fff;
      font-weight: 900;
      white-space: nowrap;
    }

    .ticker-track {
      overflow: hidden;
      padding-inline: 18px;
    }

    .ticker-marquee {
      display: inline-flex;
      align-items: center;
      gap: 38px;
      min-width: max-content;
      padding-block: 14px;
      animation: marquee 34s linear infinite;
      font-weight: 800;
    }

    .ticker-paused .ticker-marquee {
      animation-play-state: paused;
    }

    .ticker-item {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      white-space: nowrap;
      color: var(--text);
    }

    .ticker-item::before {
      content: '●';
      color: var(--accent);
      font-size: 0.9rem;
    }

    @keyframes marquee {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    .ticker-toggle {
      border: 0;
      border-inline-start: 1px solid var(--line);
      background: transparent;
      color: var(--muted);
      padding: 0 18px;
      height: 100%;
      cursor: pointer;
      font-weight: 800;
    }

    .hero {
      padding: 26px 0 10px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.8fr 1fr;
      gap: 24px;
    }

    .hero-main,
    .side-card,
    .card,
    .feature-card,
    .trending-block,
    .insight-card,
    .video-card,
    .newsletter,
    .search-modal,
    .control-panel,
    .mobile-drawer,
    .stat-card {
      background: var(--surface-solid);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-sm);
    }

    .hero-main {
      position: relative;
      min-height: 560px;
      overflow: hidden;
      border-radius: var(--radius-lg);
    }

    .hero-main img {
      height: 100%;
      object-fit: cover;
      transform: scale(1.02);
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      gap: 14px;
      padding: 32px;
      color: #fff;
      background: linear-gradient(to top, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.06));
    }

    .badge {
      width: fit-content;
      padding: 9px 14px;
      font-size: 0.82rem;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      color: #fff;
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
    }

    .hero-title {
      font-size: clamp(1.95rem, 3vw, 2.85rem);
      line-height: 1.35;
      font-weight: 900;
      max-width: 88%;
    }

    .hero-text {
      color: #dbe7f7;
      font-size: 1rem;
      max-width: 75%;
    }

    .hero-actions {
      gap: 14px;
      margin-top: 6px;
    }

    .primary-btn,
    .ghost-btn {
      border-radius: 14px;
      padding: 12px 18px;
      font-weight: 900;
      font-size: 0.95rem;
      cursor: pointer;
      border: 1px solid transparent;
      transition: 0.2s ease;
    }

    .primary-btn {
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      color: #fff;
      box-shadow: 0 14px 28px rgba(217, 4, 41, 0.26);
    }

    .ghost-btn {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.18);
      color: #fff;
    }

    .hero-meta,
    .meta {
      color: #d0d9e8;
      font-size: 0.92rem;
      gap: 16px;
    }

    .hero-meta span,
    .meta span {
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }

    .side-list {
      display: grid;
      gap: 18px;
    }

    .side-card {
      display: grid;
      grid-template-columns: 148px 1fr;
      gap: 16px;
      padding: 12px;
      border-radius: var(--radius-md);
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .side-card:hover,
    .card:hover,
    .feature-card:hover,
    .insight-card:hover,
    .video-card:hover,
    .stat-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-md);
    }

    .side-card img,
    .card-media img,
    .feature-media img,
    .video-card img,
    .insight-card img {
      height: 100%;
      object-fit: cover;
      border-radius: 18px;
    }

    .side-card h3,
    .card h3,
    .feature-content h3,
    .insight-card h3,
    .video-caption,
    .trending-item h4 {
      line-height: 1.55;
      font-weight: 800;
    }

    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin: 44px 0 24px;
      flex-wrap: wrap;
    }

    .section-title {
      position: relative;
      padding-right: 16px;
      font-size: clamp(1.6rem, 2.2vw, 2.2rem);
      font-weight: 900;
      color: var(--primary);
    }

    body.dark .section-title {
      color: #fff;
    }

    .section-title::before {
      content: '';
      position: absolute;
      right: 0;
      top: 7px;
      width: 5px;
      height: 34px;
      border-radius: 999px;
      background: linear-gradient(180deg, var(--accent), var(--accent-2));
    }

    .section-link {
      color: var(--accent);
      font-weight: 900;
      transition: letter-spacing 0.2s ease;
    }

    .section-link:hover {
      letter-spacing: 0.02em;
    }

    .news-controls {
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .chips {
      gap: 10px;
    }

    .chip {
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: var(--surface-solid);
      color: var(--muted);
      font-size: 0.92rem;
      font-weight: 800;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .status-pill,
    .tag-soft {
      padding: 7px 11px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      color: var(--text);
      font-size: 0.82rem;
    }

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

    .card {
      border-radius: var(--radius-md);
      overflow: hidden;
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .card-media {
      position: relative;
      height: 225px;
      overflow: hidden;
    }

    .card-media img,
    .feature-media img,
    .video-card img,
    .insight-card img {
      transition: transform 0.35s ease;
    }

    .card:hover .card-media img,
    .feature-card:hover .feature-media img,
    .video-card:hover img,
    .insight-card:hover img {
      transform: scale(1.06);
    }

    .card-body {
      padding: 18px;
    }

    .card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
      color: var(--muted);
      font-size: 0.84rem;
    }

    .card p,
    .feature-content p,
    .newsletter p,
    .panel-note,
    .search-empty,
    .footer-brand p,
    .footer-col a,
    .insight-card p {
      color: var(--muted);
    }

    .split {
      display: grid;
      grid-template-columns: 1.35fr 0.95fr;
      gap: 24px;
      margin-top: 20px;
    }

    .feature-card,
    .trending-block,
    .newsletter {
      padding: 22px;
      border-radius: var(--radius-lg);
    }

    .feature-media {
      position: relative;
      min-height: 100%;
      overflow: hidden;
      border-radius: 22px;
    }

    .feature-wrap {
      display: grid;
      grid-template-columns: 1.12fr 1fr;
      gap: 18px;
    }

    .feature-content h3 {
      font-size: clamp(1.45rem, 2.1vw, 1.95rem);
      margin-bottom: 10px;
    }

    .feature-content .meta {
      color: var(--muted);
      margin: 14px 0 18px;
    }

    .trending-list {
      display: grid;
      gap: 16px;
      margin-top: 12px;
    }

    .trending-item {
      display: grid;
      grid-template-columns: 46px 1fr;
      gap: 14px;
      align-items: start;
      padding-bottom: 16px;
      border-bottom: 1px dashed var(--line);
    }

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

    .trend-num {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: linear-gradient(180deg, var(--accent), var(--accent-2));
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      box-shadow: 0 12px 20px rgba(15, 23, 42, 0.15);
    }

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

    .stat-card {
      border-radius: var(--radius-md);
      padding: 18px;
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .stat-label {
      color: var(--muted);
      font-size: 0.88rem;
      font-weight: 800;
    }

    .stat-value {
      font-size: 1.8rem;
      font-weight: 900;
      line-height: 1.1;
      margin: 8px 0 6px;
      color: var(--primary);
    }

    body.dark .stat-value {
      color: #fff;
    }

    .stat-note {
      color: var(--success);
      font-size: 0.88rem;
      font-weight: 800;
    }

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

    .insight-card {
      border-radius: var(--radius-md);
      overflow: hidden;
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .insight-card img {
      height: 220px;
    }

    .insight-card .content {
      padding: 18px;
    }

    .video-section {
      margin-top: 54px;
      padding: 38px 0;
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
    }

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

    .video-card {
      position: relative;
      min-height: 280px;
      overflow: hidden;
      border-radius: var(--radius-md);
    }

    .video-card img {
      height: 100%;
      opacity: 0.82;
    }

    .video-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
    }

    .play-btn {
      position: absolute;
      inset-inline-start: 18px;
      top: 18px;
      width: 58px;
      height: 58px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(8px);
      color: #fff;
      font-size: 1.25rem;
      z-index: 2;
      cursor: pointer;
    }

    .video-caption {
      position: absolute;
      inset-inline: 0;
      bottom: 0;
      z-index: 2;
      padding: 18px;
      font-size: 1.05rem;
    }

    .newsletter {
      margin-top: 28px;
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 18px;
      align-items: center;
    }

    .newsletter h3 {
      font-size: 1.6rem;
      margin-bottom: 10px;
      line-height: 1.45;
    }

    .newsletter-form {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
    }

    .input,
    .textarea,
    .range-input,
    .search-input,
    .panel-select {
      width: 100%;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--surface-2);
      color: var(--text);
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .input,
    .search-input,
    .panel-select {
      height: 50px;
      padding: 0 16px;
    }

    .textarea {
      min-height: 110px;
      padding: 14px 16px;
      resize: vertical;
    }

    .range-input {
      padding: 10px;
      accent-color: var(--accent);
      background: transparent;
      border: 0;
    }

    .input:focus,
    .textarea:focus,
    .search-input:focus,
    .panel-select:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
    }

    footer {
      margin-top: 56px;
      padding: 56px 0 22px;
      color: #fff;
      background: linear-gradient(180deg, var(--primary), #061126);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.45fr 1fr 1fr 1fr;
      gap: 28px;
      margin-bottom: 28px;
    }

    .footer-brand h3 {
      font-size: 2rem;
      margin-bottom: 10px;
      font-weight: 900;
    }

    .footer-col h4 {
      position: relative;
      padding-right: 12px;
      margin-bottom: 16px;
      font-size: 1.08rem;
    }

    .footer-col h4::before {
      content: '';
      position: absolute;
      right: 0;
      top: 5px;
      width: 4px;
      height: 20px;
      border-radius: 999px;
      background: var(--accent);
    }

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

    .footer-col a:hover {
      color: #fff;
    }

    .copyright {
      text-align: center;
      padding-top: 18px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      color: #a8b9cf;
      font-size: 0.92rem;
    }

    .floating-actions {
      position: fixed;
      left: 18px;
      bottom: 18px;
      z-index: 1050;
      flex-direction: column;
      align-items: stretch;
    }

    .floating-btn {
      border-radius: 18px;
      background: var(--surface-solid);
      min-width: 52px;
      min-height: 52px;
    }

    .floating-label {
      width: auto;
      min-width: 152px;
      padding-inline: 16px;
      justify-content: space-between;
      font-weight: 900;
    }

    .backdrop {
      position: fixed;
      inset: 0;
      background: rgba(2, 6, 23, 0.48);
      backdrop-filter: blur(4px);
      opacity: 0;
      visibility: hidden;
      transition: 0.25s ease;
      z-index: 1190;
    }

    .backdrop.show {
      opacity: 1;
      visibility: visible;
    }

    .search-modal,
    .control-panel,
    .mobile-drawer {
      position: fixed;
      z-index: 1200;
      transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
      opacity: 0;
      visibility: hidden;
    }

    .search-modal {
      top: 50%;
      left: 50%;
      width: min(760px, calc(100% - 28px));
      transform: translate(-50%, -54%);
      border-radius: 28px;
      padding: 22px;
    }

    .search-modal.show {
      transform: translate(-50%, -50%);
      opacity: 1;
      visibility: visible;
    }

    .control-panel {
      top: 0;
      left: 0;
      width: min(var(--panel-width), calc(100% - 18px));
      height: 100vh;
      overflow-y: auto;
      transform: translateX(-100%);
      padding: 18px;
      border-radius: 0 28px 28px 0;
      background: var(--surface-solid);
    }

    .control-panel.show {
      transform: translateX(0);
      opacity: 1;
      visibility: visible;
    }

    .mobile-drawer {
      top: 0;
      right: 0;
      width: min(340px, calc(100% - 18px));
      height: 100vh;
      transform: translateX(100%);
      padding: 18px;
      border-radius: 28px 0 0 28px;
      background: var(--surface-solid);
      overflow-y: auto;
    }

    .mobile-drawer.show {
      transform: translateX(0);
      opacity: 1;
      visibility: visible;
    }

    .modal-head,
    .panel-head,
    .drawer-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 18px;
    }

    .modal-head h3,
    .panel-head h3,
    .drawer-head h3 {
      font-size: 1.25rem;
      font-weight: 900;
      line-height: 1.35;
    }

    .close-btn {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--surface-2);
      color: var(--text);
      cursor: pointer;
    }

    .search-box {
      align-items: stretch;
      gap: 10px;
    }

    .search-box .search-input {
      flex: 1;
    }

    .search-results {
      margin-top: 16px;
      max-height: 380px;
      overflow: auto;
      border-top: 1px solid var(--line);
      padding-top: 14px;
    }

    .search-results ul {
      flex-direction: column;
      align-items: stretch;
      list-style: none;
      gap: 10px;
    }

    .search-results a {
      display: block;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--surface-2);
      transition: 0.2s ease;
    }

    .search-results a:hover {
      border-color: var(--accent);
      transform: translateY(-1px);
    }

    .search-results strong {
      display: block;
      margin-bottom: 6px;
      color: var(--text);
    }

    .search-results span {
      color: var(--muted);
      font-size: 0.92rem;
    }

    .search-empty {
      padding: 12px 2px 0;
      font-size: 0.94rem;
    }

    .panel-card {
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 16px;
      background: var(--surface-2);
      margin-bottom: 14px;
    }

    .panel-card h4 {
      font-size: 1rem;
      margin-bottom: 12px;
      font-weight: 900;
    }

    .panel-note {
      font-size: 0.88rem;
      margin-top: 8px;
    }

    .panel-switch-row {
      justify-content: space-between;
      flex-wrap: nowrap;
      gap: 10px;
      margin-bottom: 10px;
    }

    .panel-switch-row:last-child {
      margin-bottom: 0;
    }

    .panel-switch-row label,
    .panel-inline-label,
    .drawer-links a {
      font-weight: 800;
    }

    .switch {
      position: relative;
      width: 52px;
      height: 30px;
      display: inline-block;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      inset: 0;
      border-radius: 999px;
      background: #cbd5e1;
      transition: 0.2s ease;
      cursor: pointer;
    }

    .slider::before {
      content: '';
      position: absolute;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #fff;
      top: 4px;
      right: 4px;
      transition: 0.2s ease;
      box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
    }

    .switch input:checked + .slider {
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
    }

    .switch input:checked + .slider::before {
      transform: translateX(-22px);
    }

    .panel-color-grid {
      gap: 10px;
      justify-content: stretch;
    }

    .color-btn {
      flex: 1;
      min-width: 86px;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 10px;
      background: var(--surface-solid);
      cursor: pointer;
      font-weight: 900;
      color: var(--text);
      transition: 0.2s ease;
    }

    .panel-actions {
      margin-top: 10px;
      gap: 10px;
    }

    .panel-actions .primary-btn,
    .panel-actions .ghost-btn {
      flex: 1;
      text-align: center;
      justify-content: center;
      color: var(--text);
    }

    .panel-actions .primary-btn {
      color: #fff;
    }

    .panel-actions .ghost-btn {
      background: var(--surface-solid);
      border-color: var(--line);
    }

    .drawer-links {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }

    .drawer-links a {
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--surface-2);
    }

    .drawer-actions {
      display: flex;
      gap: 10px;
      margin-top: 16px;
      flex-wrap: wrap;
    }

    .drawer-actions button {
      flex: 1;
      min-width: 120px;
    }

    .compact .card-body,
    .compact .feature-card,
    .compact .trending-block,
    .compact .newsletter,
    .compact .stat-card,
    .compact .panel-card {
      padding: 15px;
    }

    .compact .hero-overlay {
      padding: 24px;
    }

    .compact .card-media {
      height: 200px;
    }

    @media (max-width: 1200px) {
      .news-grid,
      .insight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .quick-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 1024px) {
      .hero-grid,
      .split,
      .feature-wrap,
      .video-grid,
      .newsletter,
      .footer-grid,
      .insight-grid {
        grid-template-columns: 1fr;
      }

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

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

      .hero-main {
        min-height: 460px;
      }

      .hero-title,
      .hero-text {
        max-width: 100%;
      }
    }

    @media (max-width: 820px) {
      .nav {
        display: none;
      }

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

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

      .side-card img {
        height: 200px;
      }
    }

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

      .topbar .container,
      .header .container,
      .news-controls,
      .section-head {
        align-items: stretch;
      }

      .topbar .container,
      .header .container,
      .news-controls,
      .section-head,
      .hero-actions,
      .newsletter-form {
        flex-direction: column;
      }

      .hero {
        padding-top: 18px;
      }

      .hero-main {
        min-height: 380px;
      }

      .hero-overlay {
        padding: 18px;
      }

      .card-media,
      .insight-card img,
      .video-card {
        height: auto;
        min-height: 220px;
      }

      .news-grid,
      .quick-stats,
      .newsletter,
      .insight-grid {
        grid-template-columns: 1fr;
      }

      .floating-actions {
        left: 12px;
        bottom: 12px;
      }

      .floating-label {
        min-width: 130px;
      }

      .search-modal,
      .control-panel,
      .mobile-drawer {
        width: calc(100% - 16px);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

.adsbygoogle{min-height:90px}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  right: 16px;
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 2000;
}

.skip-link:focus {
  top: 16px;
}

.search-modal,
.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1400;
  width: min(420px, 100%);
  background: var(--surface-solid);
  border-inline-end: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 24px;
  overflow-y: auto;
}

.search-modal {
  inset: 10vh 50% auto 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.55);
  z-index: 1300;
}

.drawer-head,
.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-results-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.search-results-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.search-empty,
.empty-state {
  padding: 24px;
  text-align: center;
}

.static-social,
.footer-static-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.hero-main > a:first-child {
  display: block;
}

.side-card.card,
.related-card.card,
.insight-card.card {
  padding: 0;
}

.side-card.card .card-media,
.related-card.card .card-media,
.insight-card.card .card-media {
  margin-bottom: 0;
}

.card-top {
  justify-content: space-between;
}

.page-intro {
  color: var(--muted);
  margin-top: 8px;
}

.archive-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.archive-toolbar .input {
  width: 100%;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-not-found {
  padding: 36px;
  text-align: center;
}

.ad-slot {
  padding: 18px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--surface-2);
}

.ad-label {
  font-weight: 800;
  margin-bottom: 10px;
}

.ad-placeholder-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  gap: 12px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .form-row.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
