:root {
  --bg-color: #f7f4ed;
  --bg-subtle: #f0ebe1;
  --card-bg: #ffffff;
  --text-primary: #191c1f;
  --text-secondary: #6e7279;
  --navy-primary: #0d1b2a;
  --navy-hover: #1b2d42;
  --gold-accent: #cda250;
  --gold-light: #f5eedf;
  --teal-accent: #009688;
  --dgis-color: #27ae60;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 4px 12px rgba(13, 27, 42, 0.04);
  --shadow-card: 0 10px 25px -4px rgba(13, 27, 42, 0.07), 0 4px 10px -2px rgba(13, 27, 42, 0.04);
  --shadow-primary: 0 12px 30px -4px rgba(13, 27, 42, 0.28);
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: #e8e3d8;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  background-image:
    radial-gradient(at 15% 15%, rgba(205, 162, 80, 0.08) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(13, 27, 42, 0.06) 0px, transparent 50%);
}

.app-container {
  width: 100%;
  max-width: 430px;
  position: relative;
}

/* Smartphone screen container */
.mobile-screen {
  background: var(--bg-color);
  border-radius: 38px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -15px rgba(28, 25, 23, 0.25),
    0 0 0 10px #1a1a1a,
    0 0 0 12px #333333;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 844px;
}

@media (max-width: 480px) {
  body {
    padding: 0;
    background: var(--bg-color);
  }

  .app-container {
    max-width: 100%;
  }

  .mobile-screen {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }
}

/* Header & Photo */
.hero-header {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.status-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #1a4329;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.6);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(39, 174, 96, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

/* Brand Section with Overlapping Logo */
.brand-section {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -68px;
  padding: 0 24px 18px;
}

.logo-wrapper {
  width: 130px;
  height: 130px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 14px 30px rgba(13, 27, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo-wrapper:hover {
  transform: translateY(-2px);
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-accent);
  image-rendering: -webkit-optimize-contrast;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy-primary);
  margin-bottom: 2px;
}

.brand-subtitle {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-accent);
  margin-bottom: 6px;
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Action Stack */
.actions-stack {
  padding: 10px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid rgba(220, 215, 205, 0.5);
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -4px rgba(13, 27, 42, 0.12);
  border-color: rgba(205, 162, 80, 0.4);
}

.action-card:active {
  transform: translateY(0);
}

/* 1. Primary Navy Action */
.action-primary {
  background: linear-gradient(135deg, #0d1b2a 0%, #15273b 100%);
  color: #ffffff;
  border: 1px solid rgba(205, 162, 80, 0.45);
  box-shadow: var(--shadow-primary);
  padding: 19px 20px;
}

.action-primary:hover {
  background: linear-gradient(135deg, #102133 0%, #1b324b 100%);
  border-color: var(--gold-accent);
  box-shadow: 0 16px 38px -4px rgba(13, 27, 42, 0.42);
}

.action-primary .card-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.action-primary .card-caption {
  color: #f0ebe1;
  opacity: 0.82;
  font-size: 12px;
}

.action-primary .card-arrow {
  color: var(--gold-accent);
}

.action-primary .menu-icon {
  background: rgba(205, 162, 80, 0.16);
  color: var(--gold-accent);
  border: 1px solid rgba(205, 162, 80, 0.35);
}

/* Icons */
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.action-card:hover .card-icon {
  transform: scale(1.08);
}

.wifi-icon {
  background: #e6f6f4;
  color: #009688;
}

.insta-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.dgis-icon {
  background: #eafaf1;
  color: #27ae60;
}

/* Card typography */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-caption {
  font-size: 12px;
  color: var(--text-secondary);
}

.card-arrow {
  color: #b3b8c2;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.action-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--navy-primary);
}

/* Footer */
.app-footer {
  padding: 10px 20px 24px;
  text-align: center;
}

.quick-contacts {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(13, 27, 42, 0.05);
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-primary);
  transition: all 0.2s;
}

.contact-pill:hover {
  background: var(--navy-primary);
  color: #ffffff;
}

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

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 27, 42, 0.6);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 30px 24px 26px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f0ebe1;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #e6f6f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-card h3 {
  font-size: 20px;
  color: var(--navy-primary);
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.wifi-info-box {
  background: #f8f6f0;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px dashed rgba(205, 162, 80, 0.5);
}

.wifi-field {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.wifi-label {
  color: var(--text-secondary);
}

.wifi-val {
  color: var(--navy-primary);
  font-family: monospace;
  font-size: 15px;
}

.btn-copy-wifi {
  width: 100%;
  padding: 14px;
  border: none;
  background: var(--navy-primary);
  color: #ffffff;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-copy-wifi:hover {
  background: #1b2d42;
}

.btn-copy-wifi.copied {
  background: #27ae60;
}