/* Macau Gaming Authority License Validation - 100% Pixel-Accurate Reproduction */

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

body {
  background-color: #041a31;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 10px 0 35px;
  min-height: 100vh;
}

.page-container {
  width: 100%;
  max-width: 554px;
  margin: 0 auto;
}

/* White Card General */
.card {
  background-color: #ffffff;
  border-radius: 4px;
  color: #000000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Main Card */
.main-card {
  padding: 20px 18px 16px 18px;
}

.header-section {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.logo-wrapper {
  flex-shrink: 0;
}

.header-logo {
  width: 107px;
  height: 55px;
  display: block;
  object-fit: contain;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.main-title {
  font-size: 21.5px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 5px 0;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.sub-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 6px 0;
  line-height: 1.15;
}

.timestamp {
  font-size: 11px;
  color: #71717a;
  margin: 0;
  line-height: 1.15;
}

/* Divider inside card */
.card-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 12px 0 17px 0;
}

/* Card Body Content */
.body-content {
  margin-left: 132px; /* Aligns with header text beside logo */
}

.company-name {
  font-size: 21px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 10px 0;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.company-brand {
  font-size: 19.5px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 15px 0;
  line-height: 1.15;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #000000;
  line-height: 1.2;
}

.detail-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  flex-shrink: 0;
  color: #000000;
}

.detail-item .text {
  color: #000000;
  text-decoration: none;
  word-break: break-all;
}

.detail-item a.link-hover {
  color: #000000;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.detail-item a.link-hover:hover {
  text-decoration: underline;
}

/* Status Badge */
.status-badge-container {
  margin: 14px 0 15px 0;
  display: flex;
  justify-content: flex-start;
  padding-left: 43px; /* Centers button over the 382px text block */
}

.status-badge {
  background-color: #718e4e;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  padding: 0;
  border-radius: 3px;
  width: 304px;
  height: 30px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.status-badge:hover:not(.is-loading) {
  background-color: #658144;
}

.status-badge.is-loading {
  background-color: #617b43;
  cursor: wait;
}

.btn-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: badgeSpin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes badgeSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes badgePop {
  0% { transform: scale(0.96); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.status-badge.just-validated {
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.license-note {
  font-size: 10.2px;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
  max-width: 382px;
}

/* Notice Card */
.notice-card {
  margin-top: 11px;
  padding: 16px 14px 19px 14px;
}

.notice-text {
  font-size: 9.8px;
  line-height: 1.46;
  letter-spacing: -0.05px;
  color: #1e293b;
  margin: 0;
}

/* Legal Disclaimers Section */
.legal-section {
  margin-top: 15px;
}

.legal-section p {
  font-size: 8.8px;
  line-height: 1.44;
  color: #ffffff;
  margin-bottom: 7px;
  font-weight: 400;
  text-align: left;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

/* Footer Section */
.footer-section {
  margin-top: 12px;
}

.dotted-divider {
  border-top: 1px dotted rgba(255, 255, 255, 0.35);
  margin: 14px 0;
  height: 0;
}

.footer-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 74px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.footer-contact {
  display: flex;
  align-items: center;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-size: 11px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-email:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.footer-email .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 11px;
  color: #ffffff;
}

.dmca-container {
  display: flex;
  align-items: center;
}

.dmca-badge {
  width: 75px;
  height: 15px;
  display: block;
  object-fit: contain;
}

/* Responsive / Mobile View */
@media (max-width: 600px) {
  body {
    padding: 8px 0 30px;
  }

  .page-container {
    padding: 0 10px;
    max-width: 100%;
  }

  .main-card {
    padding: 16px 14px;
  }

  .header-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
  }

  .logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .header-titles {
    width: 100%;
    text-align: left;
  }

  .main-title {
    font-size: 20px;
  }

  .sub-title {
    font-size: 14px;
  }

  .body-content {
    margin-left: 0;
  }

  .company-name {
    font-size: 20px;
  }

  .company-brand {
    font-size: 18px;
  }

  .status-badge-container {
    padding-left: 0;
  }

  .status-badge {
    width: 100%;
  }

  .license-note {
    max-width: 100%;
  }

  .notice-card {
    padding: 14px 14px;
  }

  .footer-brand-row {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
  }
}

/* ========================================================= */
/* VALIDATION VIEW TOP NAV BAR                              */
/* ========================================================= */
.portal-nav-bar {
  max-width: 554px;
  margin: 0 auto 10px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  font-size: 11px;
}

.back-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c5a059;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.back-portal-link:hover {
  color: #e5c158;
  text-decoration: underline;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #718e4e;
  font-size: 10.5px;
  font-weight: 500;
}

/* ========================================================= */
/* MOCK OFFICIAL LANDING PAGE STYLES                         */
/* ========================================================= */
body.portal-mode {
  padding: 0;
  background-color: #041426;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.landing-view {
  width: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #0d2847 0%, #041527 50%, #020c18 100%);
}

/* Top SAR Government Bar */
.sar-top-bar {
  background: #020b16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  padding: 7px 20px;
}

.sar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.sar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00b894;
  font-size: 10.5px;
}

.status-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00b894;
  box-shadow: 0 0 8px #00b894;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.lang-switch {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.5px;
}

/* Main Navigation Header */
.portal-header {
  background: rgba(4, 20, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
}

.portal-nav-container {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-crest {
  height: 38px;
  width: auto;
  display: block;
}

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

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.brand-sub {
  font-size: 10.5px;
  color: #c5a059;
  letter-spacing: 0.2px;
}

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

.portal-nav-links .nav-item {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.portal-nav-links .nav-item:hover,
.portal-nav-links .nav-item.active {
  color: #ffffff;
}

.portal-nav-links .nav-item.active {
  color: #e5c158;
}

.btn-verify-cta {
  background: linear-gradient(135deg, #718e4e 0%, #58743b 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(113, 142, 78, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-verify-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(113, 142, 78, 0.45);
}

/* Hero Section */
.portal-hero {
  position: relative;
  padding: 70px 20px 80px 20px;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: #e5c158;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-heading {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.6px;
}

.hero-subtext {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Live Search Widget Box */
.search-widget-box {
  background: rgba(8, 28, 52, 0.75);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(113, 142, 78, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-box-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.search-box-header p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.search-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  background: rgba(3, 15, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #ffffff;
  font-size: 13.5px;
  padding: 12px 14px 12px 42px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
  border-color: #c5a059;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.btn-search-submit {
  background: #718e4e;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 20px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s;
}

.btn-search-submit:hover {
  background: #627c43;
  transform: translateY(-1px);
}

.search-suggestions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
}

.sugg-label {
  color: rgba(255, 255, 255, 0.5);
}

.sugg-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.sugg-chip:hover {
  background: rgba(197, 160, 89, 0.18);
  border-color: #c5a059;
  color: #e5c158;
}

.verified-chip strong {
  color: #e5c158;
}

.chip-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00b894;
}

.search-notice {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
}

.search-notice.error {
  background: rgba(235, 77, 75, 0.15);
  border: 1px solid rgba(235, 77, 75, 0.4);
  color: #ff7979;
}

/* Stats Section */
.portal-stats {
  padding: 20px 20px 50px;
  background: rgba(2, 12, 24, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-container {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #c5a059;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Regulatory Pillars Section */
.portal-pillars {
  padding: 80px 20px;
}

.pillars-container {
  max-width: 1160px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  color: #c5a059;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

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

.pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.pillar-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 18px;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.pillar-list li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.pillar-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #718e4e;
  font-size: 16px;
  line-height: 12px;
}

/* Public Notices Section */
.portal-notices {
  padding: 0 20px 80px 20px;
}

.notices-container {
  max-width: 1160px;
  margin: 0 auto;
}

.notice-box-highlight {
  background: rgba(113, 142, 78, 0.1);
  border: 1px solid rgba(113, 142, 78, 0.35);
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.notice-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.notice-content {
  flex: 1;
}

.notice-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.notice-content p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.notice-content strong {
  color: #e5c158;
}

.btn-notice-action {
  background: #718e4e;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.btn-notice-action:hover {
  background: #627c43;
}

/* Portal Footer */
.portal-footer {
  background: #020912;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 20px 0 20px;
}

.portal-footer-inner {
  max-width: 1160px;
  margin: 0 auto 50px auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col-brand .footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-col-brand h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.footer-col-brand p {
  font-size: 11px;
  color: #c5a059;
}

.footer-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-contact-info p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.footer-contact-info a {
  color: #e5c158;
  text-decoration: none;
}

.footer-contact-info a:hover {
  text-decoration: underline;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.portal-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
}

.portal-bottom-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive adjustments for Landing Page */
@media (max-width: 900px) {
  .portal-nav-links {
    display: none;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .portal-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .sar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .hero-heading {
    font-size: 26px;
  }
  .search-widget-box {
    padding: 20px 16px;
  }
  .search-input-group {
    flex-direction: column;
  }
  .btn-search-submit {
    width: 100%;
    justify-content: center;
  }
  .stats-container {
    grid-template-columns: 1fr;
  }
  .notice-box-highlight {
    flex-direction: column;
    text-align: center;
  }
  .portal-footer-inner {
    grid-template-columns: 1fr;
  }
  .portal-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
