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

body {
  font-family: Tahoma, Verdana, Arial, sans-serif;
  background: #c9d7e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23c9d7e8'/%3E%3Crect width='2' height='2' fill='%23bccfe4'/%3E%3C/svg%3E");
  color: #222;
  font-size: 13px;
  line-height: 1.5;
}

/* ==================== HEADER ==================== */
.topbar {
  background: linear-gradient(to bottom, #3a78c2 0%, #1f4f8f 100%);
  border-bottom: 3px solid #143862;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.logo__file { color: #ffffff; }
.logo__shara { color: #ffd400; }
.logo__tld { color: #c9e2ff; font-size: 18px; }

.topnav {
  display: flex;
  gap: 18px;
}
.topnav a {
  color: #e8f1ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.topnav a:hover {
  color: #ffd400;
  border-bottom-color: #ffd400;
}

.topbar__slogan {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 16px 10px;
  color: #d6e6fb;
  font-size: 12px;
  font-style: italic;
}

/* ==================== LAYOUT ==================== */
.layout {
  max-width: 1100px;
  margin: 16px auto;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 14px;
  padding: 0 16px;
}

@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .adcolumn { display: none; }
}

/* ==================== AD BANNERS ==================== */
.adcolumn {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adbanner {
  background: #fffbe0;
  border: 2px solid #e0c34a;
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.adbanner--red {
  background: #ffe9e9;
  border-color: #d96a6a;
}
.adbanner__label {
  font-size: 9px;
  color: #999;
  text-align: right;
  margin-bottom: 4px;
}
.adbanner__title {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 6px;
}
.adbanner__text {
  font-size: 11px;
  color: #444;
  margin-bottom: 8px;
}
.adbanner__btn {
  background: linear-gradient(to bottom, #7bd34a, #4ea823);
  border: 1px solid #3c8a1a;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding: 6px;
  border-radius: 3px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
.adbanner__btn--gold {
  background: linear-gradient(to bottom, #ffe07a, #e0a52a);
  border-color: #b8821a;
  color: #553a00;
}
.adbanner--blink .adbanner__title {
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink {
  50% { opacity: 0.25; }
}

/* ==================== CARD ==================== */
.card {
  background: #ffffff;
  border: 1px solid #9fb8d4;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  padding: 20px 24px 24px;
}

.card__heading {
  font-size: 19px;
  color: #1f4f8f;
  border-bottom: 2px solid #d8e4f3;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* ==================== FILE BOX ==================== */
.filebox {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #f4f8fd;
  border: 1px dashed #b3cce8;
  border-radius: 5px;
  padding: 14px;
  margin-bottom: 18px;
}
.filebox__icon {
  width: 56px;
  height: 70px;
  flex-shrink: 0;
  filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.3));
}
.filebox__name {
  font-size: 16px;
  font-weight: bold;
  color: #16345e;
  margin-bottom: 6px;
  word-break: break-all;
}
.filebox__meta {
  list-style: none;
  font-size: 12px;
  color: #555;
}
.filebox__meta li {
  margin-bottom: 2px;
}
.filebox__ok {
  color: #2c8a2c;
  font-weight: bold;
}

/* ==================== DOWNLOAD BOX ==================== */
.downloadbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .downloadbox { grid-template-columns: 1fr; }
}

.downloadbox__col {
  border: 1px solid #d8e4f3;
  border-radius: 5px;
  padding: 14px;
  text-align: center;
}
.downloadbox__col h2 {
  font-size: 14px;
  color: #1f4f8f;
  margin-bottom: 6px;
}
.downloadbox__desc {
  font-size: 11px;
  color: #777;
  margin-bottom: 10px;
  min-height: 32px;
}
.downloadbox__col--premium {
  background: linear-gradient(to bottom, #fff8e0, #fff1c2);
  border-color: #e3c878;
}
.downloadbox__price {
  margin-top: 6px;
  font-size: 11px;
  color: #8a6d1a;
  font-weight: bold;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: block;
  width: 100%;
  font-family: inherit;
  font-weight: bold;
  font-size: 14px;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: filter 0.15s ease;
}
.btn:hover:not(:disabled) {
  filter: brightness(1.08);
}
.btn:active:not(:disabled) {
  filter: brightness(0.95);
}

.btn--free {
  background: linear-gradient(to bottom, #8fd35a, #4d9c1f);
  border-color: #3c7d18;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.25);
}
.btn--free:disabled {
  background: #c7d3c0;
  border-color: #aebca5;
  color: #6b7a64;
  cursor: not-allowed;
}

.btn--outline {
  background: #eef4fc;
  border-color: #a9c6e8;
  color: #1f4f8f;
}

.btn--premium {
  background: linear-gradient(to bottom, #ffd866, #e0a52a);
  border-color: #b8821a;
  color: #553a00;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.4);
}

/* ==================== CAPTCHA ==================== */
.captcha {
  border-top: 1px dashed #d8e4f3;
  padding-top: 12px;
  font-size: 12px;
  color: #555;
}
.captcha__label {
  margin-bottom: 6px;
}
.captcha__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.captcha__badge {
  margin-left: auto;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 10px;
  color: #888;
}

/* ==================== FOOTER ==================== */
.footer {
  max-width: 1100px;
  margin: 24px auto 16px;
  padding: 14px 16px;
  text-align: center;
  font-size: 11px;
  color: #5d7796;
  border-top: 1px solid #b9cde6;
}
.footer__stats {
  margin-bottom: 6px;
}

/* ==================== FULLSCREEN GIF OVERLAY ==================== */
.gif-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.gif-overlay.is-active {
  display: flex;
}
.gif-overlay__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gif-overlay__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
}
.gif-overlay__close:hover {
  background: rgba(255,255,255,0.3);
}
