:root {
  --red: #d90429;
  --black: #0d0d0d;
  --white: #ffffff;
  --yellow: #ffcc00;
  --dark-1: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #202020;
  --border: rgba(255,255,255,0.08);
  --text-soft: #d9d9d9;
  --transition: 0.35s ease;
  --facebook: #1877F2;
  --whatsapp: #25D366;
  --gmail: #EA4335;
  --service-green: #00C853;
  --instagram: #E4405F;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: "Montserrat", sans-serif;
}

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

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

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

.hidden {
  display: none !important;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 99999;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: 0.5s ease;
}

.brand-loader {
  display: flex;
  gap: 12px;
}

.brand-loader span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: bounce 1s infinite ease-in-out;
}

.brand-loader span:nth-child(1) { background: var(--red); animation-delay: 0s; }
.brand-loader span:nth-child(2) { background: var(--yellow); animation-delay: 0.15s; }
.brand-loader span:nth-child(3) { background: var(--white); animation-delay: 0.3s; }
.brand-loader span:nth-child(4) { background: #444; animation-delay: 0.45s; }

.preloader h2 {
  color: white;
  font-size: 1.8rem;
  letter-spacing: 3px;
  text-align: center;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(0.9); opacity: 0.7; }
  50% { transform: translateY(-12px) scale(1.08); opacity: 1; }
}

/* ===== BRAND ===== */
.brand-area {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-box {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, rgba(255,204,0,0.12), rgba(217,4,41,0.12)),
    #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ===== NAV ===== */
.nav {
  width: 100%;
  padding: 16px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: rgba(0,0,0,0.94);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: white;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--yellow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 120px 20px 80px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(217, 4, 41, 0.14), transparent 34%),
    linear-gradient(135deg, #050505, #141414 55%, #0d0d0d);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--yellow);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--yellow);
}

.hero p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 1.4rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: visible;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.8);
  z-index: -1;
}

.social-link:hover {
  transform: translateY(-6px) scale(1.1);
  border-color: transparent;
}

.social-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Facebook */
.social-link.facebook:hover {
  color: #fff;
  background: var(--facebook);
  box-shadow:
    0 0 20px rgba(24, 119, 242, 0.5),
    0 0 40px rgba(24, 119, 242, 0.25),
    0 8px 25px rgba(24, 119, 242, 0.3);
}

.social-link.facebook::before {
  background: radial-gradient(circle, rgba(24, 119, 242, 0.3), transparent 70%);
}

/* Instagram */
.social-link.instagram:hover {
  color: #fff;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
  box-shadow:
    0 0 20px rgba(228, 64, 95, 0.5),
    0 0 40px rgba(228, 64, 95, 0.25),
    0 8px 25px rgba(228, 64, 95, 0.3);
}

.social-link.instagram::before {
  background: radial-gradient(circle, rgba(228, 64, 95, 0.3), transparent 70%);
}

/* WhatsApp Channel */
.social-link.whatsapp:hover {
  color: #fff;
  background: var(--whatsapp);
  box-shadow:
    0 0 20px rgba(37, 211, 102, 0.5),
    0 0 40px rgba(37, 211, 102, 0.25),
    0 8px 25px rgba(37, 211, 102, 0.3);
}

.social-link.whatsapp::before {
  background: radial-gradient(circle, rgba(37, 211, 102, 0.3), transparent 70%);
}

/* Gmail */
.social-link.gmail:hover {
  color: #fff;
  background: var(--gmail);
  box-shadow:
    0 0 20px rgba(234, 67, 53, 0.5),
    0 0 40px rgba(234, 67, 53, 0.25),
    0 8px 25px rgba(234, 67, 53, 0.3);
}

.social-link.gmail::before {
  background: radial-gradient(circle, rgba(234, 67, 53, 0.3), transparent 70%);
}

/* Tooltip */
.social-link .social-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #222;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-link .social-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #222;
}

.social-link:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Glow pulse on hover */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px currentColor; }
  50% { box-shadow: 0 0 30px currentColor, 0 0 50px currentColor; }
}

.social-link:hover {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Footer social */
.footer-social {
  margin-top: 20px;
}

.footer-social .social-link {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

/* Social divider */
.social-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.12);
  margin: 0 4px;
}

/* ===== FIXED CUSTOMER SERVICE BUTTON ===== */
.fixed-cs-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.fixed-cs-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--service-green);
  color: #fff;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  box-shadow:
    0 4px 18px rgba(0, 200, 83, 0.4),
    0 0 30px rgba(0, 200, 83, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: csFloat 3s ease-in-out infinite, csPulseRing 2.5s ease-out infinite;
  z-index: 2;
}

.fixed-cs-btn:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow:
    0 6px 28px rgba(0, 200, 83, 0.6),
    0 0 50px rgba(0, 200, 83, 0.35),
    0 0 80px rgba(0, 200, 83, 0.15);
}

.fixed-cs-btn:active {
  transform: scale(1.05);
}

/* Floating animation */
@keyframes csFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Pulse ring behind button */
.fixed-cs-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 200, 83, 0.4);
  animation: csPulseRing 2.5s ease-out infinite;
}

.fixed-cs-btn::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 200, 83, 0.2);
  animation: csPulseRing 2.5s ease-out infinite 0.4s;
}

@keyframes csPulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* Tooltip label */
.fixed-cs-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #1a1a1a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  border: 1px solid rgba(0, 200, 83, 0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.fixed-cs-label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a1a;
}

.fixed-cs-wrap:hover .fixed-cs-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Online indicator dot */
.cs-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #76FF03;
  border-radius: 50%;
  border: 2.5px solid var(--service-green);
  z-index: 3;
  animation: onlineBlink 2s ease-in-out infinite;
}

@keyframes onlineBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== SECTION ===== */
.section {
  padding: 90px 6%;
}

.alt-section {
  background: #101010;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-weight: 700;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-soft);
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.19s; }
.delay-4 { transition-delay: 0.26s; }

/* ===== GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,204,0,0.05), rgba(217,4,41,0.03));
  opacity: 0;
  transition: var(--transition);
}

.info-card:hover::before { opacity: 1; }

.info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 204, 0, 0.28);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.card-icon {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  font-size: 1.9rem;
  transition: var(--transition);
  animation: floatIcon 3s ease-in-out infinite;
}

.about-icon {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.18), rgba(217, 4, 41, 0.16));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--yellow);
  box-shadow: 0 0 0 rgba(255, 204, 0, 0.1), 0 10px 30px rgba(0,0,0,0.18);
}

.service-icon {
  background: linear-gradient(135deg, rgba(217, 4, 41, 0.2), rgba(255, 204, 0, 0.14));
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff3bf;
  box-shadow: 0 0 0 rgba(217, 4, 41, 0.12), 0 10px 30px rgba(0,0,0,0.18);
}

.info-card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.info-card:hover .about-icon { box-shadow: 0 0 24px rgba(255, 204, 0, 0.28), 0 12px 35px rgba(0,0,0,0.2); }
.info-card:hover .service-icon { box-shadow: 0 0 24px rgba(217, 4, 41, 0.22), 0 12px 35px rgba(0,0,0,0.2); }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.info-card h3 { margin-bottom: 10px; position: relative; z-index: 2; }
.info-card p { color: var(--text-soft); position: relative; z-index: 2; }
.service-card h3 { color: var(--white); }

/* ===== BUTTONS ===== */
.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.primary-btn { background: var(--red); color: white; }
.primary-btn:hover { background: #f30c35; transform: translateY(-2px); }

.secondary-btn { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.secondary-btn:hover { background: var(--yellow); color: #111; }

.logout-btn { background: var(--yellow); color: #111; }
.full-btn { width: 100%; }

/* ===== BLOG ===== */
.search-wrap {
  max-width: 520px;
  margin: 0 auto 28px;
}

.search-wrap input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #111;
  color: white;
  outline: none;
}

.search-wrap input:focus { border-color: rgba(255, 204, 0, 0.45); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-body { padding: 18px; }
.blog-card-body h3 { margin-bottom: 10px; }
.blog-card-body p { color: var(--text-soft); margin-bottom: 10px; }
.blog-card-body small { color: var(--yellow); }

.blog-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #bfbfbf;
  font-size: 0.9rem;
}

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

.blog-action-btn {
  background: #222;
  border: 1px solid var(--border);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.blog-action-btn:hover { color: var(--yellow); }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #090909;
}

.footer h3 { margin-bottom: 6px; }

.footer p {
  color: var(--text-soft);
  margin-bottom: 4px;
}

.footer-tagline {
  color: var(--text-soft);
  margin-bottom: 18px;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #666;
  font-size: 0.85rem;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.76);
}

.modal-box {
  position: relative;
  z-index: 2;
  width: min(92%, 820px);
  margin: 5vh auto;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  background: #1e1e1e;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.modal-main-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
}

.modal-text {
  margin: 16px 0;
  color: var(--text-soft);
  white-space: pre-wrap;
}

.modal-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: #c8c8c8;
  font-size: 0.95rem;
}

.comments-wrap {
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}

.comments-wrap h3 { margin-bottom: 12px; }

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #181818;
  color: white;
  outline: none;
}

.comment-form textarea {
  min-height: 100px;
  resize: vertical;
}

.comment-item {
  background: #181818;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.comment-item strong { display: block; margin-bottom: 6px; }
.comment-item small { color: var(--yellow); display: block; margin-top: 8px; }

/* ===== PORTAL PAGE ===== */
.portal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(217, 4, 41, 0.14), transparent 34%),
    linear-gradient(135deg, #050505, #141414 55%, #0d0d0d);
}

.portal-nav {
  width: 100%;
  padding: 16px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(0,0,0,0.94);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 500;
}

.portal-logo { font-size: 1.1rem; font-weight: 800; }
.back-home-btn { color: var(--yellow); font-weight: 700; white-space: nowrap; }

.portal-main {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 70px;
}

.portal-shell { width: 100%; max-width: 1200px; }

.portal-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.login-card { width: min(100%, 460px); margin: 0 auto; }
.dashboard-card { width: 100%; }
.portal-subtext { color: var(--text-soft); margin-bottom: 18px; }

.portal-form { display: grid; gap: 14px; }
.form-group { display: grid; gap: 8px; }
.form-group label { font-weight: 600; color: #f0f0f0; }

.portal-card input,
.portal-card textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #101010;
  color: white;
  outline: none;
}

.portal-card input:focus,
.portal-card textarea:focus { border-color: rgba(255, 204, 0, 0.45); }

.portal-card textarea { min-height: 150px; resize: vertical; }

.message-text { margin-top: 14px; font-weight: 700; }

.demo-box {
  margin-top: 18px;
  background: rgba(255,255,255,0.04);
  padding: 14px;
  border-radius: 14px;
  color: var(--text-soft);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.stat-box {
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.stat-box h4 { color: var(--text-soft); margin-bottom: 8px; }
.stat-box p { font-size: 2rem; color: var(--yellow); font-weight: 800; }

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.editor-panel,
.posts-panel {
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.editor-panel h3,
.posts-panel h3 { margin-bottom: 14px; }

.upload-wrap { margin-bottom: 16px; }

.upload-label {
  display: inline-block;
  margin-bottom: 10px;
  background: var(--yellow);
  color: #111;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

#imageUpload { width: 100%; margin-bottom: 12px; }

.preview-image {
  width: 100%;
  max-width: 300px;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

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

.portal-post-list { display: grid; gap: 16px; }

.portal-post-item {
  background: #181818;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.portal-post-thumb { width: 100%; height: 210px; object-fit: cover; }
.portal-post-text { padding: 16px; }
.portal-post-text h4 { margin-bottom: 8px; }
.portal-post-text p { color: var(--text-soft); margin-bottom: 10px; }
.portal-post-text small { color: var(--yellow); }

.portal-post-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: #bfbfbf;
  font-size: 0.92rem;
}

.portal-post-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.edit-btn,
.delete-btn {
  background: #2a2a2a;
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.edit-btn:hover { color: var(--yellow); }
.delete-btn:hover { color: #ff6b6b; }
.empty-state { color: var(--text-soft); }

/* ===== TABLET ===== */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .editor-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== MOBILE ===== */
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .nav { padding: 14px 5%; }
  .brand-name { font-size: 0.95rem; }

  .nav-links {
    position: absolute;
    top: 84px;
    right: 5%;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    display: none;
    flex-direction: column;
    width: 230px;
  }

  .nav-links.show { display: flex; }
  .blog-grid, .cards-grid { grid-template-columns: 1fr; }

  .social-link {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .social-divider { height: 24px; }

  .fixed-cs-btn {
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
  }

  .fixed-cs-wrap {
    bottom: 18px;
    right: 18px;
  }
}

@media (max-width: 680px) {
  .portal-nav {
    padding: 14px 5%;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .portal-main { padding: 28px 12px 50px; }
  .portal-card { padding: 18px; }
  .stats-grid { grid-template-columns: 1fr; }
  .dashboard-top { flex-direction: column; align-items: stretch; }
  .portal-post-thumb { height: 180px; }
  .preloader h2 { font-size: 1.3rem; letter-spacing: 2px; }
  .hero-buttons { flex-direction: column; }
  .modal-box { padding: 18px; }
  .card-icon { width: 70px; height: 70px; font-size: 1.6rem; }
  .logo-box { width: 48px; height: 48px; }

  .social-link {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .footer-social .social-link {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .fixed-cs-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .fixed-cs-wrap {
    bottom: 16px;
    right: 16px;
  }

  .fixed-cs-label {
    font-size: 0.72rem;
    padding: 6px 10px;
  }
}

@media (max-width: 400px) {
  .fixed-cs-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .fixed-cs-wrap {
    bottom: 14px;
    right: 14px;
  }
}