/* ==========================================================================
   RAR SMS GATEWAY & ZALO ZNS - VERSION 2.0 (INTERNAL BRIEFING PORTAL)
   Style inspired strictly by RAR C06 Official Slide Layout
   Colors: Deep Navy (#061d38), Cyber Blue, RAR Gold (#e5a93c), Tech White
   ========================================================================== */

:root {
  --navy-dark: #061d38;
  --navy-card: #0a2240;
  --navy-header: #07192f;
  --gold-primary: #e5a93c;
  --gold-dark: #c48b26;
  --gold-light: #fbeed3;
  --blue-tech: #0284c7;
  --blue-light: #e0f2fe;
  --bg-page: #f4f7fb;
  --text-dark: #0f233a;
  --text-muted: #475569;
  --text-white: #ffffff;
  --border-card: rgba(14, 38, 68, 0.12);
  --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-main: 0 16px 36px -10px rgba(6, 29, 56, 0.12), 0 0 1px 1px rgba(6, 29, 56, 0.05);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Cyber Circuit & Geometric Tech Pattern */
.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(229, 169, 60, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.06) 0%, transparent 40%),
    linear-gradient(rgba(15, 35, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 35, 58, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

/* Corner futuristic angled notch (Matching RAR slide style) */
.corner-notch-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #caa043 100%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  opacity: 0.85;
  z-index: 1;
}

.corner-notch-tl::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 135px;
  height: 44px;
  background: var(--bg-page);
  clip-path: polygon(0 0, 98% 0, 78% 95%, 0 95%);
}

.corner-lines {
  position: absolute;
  top: 24px;
  left: 150px;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

/* Outer layout wrapper */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

/* ==========================================================================
   TOP HEADER BANNER (EXACT REPLICA OF RAR CENTER C06 BANNER)
   ========================================================================== */
.rar-banner-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.rar-banner {
  background: linear-gradient(180deg, #092648 0%, #061a33 100%);
  border: 1.5px solid rgba(229, 169, 60, 0.4);
  box-shadow: 0 12px 28px rgba(6, 29, 56, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px 36px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  max-width: 820px;
  width: 100%;
}

.banner-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.banner-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.banner-org-name {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.35;
  text-transform: uppercase;
}

.banner-center-name {
  color: var(--gold-primary);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
  margin-top: 4px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mode selector tab for internal review */
.internal-mode-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.mode-pill {
  background: rgba(6, 29, 56, 0.06);
  border: 1px solid rgba(6, 29, 56, 0.1);
  color: var(--navy-dark);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mode-pill:hover {
  background: rgba(6, 29, 56, 0.12);
}

.mode-pill.active {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
  box-shadow: 0 4px 10px rgba(6, 29, 56, 0.18);
}

/* ==========================================================================
   MAIN SHOWCASE CARD (2-COLUMN PRESENTATION LAYOUT)
   ========================================================================== */
.showcase-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  box-shadow: var(--shadow-main);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 45px;
  align-items: center;
  position: relative;
  min-height: 420px;
}

/* Column 1: Graphic / Model */
.showcase-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.visual-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.visual-img-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.visual-img-container:hover {
  transform: translateY(-3px);
}

.visual-img-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Sub-caption under visual */
.visual-badges {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.mini-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--blue-tech);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* Column 2: Information & Technical Details */
.showcase-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.28;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.content-title span {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-top: 2px;
}

.content-desc {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 28px;
  text-align: justify;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Exact Pill Button from Slide */
.btn-tech-detail {
  background: linear-gradient(180deg, #0f2746 0%, #061930 100%);
  color: #ffffff;
  border: 1.5px solid rgba(229, 169, 60, 0.4);
  padding: 13px 32px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(6, 29, 56, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-tech-detail:hover {
  background: linear-gradient(180deg, #16365e 0%, #0a2444 100%);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 22px rgba(229, 169, 60, 0.28);
  transform: translateY(-2px);
  color: var(--gold-light);
}

.btn-tech-detail svg {
  color: var(--gold-primary);
}

/* Secondary Action: Architecture Flow */
.btn-sub-link {
  color: var(--blue-tech);
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  transition: color 0.2s ease;
}

.btn-sub-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* ==========================================================================
   TECHNICAL SPECIFICATION MODAL (DRAWER SHEET)
   Clean, Organized Technical Briefing for Internal Personnel
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 29, 56, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-window {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(6, 29, 56, 0.35);
  border: 1px solid rgba(229, 169, 60, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(180deg, #092648 0%, #061a33 100%);
  color: #ffffff;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-primary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.modal-header h3 span {
  color: var(--gold-primary);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(218, 37, 29, 0.8);
  border-color: transparent;
}

.modal-body {
  padding: 28px;
  color: var(--text-dark);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.spec-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
}

.spec-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.spec-list {
  list-style: none;
  font-size: 0.88rem;
}

.spec-list li {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.spec-list li span:first-child {
  color: var(--text-muted);
}

.spec-list li span:last-child {
  font-weight: 600;
  color: var(--navy-dark);
}

/* Architecture flow diagram box inside modal */
.flow-schema-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  margin-top: 10px;
}

.flow-schema-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.flow-steps-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}

.flow-box-mini {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 8px;
  font-size: 0.8rem;
  position: relative;
}

.flow-box-mini strong {
  display: block;
  color: var(--navy-dark);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* Page footer text */
.page-footer {
  text-align: center;
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(15, 35, 58, 0.08);
  margin-top: 24px;
}

.page-footer strong {
  color: var(--navy-dark);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .showcase-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px;
  }
  
  .rar-banner {
    padding: 14px 20px;
    gap: 14px;
  }
  
  .banner-org-name {
    font-size: 0.88rem;
  }
  
  .banner-center-name {
    font-size: 1.2rem;
  }
  
  .content-title {
    font-size: 1.45rem;
  }
  
  .spec-grid {
    grid-template-columns: 1fr;
  }
  
  .flow-steps-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}
