:root {
      --teal:       #0e6b6b;
      --teal-light: #12898a;
      --teal-dark:  #084444;
      --gold:       #c9a84c;
      --cream:      #f7f3ec;
      --text:       #1a1a2e;
      --muted:      #5a6472;
      --white:      #ffffff;
      --border:     #ddd8ce;
      --red:        #c0392b;
      --green:      #1a7a4a;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Source Sans 3', sans-serif;
      background: var(--cream);
      color: var(--text);
      line-height: 1.6;
    }
    a { text-decoration: none; color: inherit; }

    /* ---- TICKER ---- */
    .ticker-bar {
      background: var(--teal-dark);
      color: var(--white);
      padding: 6px 0;
      overflow: hidden;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.04em;
    }
    .ticker-inner {
      display: flex;
      gap: 40px;
      animation: ticker-scroll 40s linear infinite;
      white-space: nowrap;
      width: max-content;
    }
    .ticker-inner:hover { animation-play-state: paused; }
    .ticker-item { display: inline-flex; align-items: center; gap: 8px; }
    .ticker-label { color: var(--gold); }
    .tick-up   { color: #4ecca3; }
    .tick-down { color: #ff6b6b; }
    @keyframes ticker-scroll {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    /* ---- HEADER ---- */
    header {
      background: var(--white);
      border-bottom: 3px solid var(--teal);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(0,0,0,.07);
    }
    .header-inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 14px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .logo-wrap { display: flex; align-items: center; gap: 14px; }
    .logo-svg { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; }
    .logo-text-block { display: flex; flex-direction: column; }
    .logo-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.55rem;
      font-weight: 900;
      color: var(--teal-dark);
      line-height: 1;
      letter-spacing: 0.01em;
    }
    .logo-sub {
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-top: 3px;
    }
    nav { display: flex; gap: 4px; flex-wrap: wrap; }
    nav a {
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--muted);
      transition: all .2s;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }
    nav a:hover, nav a.active {
      background: var(--teal);
      color: var(--white);
    }

    /* ---- ADSENSE BANNER ---- */
    .ad-banner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 12px 24px;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 90px;
      background: var(--white);
      border-bottom: 1px solid var(--border);
    }
    .ad-label {
      font-size: 0.65rem;
      text-align: center;
      color: var(--muted);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .ad-container { text-align: center; width: 100%; }

    /* ---- DATA STRIP ---- */
    .data-strip {
      background: var(--teal);
      color: var(--white);
      padding: 20px 24px;
    }
    .data-strip-inner {
      max-width: 1280px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 2px;
    }
    .data-card {
      background: rgba(255,255,255,.08);
      border-radius: 8px;
      padding: 14px 16px;
      transition: background .2s;
    }
    .data-card:hover { background: rgba(255,255,255,.15); }
    .data-card-label {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,.65);
      margin-bottom: 4px;
    }
    .data-card-value {
      font-size: 1.25rem;
      font-weight: 700;
      font-family: 'Playfair Display', serif;
      line-height: 1;
    }
    .data-card-change {
      font-size: 0.72rem;
      margin-top: 4px;
      opacity: .8;
    }
    .up   { color: #82ffc9; }
    .down { color: #ff9393; }
    .neu  { color: rgba(255,255,255,.7); }

    /* ---- LAYOUT ---- */
    .main-wrapper {
      max-width: 1280px;
      margin: 0 auto;
      padding: 32px 24px;
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 32px;
    }

    /* ---- SECTION TITLE ---- */
    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--teal-dark);
      padding-bottom: 10px;
      border-bottom: 2px solid var(--gold);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .section-title::before {
      content: '';
      display: inline-block;
      width: 4px;
      height: 22px;
      background: var(--teal);
      border-radius: 2px;
    }

    /* ---- NEWS FEATURED ---- */
    .news-featured {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 28px;
    }
    .news-card {
      background: var(--white);
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--border);
      transition: transform .2s, box-shadow .2s;
      cursor: pointer;
    }
    .news-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 28px rgba(0,0,0,.1);
    }
    .news-card.big { grid-column: span 2; display: flex; }
    .news-card.big .news-img { width: 280px; flex-shrink: 0; height: 200px; }
    .news-card.big .news-body { padding: 20px; }
    .news-img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      background: var(--teal);
      display: block;
    }
    .news-img-placeholder {
      width: 100%;
      height: 160px;
      background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-light) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .news-card.big .news-img-placeholder { width: 280px; flex-shrink: 0; height: 200px; }
    .news-body { padding: 16px; }
    .news-source {
      display: inline-block;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--teal);
      background: rgba(14,107,107,.08);
      padding: 3px 8px;
      border-radius: 4px;
      margin-bottom: 8px;
    }
    .news-headline {
      font-family: 'Playfair Display', serif;
      font-size: 0.98rem;
      font-weight: 700;
      line-height: 1.4;
      color: var(--text);
      margin-bottom: 8px;
    }
    .news-card.big .news-headline { font-size: 1.2rem; }
    .news-date { font-size: 0.72rem; color: var(--muted); }
    .news-desc {
      font-size: 0.82rem;
      color: var(--muted);
      line-height: 1.5;
      margin-top: 6px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* ---- NEWS LIST ---- */
    .news-list { display: flex; flex-direction: column; gap: 14px; }
    .news-list-item {
      display: flex;
      gap: 14px;
      padding: 14px;
      background: var(--white);
      border-radius: 8px;
      border: 1px solid var(--border);
      align-items: flex-start;
      transition: box-shadow .2s;
    }
    .news-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
    .news-list-thumb {
      width: 90px;
      height: 70px;
      border-radius: 6px;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--teal);
    }
    .news-list-thumb-placeholder {
      width: 90px;
      height: 70px;
      border-radius: 6px;
      background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
      flex-shrink: 0;
    }
    .news-list-title {
      font-size: 0.88rem;
      font-weight: 600;
      line-height: 1.4;
      margin-bottom: 5px;
      color: var(--text);
    }
    .news-list-meta { font-size: 0.72rem; color: var(--muted); }

    /* ---- SIDEBAR ---- */
    .sidebar { display: flex; flex-direction: column; gap: 24px; }
    .widget {
      background: var(--white);
      border-radius: 10px;
      border: 1px solid var(--border);
      overflow: hidden;
    }
    .widget-header {
      background: var(--teal-dark);
      color: var(--white);
      padding: 12px 16px;
      font-family: 'Playfair Display', serif;
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: 0.04em;
    }
    .widget-body { padding: 16px; }
    .indicator-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
    }
    .indicator-row:last-child { border-bottom: none; }
    .ind-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
    .ind-val { font-size: 0.95rem; font-weight: 700; color: var(--text); }
    .ind-badge {
      font-size: 0.7rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 12px;
    }
    .ind-badge.up   { background: #e8f8f1; color: var(--green); }
    .ind-badge.down { background: #fdf0ef; color: var(--red); }
    .ad-sidebar {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 8px;
      min-height: 250px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    /* ---- STATUS BAR ---- */
    .status-bar {
      background: var(--teal-dark);
      color: rgba(255,255,255,.65);
      text-align: center;
      font-size: 0.72rem;
      padding: 6px;
      letter-spacing: 0.05em;
    }

    /* ---- FOOTER ---- */
    footer {
      background: var(--teal-dark);
      color: rgba(255,255,255,.7);
      padding: 32px 24px;
      margin-top: 40px;
    }
    .footer-inner {
      max-width: 1280px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 32px;
    }
    .footer-logo-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: var(--white);
      margin-bottom: 8px;
    }
    .footer-desc { font-size: 0.82rem; line-height: 1.6; }
    .footer-title {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 14px;
    }
    .footer-links { display: flex; flex-direction: column; gap: 8px; }
    .footer-links a { font-size: 0.82rem; color: rgba(255,255,255,.65); transition: color .2s; }
    .footer-links a:hover { color: var(--white); }
    .footer-bottom {
      max-width: 1280px;
      margin: 24px auto 0;
      padding-top: 20px;
      border-top: 1px solid rgba(255,255,255,.12);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.75rem;
      color: rgba(255,255,255,.45);
      flex-wrap: wrap;
      gap: 8px;
    }

    /* ---- LOADING ---- */
    .loading-dots { display: flex; gap: 4px; align-items: center; justify-content: center; padding: 20px; }
    .loading-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--teal);
      animation: bounce 1.2s ease-in-out infinite;
    }
    .loading-dot:nth-child(2) { animation-delay: .2s; }
    .loading-dot:nth-child(3) { animation-delay: .4s; }
    @keyframes bounce { 0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)} }

    /* ---- PAGES ---- */
    .page { display: none; }
    .page.active { display: block; }

    /* ---- INDICATORS PAGE ---- */
    .indicators-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
      margin-bottom: 32px;
    }
    .ind-card {
      background: var(--white);
      border-radius: 10px;
      border: 1px solid var(--border);
      padding: 20px;
      border-top: 4px solid var(--teal);
      transition: transform .2s;
    }
    .ind-card:hover { transform: translateY(-2px); }
    .ind-card-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 8px;
    }
    .ind-card-val {
      font-family: 'Playfair Display', serif;
      font-size: 1.9rem;
      font-weight: 700;
      color: var(--teal-dark);
      line-height: 1;
    }
    .ind-card-sub { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

    /* ---- NEWS FILTERS ---- */
    .news-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
    .filter-btn {
      padding: 7px 16px;
      border-radius: 20px;
      border: 2px solid var(--teal);
      background: transparent;
      color: var(--teal);
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Source Sans 3', sans-serif;
      transition: all .2s;
      letter-spacing: 0.06em;
    }
    .filter-btn:hover, .filter-btn.active {
      background: var(--teal);
      color: var(--white);
    }

    /* ---- ERROR MESSAGE ---- */
    .error-msg {
      background: #fdf0ef;
      border: 1px solid #f5c6c2;
      border-radius: 8px;
      padding: 16px;
      color: var(--red);
      font-size: 0.85rem;
      text-align: center;
    }

    /* ---- RESPONSIVE ---- */
    @media (max-width: 900px) {
      .main-wrapper { grid-template-columns: 1fr; }
      .news-featured { grid-template-columns: 1fr; }
      .news-card.big { flex-direction: column; }
      .news-card.big .news-img,
      .news-card.big .news-img-placeholder { width: 100%; height: 200px; }
      .news-card.big { grid-column: span 1; }
      .footer-inner { grid-template-columns: 1fr; }
      .data-strip-inner { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
      .header-inner { flex-direction: column; align-items: flex-start; }
      nav a { padding: 6px 10px; font-size: 0.78rem; }
    }