:root {
  --red:       #e8403a;
  --red-soft:  #f87171;
  --pink:      #ffb3b3;
  --pink-pale: #fff0f0;
  --purple:    #6c5ce7;
  --purple2:   #a29bfe;
  --indigo:    #4f46e5;
  --teal:      #00b894;
  --yellow:    #fdcb6e;
  --dark:      #1a0a0a;
  --text:      #3d1515;
  --muted:     #9b7676;
  --white:     #ffffff;
  --card-bg:   rgba(255,255,255,0.82);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow:    0 8px 32px rgba(232,64,58,0.13);
  --shadow-lg: 0 16px 48px rgba(108,92,231,0.18);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: #fff5f5;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* BACKGROUND BLOBS */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.blob1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #ffb3b3, #f87171);
  top: -160px; left: -160px;
  animation: floatBlob 9s ease-in-out infinite alternate;
}
.blob2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #a29bfe, #6c5ce7);
  bottom: 80px; right: -100px;
  animation: floatBlob 12s ease-in-out infinite alternate-reverse;
}
.blob3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #fdcb6e, #ff7675);
  top: 55%; left: 50%;
  animation: floatBlob 15s ease-in-out infinite alternate;
}
@keyframes floatBlob {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* WRAPPER */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* LANG BAR */
.lang-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.lang-btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2.5px solid transparent;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
  box-shadow: 0 2px 12px rgba(232,64,58,0.10);
}
.lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.lang-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(232,64,58,0.35);
}

/* HERO */
.hero {
  text-align: center;
  padding: 36px 24px 32px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}
.hero-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 12px rgba(232,64,58,0.3));
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.07); }
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 380px;
  margin: 0 auto 18px;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), #ff7675);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 20px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(232,64,58,0.3);
}

/* TABS NAV */
.tabs {
  display: flex;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 6px;
  gap: 4px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1;
  min-width: 72px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 8px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tab:hover { color: var(--red); }
.tab.active {
  background: linear-gradient(135deg, var(--red), #ff7675);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,64,58,0.30);
}

/* TAB CONTENT */
.tab-content {
  display: none;
  animation: fadeUp 0.4s ease both;
}
.tab-content.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SECTION TITLE */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title:not(.section-title-with-btn)::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 4px;
  flex-shrink: 0;
}

/* CARD LIST */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CARD */
.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.card:hover { transform: translateY(-3px) scale(1.01); }
.card:hover::after { background: rgba(255,255,255,0.08); }
.card:active { transform: scale(0.98); }

.card-icon { font-size: 1.5rem; flex-shrink: 0; }
.card-label { flex: 1; }
.card-arrow {
  font-size: 1.1rem;
  opacity: 0.7;
  transition: transform 0.2s;
}
.card:hover .card-arrow { transform: translateX(4px); opacity: 1; }

/* BOT CARDS */
.card--bot {
  background: linear-gradient(135deg, #5a52d5 0%, #8b7cf8 60%, #c084fc 100%);
  box-shadow: 0 6px 24px rgba(90,82,213,0.28);
}
.card--bot:nth-child(2) { background: linear-gradient(135deg, #6c5ce7 0%, #9b7cf8 60%, #d18bfa 100%); }
.card--bot:nth-child(3) { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 60%, #c4b5fd 100%); }
.card--bot:nth-child(4) { background: linear-gradient(135deg, #4f46e5 0%, #818cf8 60%, #a5b4fc 100%); }
.card--bot:nth-child(5) { background: linear-gradient(135deg, #6366f1 0%, #818cf8 60%, #bfdbfe 100%); }

/* NEWS CARD */
.card--news {
  background: linear-gradient(135deg, #e8403a, #ff7675, #ffb3b3);
  color: #fff;
  box-shadow: 0 6px 24px rgba(232,64,58,0.28);
}

/* MANAGER CARD */
.card--manager {
  background: linear-gradient(135deg, #00b894, #00cec9, #81ecec);
  color: #004d42;
  box-shadow: 0 6px 24px rgba(0,184,148,0.28);
}

/* NEWS */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-left: 4px solid var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
}
.news-card:nth-child(2) { border-left-color: var(--purple); animation-delay: 0.05s; }
.news-card:nth-child(3) { border-left-color: var(--yellow); animation-delay: 0.10s; }
.news-card:nth-child(4) { border-left-color: var(--teal);   animation-delay: 0.15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.news-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.news-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}
.news-tag.tag--new  { background: var(--purple); }
.news-tag.tag--hot  { background: var(--yellow); color: #7c4a00; }

.news-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.download-item {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
  margin-top: 12px;
  padding: 0px 0px 10px 0px;
}

/* =====================
   MOBILE — max 480px
   ===================== */
@media (max-width: 480px) {
  .wrapper { padding: 16px 12px 40px; }

  .lang-bar { gap: 7px; }
  .lang-btn { font-size: 0.78rem; padding: 7px 14px; }

  .hero { padding: 28px 16px 24px; border-radius: 20px; }
  .hero-icon { font-size: 3rem; }
  .hero-title { font-size: 1.7rem; }
  .hero-desc { font-size: 0.9rem; }

  .tabs { border-radius: 14px; padding: 5px; }
  .tab { font-size: 0.72rem; padding: 9px 6px; min-width: 60px; }

  .card { padding: 14px 16px; font-size: 0.92rem; }
  .card-icon { font-size: 1.3rem; }

  .news-card { padding: 16px 16px; }
  .news-headline { font-size: 0.98rem; }
  .news-body { font-size: 0.84rem; }

  .section-title { font-size: 1.1rem; }

  .blob1 { width: 300px; height: 300px; top: -100px; left: -100px; }
  .blob2 { width: 220px; height: 220px; }
}

/* =====================
   TABLET — 481–768px
   ===================== */
@media (min-width: 481px) and (max-width: 768px) {
  .wrapper { padding: 20px 20px 44px; }
  .hero-title { font-size: 2rem; }
}

.news-page-header {
  text-align: center;
  padding: 32px 24px 28px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease both;
}

.news-page-header .hero-icon { font-size: 3rem; margin-bottom: 8px; }

.news-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--red);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--red);
  background: rgba(232,64,58,0.08);
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 20px;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
}
.back-btn:hover { background: rgba(232,64,58,0.15); transform: translateX(-3px); }

/* NEWS GROUP */
.news-group {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 24px 24px 20px;
  margin-bottom: 16px;
  animation: fadeUp 0.4s ease both;
}
.news-group:nth-child(2) { animation-delay: 0.05s; }
.news-group:nth-child(3) { animation-delay: 0.10s; }
.news-group:nth-child(4) { animation-delay: 0.15s; }

.news-group-date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(232,64,58,0.12);
}
.news-group-date::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--red);
  border-radius: 4px;
  flex-shrink: 0;
}

.news-items { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.news-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.news-item::before {
  content: '🍓';
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.section-title-with-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.title-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.update-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #ff7675);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(232, 64, 58, 0.25);
}

.update-btn .btn-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.update-btn .btn-text {
  transition: transform 0.2s ease;
}

.update-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 64, 58, 0.4);
  background: linear-gradient(135deg, #ff5a54, #ff8a88);
}

.update-btn:hover .btn-icon {
  transform: rotate(180deg);
}

.update-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(232, 64, 58, 0.3);
}

.update-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.update-btn.loading .btn-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .section-title-with-btn {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
  .update-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }
}