/* ==================== RESET & BASICS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== COLOR VARIABLES ==================== */
:root {
    --primary-dark: #062744;
    --accent-gold: #F5A900;
    --bg-page: #EEF1F7;
    --card-white: #FFFFFF;
    --card-border: #E5EAF0;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --success-green: #27AE60;
    --danger-red: #E74C3C;
}

/* ==================== TYPOGRAPHY & BODY ==================== */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
}

.page-home {
  overflow-x: clip;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER & NAVBAR ==================== */
header {
    background-color: var(--primary-dark);
    color: white;
    padding: 15px 0;
    border-bottom: 1px solid rgba(245, 169, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
  padding-left: 32px;
  padding-right: 32px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  min-width: 0;
    position: relative;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  text-decoration: none;
}

  .logo .logo-mark {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex: 0 0 auto;
  }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    flex: 1;
    justify-content: flex-end;
  min-width: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.mobile-search-toggle,
.mobile-search-panel {
  display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.search-box input {
    background: none;
    border: none;
    color: white;
    font-size: 13px;
    outline: none;
    width: 150px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons a {
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.login {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.register {
    background-color: var(--accent-gold);
    color: white;
}

/* ==================== STATUS BAR ==================== */
.status-bar {
    background-color: var(--card-white);
    border-bottom: 1px solid var(--card-border);
    padding: 12px 0;
    font-size: 13px;
}

.status-content {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
}

.status-date-link {
  color: inherit;
  text-decoration: none;
}

.status-date-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.status-item i {
    color: var(--accent-gold);
}

.hot-news {
    background-color: #FF6B6B;
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-gold);
    font-size: 22px;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb-nav {
  padding: 16px 0 10px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  gap: 0;
  font-size: 16px;
  font-weight: 700;
  color: #7a8898;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-list li + li::before {
  content: "\203A";
  margin: 0 10px;
  color: #9aa7b8;
  font-weight: 700;
}

.breadcrumb-list a {
  color: #0f2f4b;
    text-decoration: none;
  font-weight: 700;
}

.breadcrumb-list a:hover {
  color: #1f4f75;
}

.breadcrumb-list li[aria-current="page"] {
  color: #7a8898;
  font-weight: 700;
}

/* ==================== RATES SECTION ==================== */
.rates-section {
    margin: 30px 0;
}

.rates-heading {
  margin-bottom: 16px;
}

.rates-heading .section-title {
  margin-bottom: 5px;
}

.rates-subtitle {
  margin: 0;
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 500;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.rate-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
    border: 1px solid var(--card-border);
    border-radius: 8px;
  padding: 13px;
    text-align: center;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

  .page-home .rate-card {
    border-left: 3px solid rgba(245, 169, 0, 0.5);
    border-radius: 8px;
  }

.rate-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.rate-card.no-hover:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: none;
}

.rate-name {
    font-size: 13px;
    color: var(--text-gray);
  margin-bottom: 6px;
    font-weight: 500;
}

.rate-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
  margin-bottom: 6px;
    direction: ltr;
    unicode-bidi: embed;
}

.rate-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  font-size: 13px;
    font-weight: 600;
}

.rate-change.up {
    color: var(--success-green);
}

.rate-change.down {
    color: var(--danger-red);
}

/* ==================== HOME MARKET HUB ==================== */
.home-market-hub {
  margin: 0 0 30px;
  padding: 16px;
  border: 1px solid #dce6f1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 10%, rgba(245, 169, 0, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 62%, #fffaf0 100%);
  box-shadow: 0 10px 24px rgba(6, 39, 68, 0.07);
}

.home-market-hub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.home-market-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b07800;
  font-size: 12px;
  font-weight: 700;
}

.home-market-hub h2 {
  margin: 6px 0 4px;
  color: var(--primary-dark);
  font-size: 22px;
  line-height: 1.55;
}

.home-market-hub p {
  margin: 0;
  color: #586b7d;
  font-size: 14px;
  line-height: 1.9;
}

.home-market-hub-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 169, 0, 0.55);
  background: #fff;
  color: #0d3e66;
  text-decoration: none;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
}

.home-market-hub-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.home-market-hub-card {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbe6f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: inherit;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-market-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 169, 0, 0.8);
  box-shadow: 0 12px 22px rgba(6, 39, 68, 0.1);
}

.home-market-hub-card i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff4d7;
  color: #b07800;
  font-size: 17px;
}

.home-market-hub-card strong {
  color: var(--primary-dark);
  font-size: 15px;
  line-height: 1.55;
}

.home-market-hub-card span {
  color: #66798a;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 992px) {
  .home-market-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-market-hub {
    padding: 12px;
  }

  .home-market-hub-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .home-market-hub-all {
    align-self: flex-start;
    padding: 7px 11px;
    font-size: 12px;
  }

  .home-market-hub h2 {
    font-size: 18px;
    margin-bottom: 0;
  }

  .home-market-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-market-hub-card {
    min-height: 76px;
    padding: 10px 8px;
  }

  .home-market-hub-card i {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .home-market-hub-card strong {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .home-market-hub-card {
    min-height: 68px;
    gap: 6px;
    padding: 8px 5px;
  }

  .home-market-hub-card i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 13px;
  }

  .home-market-hub-card strong {
    font-size: 12px;
    line-height: 1.45;
  }
}

.home-market-hub-card.is-primary {
  background: linear-gradient(135deg, #062744 0%, #0d416b 100%);
}

.home-market-hub-card.is-primary i {
  background: rgba(245, 169, 0, 0.18);
  color: #ffd37a;
}

.home-market-hub-card.is-primary strong,
.home-market-hub-card.is-primary span {
  color: #fff;
}

/* ==================== QUICK TOOLS ==================== */
.quick-tools-section {
    margin: 30px 0;
}

.tools-grid {
    display: grid;
  grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.tool-item {
    background: linear-gradient(135deg, #FAFBFC 0%, #F5F7FA 100%);
    border: 2px solid var(--card-border);
    border-left: 3px solid var(--accent-gold);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
}

.tool-item:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #E09100 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(245, 169, 0, 0.35);
    transform: translateY(-2px);
    border-left: 3px solid white;
}

.tool-item i {
    font-size: 24px;
    color: var(--accent-gold);
}

.tool-item:hover i {
    color: white;
}

.tool-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

/* ==================== HOME MAIN LAYOUT ==================== */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 20px;
  margin-bottom: 30px;
}

.main-column,
.sidebar {
  min-width: 0;
}

/* ==================== HERO NEWS ==================== */
.hero-news {
  direction: ltr;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background-color: var(--card-white);
  border: 2px solid var(--card-border);
  border-top: 5px solid var(--accent-gold);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-image img,
.hero-mini-image img,
.most-viewed-image img,
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image img,
.hero-mini-image img {
  position: absolute;
  inset: 0;
}

.hero-news:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.hero-image {
  min-height: 240px;
  background: linear-gradient(135deg, #D4A574 0%, #C99A5A 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  overflow: hidden;
}

.hero-label {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  background-color: var(--accent-gold);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.hero-content {
  direction: rtl;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  background: #fff;
}

.hero-content::before {
  display: none;
}

.hero-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.7;
  text-align: right;
}

.hero-summary {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 12px;
  line-height: 1.8;
  text-align: right;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-gold);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #7a8899;
  font-size: 12px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.hero-mini-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(6, 39, 68, 0.08);
}

.hero-mini-image {
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-mini-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}

.hero-mini-content {
  padding: 12px;
}

.hero-mini-content h3 {
  color: var(--primary-dark);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 9px;
  text-align: right;
}

.hero-mini-meta {
  display: flex;
  justify-content: space-between;
  color: #7a8899;
  font-size: 12px;
}

.hero-mini-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.most-viewed-section {
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(6, 39, 68, 0.08);
  padding: 14px;
}

.most-viewed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.most-viewed-head .section-title {
  margin: 0;
}

.most-viewed-all {
  color: #0d5a8b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.most-viewed-all:hover {
  text-decoration: underline;
}

.most-viewed-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.most-viewed-item {
  display: block;
  border: 1px solid #e8edf3;
  background: #fbfdff;
  border-radius: 8px;
  padding: 8px;
  color: inherit;
  text-decoration: none;
}

.most-viewed-item:hover {
  border-color: #d8e4f0;
  background: #f7fbff;
}

.most-viewed-image {
  display: block;
  height: 120px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  margin-bottom: 6px;
}

.most-viewed-title {
  display: block;
  color: var(--primary-dark);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 2px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== LATEST NEWS ==================== */
.latest-news {
  margin-bottom: 30px;
}

.news-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 0;
}

.news-tab {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  cursor: pointer;
  transition: color 0.3s, border-bottom-color 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.news-tab:hover {
  color: var(--primary-dark);
}

.news-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.news-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.news-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.news-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF7 100%);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateX(-3px);
}

.news-image {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #E8D4B8 0%, #D4A574 100%);
  border-radius: 5px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

.news-summary {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 6px;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

.news-time {
  font-size: 11px;
  color: #999;
}

.news-all-btn {
  display: inline-block;
  text-align: center;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 15px;
}

.news-title-link {
  color: inherit;
  text-decoration: none;
}

.news-title-link:hover {
  color: var(--accent-gold);
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
  margin: 30px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.service-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 32px;
  color: var(--accent-gold);
}

.service-title {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 14px;
}

.service-desc {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.4;
  flex: 1;
}

.service-btn {
  background-color: var(--accent-gold);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: background-color 0.3s;
  display: inline-block;
  text-decoration: none;
}

.service-btn:hover {
  background-color: #E09100;
}

/* ==================== NEWSLETTER ==================== */
.newsletter {
  background-color: var(--primary-dark);
  color: white;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.newsletter-icon {
  font-size: 40px;
  color: var(--accent-gold);
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.newsletter-text {
  font-size: 14px;
  font-weight: 600;
}

.newsletter-inputs {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.newsletter-inputs input {
  padding: 10px 12px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.newsletter-btn {
  background-color: var(--accent-gold);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* ==================== MARKET ANALYSIS ==================== */
.market-analysis {
  margin-bottom: 30px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.analysis-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.analysis-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateX(3px);
}

.analysis-icon {
  font-size: 32px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.analysis-label {
  font-weight: 600;
  color: var(--primary-dark);
}

/* ==================== SIDEBAR & CARDS ==================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-seo-section {
  margin: 30px 0 12px;
  padding: 26px;
  border: 1px solid #dfe7ef;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.11) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 14px 36px rgba(13, 39, 63, 0.08);
}

.home-seo-header {
  max-width: 780px;
  margin-bottom: 20px;
}

.home-seo-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
}

.home-seo-section h2,
.home-seo-section h3 {
  color: var(--primary-dark);
}

.home-seo-section h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 900;
}

.home-seo-header p,
.home-seo-copy p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 2.05;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.home-feature-card {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid #e2e9f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary-dark);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(13, 39, 63, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-feature-card i {
  color: var(--gold-dark);
  font-size: 20px;
}

.home-feature-card span {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.home-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 12px 24px rgba(13, 39, 63, 0.1);
}

.home-seo-panels {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
}

.home-why-card,
.home-seo-copy {
  border: 1px solid #e1e8ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(13, 39, 63, 0.05);
}

.home-why-card {
  padding: 18px;
}

.home-why-card h3,
.home-seo-copy h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 900;
}

.home-why-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-why-card li {
  position: relative;
  padding-right: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.home-why-card li::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.home-seo-copy {
  position: relative;
  padding: 18px;
}

.home-seo-copy-body {
  position: relative;
  display: grid;
  gap: 10px;
  max-height: 112px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.home-seo-copy-body::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 82%);
  pointer-events: none;
}

.home-seo-copy.is-expanded .home-seo-copy-body {
  max-height: 900px;
}

.home-seo-copy.is-expanded .home-seo-copy-body::after {
  display: none;
}

.home-seo-copy a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.55);
}

.home-seo-copy a:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-dark);
}

.home-seo-more {
  margin-top: 14px;
  border: 0;
  border-radius: 9px;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 9px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.home-seo-more:hover {
  background: #17496f;
  transform: translateY(-1px);
}

.videos-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-item {
  margin-bottom: 15px;
}

.video-thumb {
  position: relative;
  width: 100%;
  height: 80px;
  background-color: #f0f0f0;
  border-radius: 5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  font-size: 24px;
  overflow: hidden;
}

.video-play {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: transform 0.3s;
}

.video-thumb:hover .video-play {
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.video-info {
  padding: 0 5px;
}

.video-title {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 500;
  line-height: 1.3;
}

.videos-all-btn {
  display: inline-block;
  text-align: center;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  margin-top: 10px;
}

.chart-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chart-header {
  margin-bottom: 12px;
}

.chart-title {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.chart-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}

.chart-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.chart-tab {
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.chart-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.simple-chart {
  height: 150px;
  background: linear-gradient(180deg, rgba(245, 169, 0, 0.1) 0%, rgba(245, 169, 0, 0) 100%);
  border-radius: 5px;
  padding: 8px 8px 6px;
}

.simple-chart-svg {
  width: 100%;
  height: 120px;
  display: block;
}

.simple-chart-grid {
  stroke: #dfe7ef;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.simple-chart-area {
  fill: url(#ounceArea);
}

.simple-chart-trend {
  fill: none;
  stroke: #f5a900;
  stroke-width: 3;
  stroke-linecap: round;
}

.simple-chart-dot {
  fill: #f5a900;
  stroke: #fff;
  stroke-width: 1.5;
}

.simple-chart-dot.is-last {
  fill: #e09100;
  stroke-width: 2;
}

.simple-chart-labels {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  color: #8193a8;
  font-size: 11px;
}

.calendar-card {
  background-color: var(--primary-dark);
  color: white;
  border-radius: 8px;
  padding: 20px;
}

.calendar-title {
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent-gold);
}

.calendar-head {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr;
  gap: 8px;
  padding: 0 0 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #9db5cb;
  font-size: 11px;
  font-weight: 700;
}

.calendar-item {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  align-items: center;
}

.calendar-item:last-child {
  border-bottom: none;
}

.calendar-event strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #f5f9ff;
}

.calendar-event > span {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-flag {
  font-size: 13px;
}

.calendar-time {
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 600;
}

.calendar-prev,
.calendar-forecast {
  color: #e7f1fb;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 6px;
}

.calendar-forecast {
  color: #ffd182;
}

.breaking-news {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF7 100%);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.breaking-title {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-size: 14px;
}

.breaking-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  background-color: #FFF5F5;
  border-radius: 5px;
  align-items: flex-start;
}

.breaking-badge {
  background-color: var(--danger-red);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-text {
  font-size: 12px;
  color: var(--primary-dark);
  line-height: 1.3;
}

.app-card {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #E09100 100%);
  color: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(245, 169, 0, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.app-card:hover {
  box-shadow: 0 12px 32px rgba(245, 169, 0, 0.35);
  transform: translateY(-3px);
}

.app-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.app-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.app-desc {
  font-size: 12px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.app-btn:hover {
  background-color: white;
  color: var(--accent-gold);
}

.ai-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid rgba(245, 169, 0, 0.15);
}

.ai-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.ai-icon {
  font-size: 40px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.ai-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
}

.ai-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.ai-question {
  background-color: rgba(245, 169, 0, 0.1);
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.3;
  border: 1px solid rgba(245, 169, 0, 0.3);
}

.ai-btn {
  background-color: var(--accent-gold);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  width: 100%;
}

/* ==================== FOOTER ==================== */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(245, 169, 0, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}


.footer-utility-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
}

.footer-utility-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
}

.footer-utility-row a:hover {
  color: var(--accent-gold);
}
.footer-column h3 {
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--accent-gold);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.footer-contact i {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

.footer-bottom a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s, text-decoration-color 0.3s;
}

.footer-bottom a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ==================== HOME RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 100%;
  }

  .hero-news {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .hero-image {
    min-height: 290px;
    clip-path: none;
  }

  .hero-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .most-viewed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rates-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-menu {
    gap: 15px;
  }
}

@media (max-width: 1200px) {
  .header-content {
    gap: 12px;
  }

  .logo {
    font-size: 18px;
  }

  .nav-menu {
    gap: 14px;
  }

  .nav-menu a {
    font-size: 13px;
  }

  .search-box {
    padding: 8px 10px;
  }

  .search-box input {
    width: 112px;
  }

  .auth-buttons a {
    padding: 8px 14px;
  }

  .home-features {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  header .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-content {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .logo {
    font-size: 16px;
    flex: 1 1 auto;
  }

  .logo .logo-mark {
    width: 32px;
    height: 32px;
  }

  .rates-heading {
    margin-bottom: 12px;
  }

  .rates-subtitle {
    font-size: 13px;
    line-height: 1.8;
  }

  .home-seo-section {
    padding: 18px;
    border-radius: 12px;
  }

  .home-seo-section h2 {
    font-size: 21px;
  }

  .home-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-feature-card {
    min-height: 78px;
    padding: 10px 6px;
  }

  .home-seo-panels {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    order: -1;
    flex: 0 0 auto;
  }

  .mobile-search-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .mobile-search-toggle:hover,
  .mobile-search-toggle[aria-expanded="true"] {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
  }

  .mobile-search-panel {
    display: none;
    grid-template-columns: minmax(0, 1fr) auto 38px;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(245, 169, 0, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-search-panel.is-open {
    display: grid;
  }

  .mobile-search-input {
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    outline: none;
  }

  .mobile-search-submit,
  .mobile-search-close {
    height: 38px;
    border: none;
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-search-submit {
    padding: 0 14px;
    background: var(--accent-gold);
    color: white;
    white-space: nowrap;
  }

  .mobile-search-close {
    width: 38px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    z-index: 2000;
    flex-direction: column;
    gap: 0;
    width: auto;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid rgba(245, 169, 0, 0.25);
    border-radius: 8px;
    background: var(--primary-dark);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(245, 169, 0, 0.12);
  }

  .header-right {
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
  }

  .search-box {
    display: none;
  }

  .auth-buttons .register {
    display: none;
  }

  .auth-buttons a {
    padding: 8px 12px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .logo {
    font-size: 16px;
    flex: 1 1 auto;
  }

  .logo .logo-mark {
    width: 32px;
    height: 32px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    order: -1;
    flex: 0 0 auto;
  }

  .mobile-search-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .mobile-search-toggle:hover,
  .mobile-search-toggle[aria-expanded="true"] {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
  }

  .mobile-search-panel {
    display: none;
    grid-template-columns: minmax(0, 1fr) auto 38px;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(245, 169, 0, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-search-panel.is-open {
    display: grid;
  }

  .mobile-search-input {
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    outline: none;
  }

  .mobile-search-submit,
  .mobile-search-close {
    height: 38px;
    border: none;
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-search-submit {
    padding: 0 14px;
    background: var(--accent-gold);
    color: white;
    white-space: nowrap;
  }

  .mobile-search-close {
    width: 38px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    z-index: 2000;
    flex-direction: column;
    gap: 0;
    width: auto;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid rgba(245, 169, 0, 0.25);
    border-radius: 8px;
    background: var(--primary-dark);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(245, 169, 0, 0.12);
  }

  .header-right {
    gap: 8px;
    flex: 0 0 auto;
  }

  .search-box {
    display: none;
  }

  .auth-buttons .register {
    display: none;
  }

  .auth-buttons a {
    padding: 8px 12px;
  }

  .rates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 24px 18px;
  }

  .newsletter-icon {
    text-align: center;
  }

  .newsletter-text {
    text-align: center;
    line-height: 1.8;
  }

  .newsletter-inputs {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-mini-card {
    border-radius: 8px;
  }

  .hero-mini-image {
    height: 112px;
  }

  .hero-mini-badge {
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .hero-mini-content {
    padding: 10px;
  }

  .hero-mini-content h3 {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 8px;
  }

  .hero-mini-meta {
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 11px;
  }

  .analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-tabs {
    flex-wrap: wrap;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 763px) {
  .rates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .rates-grid .rate-card:nth-child(16) {
    display: none;
  }

  .rate-card {
    padding: 10px 6px;
    border-radius: 7px;
  }

  .rate-name {
    font-size: 11px;
    line-height: 1.45;
    margin-bottom: 5px;
  }

  .rate-price {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .rate-change {
    font-size: 12px;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .auth-buttons {
    display: none;
  }

  .home-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature-card span {
    font-size: 12px;
  }

  .home-seo-copy-body {
    max-height: 150px;
  }

  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .hero-mini-image {
    height: 100%;
    min-height: 118px;
  }

  .hero-mini-content h3 {
    font-size: 14px;
    line-height: 1.5;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .quick-tools-section .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .quick-tools-section .tool-item {
    min-height: 86px;
    padding: 10px 6px;
    gap: 7px;
    border-left-width: 2px;
  }

  .quick-tools-section .tool-item i {
    font-size: 22px;
  }

  .quick-tools-section .tool-name {
    font-size: 11px;
    line-height: 1.35;
  }

  .status-content {
    gap: 10px;
    font-size: 12px;
  }

  .news-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .news-image {
    width: 100%;
    height: 150px;
  }

  .hero-footer {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==================== BANNER ==================== */
.banner {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF0D4 100%);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    border-left: 5px solid var(--accent-gold);
    position: relative;
}

.banner-label {
    position: absolute;
    right: 20px;
    top: -15px;
    background-color: var(--primary-dark);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.banner-text {
    flex: 1;
    text-align: center;
    color: var(--primary-dark);
    font-weight: 500;
}

.banner-icon {
    font-size: 32px;
    color: var(--accent-gold);
}

/* ==================== FESTIVAL PROMO ==================== */
.festival-promo-section {
  margin: 18px 0 24px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}

.festival-main-offer {
  border: 1px solid #e1c98a;
  border-radius: 12px;
  background:
    radial-gradient(circle at 8% 10%, rgba(245,169,0,0.16), transparent 36%),
    linear-gradient(135deg, #08263f 0%, #0d3555 46%, #071b2d 100%);
  color: #fff;
  padding: 10px 12px;
}

.festival-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 5px 10px;
}

.festival-main-offer h3 {
  margin: 6px 0 5px;
  font-size: 18px;
  line-height: 1.5;
}

.festival-main-offer p {
  margin: 0;
  color: rgba(240,246,255,0.95);
  font-size: 12px;
}

.festival-info-row {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.festival-info-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  padding: 3px 8px;
  font-size: 11px;
}

.festival-info-row .festival-date-pill {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 5px 10px;
  border-width: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.festival-cta-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.festival-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.festival-btn-primary {
  background: linear-gradient(135deg, #f6b329 0%, #de980c 100%);
  color: #0b2238;
}

.festival-btn-secondary {
  border: 1px solid rgba(255,255,255,0.34);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.festival-event-quick {
  display: grid;
  gap: 8px;
}

.festival-event-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.festival-event-quick .festival-event-card:nth-child(1) {
  border-color: #f0c67d;
  background: linear-gradient(135deg, #fff4dd 0%, #ffe3b3 100%);
}

.festival-event-quick .festival-event-card:nth-child(2) {
  border-color: #eca646;
  background: linear-gradient(135deg, #ffd99a 0%, #ffbe62 100%);
}

.festival-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(6, 39, 68, 0.12);
  border-color: #c6d9ed;
}

.festival-event-badge {
  display: inline-block;
  background: #eaf3ff;
  color: #1b4f7b;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
}

.festival-event-quick .festival-event-card:nth-child(1) .festival-event-badge,
.festival-event-quick .festival-event-card:nth-child(2) .festival-event-badge {
  background: rgba(9, 31, 49, 0.12);
  color: #5b3a06;
}

.festival-event-card h3 {
  margin: 6px 0 4px;
  font-size: 15px;
  color: #15334f;
}

.festival-event-quick .festival-event-card:nth-child(1) h3,
.festival-event-quick .festival-event-card:nth-child(2) h3 {
  color: #4a2f08;
}

.festival-event-card p {
  margin: 0;
  font-size: 12px;
  color: #607a94;
}

.festival-event-quick .festival-event-card:nth-child(1) p,
.festival-event-quick .festival-event-card:nth-child(2) p {
  color: #6a4a16;
}

.festival-event-card strong {
  margin-top: 7px;
  display: inline-block;
  color: #c28103;
  font-size: 12px;
}

.festival-event-quick .festival-event-card:nth-child(1) strong,
.festival-event-quick .festival-event-card:nth-child(2) strong {
  color: #8f5606;
}

/* Festival test theme: Purple */

/* Festival theme: Navy Gold */
.festival-promo-section.festival-theme-olive {
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}

.festival-promo-section.festival-theme-olive .festival-main-offer {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid #c98a0b;
  border-radius: 12px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(135deg, #fff1ad 0%, #f2bf3d 46%, #d49412 70%, #123a5a 100%);
  color: #4b2c05;
  box-shadow: 0 8px 20px rgba(113, 73, 4, 0.12), inset 0 0 0 2px rgba(255, 241, 171, 0.38);
}

.festival-promo-section.festival-theme-olive .festival-main-offer::before {
  display: none;
}

.festival-promo-section.festival-theme-olive .festival-main-offer::after {
  display: none;
}

.festival-promo-section.festival-theme-olive .festival-main-offer > * {
  position: relative;
  z-index: 1;
}

.festival-promo-section.festival-theme-olive .festival-chip,
.festival-promo-section.festival-theme-olive .festival-info-row span,
.festival-promo-section.festival-theme-olive .festival-btn-secondary {
  background: rgba(255, 246, 208, 0.62);
  border-color: rgba(159, 99, 3, 0.24);
  color: #4b2c05;
  box-shadow: 0 8px 18px rgba(106, 68, 3, 0.08);
}

.festival-promo-section.festival-theme-olive .festival-main-offer h3 {
  max-width: none;
  margin: 6px 0 5px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 900;
  color: #4b2c05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.festival-promo-section.festival-theme-olive .festival-main-offer p {
  max-width: none;
  color: #5e3a08;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
}

.festival-promo-section.festival-theme-olive .festival-info-row {
  margin-top: 6px;
  gap: 8px;
}

.festival-promo-section.festival-theme-olive .festival-info-row span {
  min-height: 0;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.festival-promo-section.festival-theme-olive .festival-btn-primary {
  background: linear-gradient(135deg, #d99a16 0%, #a96b04 100%);
  color: #fff8df;
  box-shadow: 0 10px 20px rgba(117, 72, 2, 0.24), inset 0 1px 0 rgba(255, 246, 184, 0.42);
}

.festival-promo-section.festival-theme-olive .festival-info-row .festival-date-pill {
  background: rgba(255, 246, 208, 0.78);
  border-color: rgba(159, 99, 3, 0.28);
  color: #4b2c05;
}

.festival-promo-section.festival-theme-olive .festival-cta-row {
  margin-top: 8px;
  gap: 8px;
}

.festival-promo-section.festival-theme-olive .festival-btn {
  min-height: 0;
  min-width: 0;
  justify-content: flex-start;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.festival-promo-section.festival-theme-olive .festival-event-quick {
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .festival-promo-section.festival-theme-olive {
    grid-template-columns: 1fr;
  }

  .festival-promo-section.festival-theme-olive .festival-main-offer {
    min-height: 0;
    padding: 18px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.34), transparent 34%),
      linear-gradient(135deg, #f8cc5c 0%, #e7ad28 54%, #c98a0b 76%, #123a5a 100%);
  }

  .festival-promo-section.festival-theme-olive .festival-main-offer::before {
    display: none;
  }

  .festival-promo-section.festival-theme-olive .festival-main-offer::after {
    inset: 6px;
    border-radius: 14px;
  }

  .festival-promo-section.festival-theme-olive .festival-main-offer h3 {
    margin-top: 12px;
    font-size: 20px;
    line-height: 1.65;
  }

  .festival-promo-section.festival-theme-olive .festival-main-offer p {
    font-size: 12px;
    line-height: 2;
  }

  .festival-promo-section.festival-theme-olive .festival-info-row {
    margin-top: 14px;
    gap: 8px;
  }

  .festival-promo-section.festival-theme-olive .festival-info-row span {
    width: 100%;
    min-height: 38px;
    justify-content: center;
    padding: 7px 10px;
    font-size: 12px;
  }

  .festival-promo-section.festival-theme-olive .festival-cta-row {
    margin-top: 14px;
    gap: 8px;
  }

  .festival-promo-section.festival-theme-olive .festival-btn {
    min-width: 0;
    min-height: 44px;
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
  }

  .festival-promo-section.festival-theme-olive .festival-event-quick {
    grid-template-columns: 1fr;
  }
}

.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(1) {
  border-color: #6f8452;
  background: linear-gradient(135deg, #27331c 0%, #3a4b28 100%);
}

.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(2) {
  border-color: #5d7341;
  background: linear-gradient(135deg, #1f2b15 0%, #344621 100%);
}

.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(1) .festival-event-badge,
.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(2) .festival-event-badge {
  background: rgba(231, 245, 203, 0.16);
  color: #f1f9e6;
}

.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(1) h3,
.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(2) h3 {
  color: #f1f9e6;
}

.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(1) p,
.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(2) p {
  color: #dceac5;
}

.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(1) strong,
.festival-promo-section.festival-theme-olive .festival-event-quick .festival-event-card:nth-child(2) strong {
  color: #d8ee9b;
}

