* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  background: linear-gradient(to bottom, #f8f9fa 0%, #e8eaed 100%);
  color: #202124;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
  border-bottom: 1px solid #e8eaed;
  justify-content: space-between;
}

.play-icon {
  width: 32px;
  height: 32px;
}

.header-text {
  font-size: 20px;
  color: #5f6368;
  font-weight: 400;
}

.badge {
  margin-left: auto;
  width: 80px;
}

.app-header {
  padding: 24px 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.app-info {
  flex: 1;
}

.app-title {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #202124;
}

.app-subtitle {
  font-size: 14px;
  color: #01875f;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fire-icon {
  font-size: 18px;
}

.verified {
  font-size: 13px;
  color: #5f6368;
  margin-top: 4px;
}

.stats {
  display: flex;
  padding: 16px;
  justify-content: space-around;
  border-bottom: 8px solid #f8f9fa;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.star {
  color: #fbbc04;
}

.stat-label {
  font-size: 12px;
  color: #5f6368;
  margin-top: 4px;
}

.install-btn {
  margin: 16px;
  background: #01875f;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.install-btn:hover {
  background: #01623f;
}

.action-buttons {
  display: flex;
  gap: 32px;
  padding: 16px;
  justify-content: center;
  border-bottom: 8px solid #f8f9fa;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #01875f;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.screenshots {
  padding: 16px;
  overflow-x: auto;
  border-bottom: 8px solid #f8f9fa;
}

.screenshot-container {
  display: flex;
  gap: 12px;
}

.screenshot {
  min-width: 200px;
  height: 320px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  position: relative;
  overflow: hidden;
}

.about-section {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8eaed;
}

.about-title {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
}

.arrow {
  color: #5f6368;
  font-size: 20px;
}

.section {
  padding: 20px 16px;
  border-bottom: 8px solid #f8f9fa;
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}

.about-text {
  font-size: 14px;
  line-height: 20px;
  color: #5f6368;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.rating-number {
  font-size: 48px;
  font-weight: 300;
}

.rating-bars {
  flex: 1;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.bar-label {
  font-size: 12px;
  width: 8px;
}

.bar-bg {
  flex: 1;
  height: 8px;
  background: #e8eaed;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #01875f;
}

.review {
  padding: 16px 0;
  border-bottom: 1px solid #e8eaed;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #007b0c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 500;
}

.review-stars {
  color: #01875f;
  font-size: 12px;
}

.review-date {
  font-size: 12px;
  color: #5f6368;
  margin-bottom: 8px;
}

.review-text {
  font-size: 14px;
  line-height: 20px;
  color: #202124;
  margin-bottom: 8px;
}

.data-safety {
  padding: 20px 16px;
  border-bottom: 8px solid #f8f9fa;
}

.safety-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8eaed;
}

.safety-icon {
  width: 24px;
  height: 24px;
  color: #5f6368;
}

.safety-text {
  font-size: 14px;
  line-height: 20px;
}

.bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid #e8eaed;
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 600px;
  background: white;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #5f6368;
  text-decoration: none;
  font-size: 12px;
}

.nav-item.active {
  color: #01875f;
}

.nav-icon {
  font-size: 24px;
}
.gg-right {
  width: 150px;
}
.dsIcon {
  width: 1rem;
}
#install-box {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}
button {
  margin: 5px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
}

/* modal */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay.show {
  display: flex;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 350px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  background-image: url("./512.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
}

.title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.speed-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  font-weight: 500;
}

.activated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #e8f5e9;
  border-radius: 25px;
  font-size: 14px;
  color: #2e7d32;
  margin-bottom: 25px;
  font-weight: 500;
}

.check-icon {
  width: 18px;
  height: 18px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 12px;
}

.install-btn-modal {
  width: 200px;
  padding: 16px;
  background: linear-gradient(135deg, #00a86b 0%, #00c875 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
  position: relative;
  overflow: hidden;
}

.install-btn-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}

.install-btn-modal:active {
  transform: translateY(0);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #007a50 0%, #009a61 100%);
  transition: width 2s ease-in-out;
  z-index: 1;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.completed {
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
}

.completed .progress-bar {
  background: linear-gradient(135deg, #003d99 0%, #0047b3 100%);
}

/* ios dialog */

.dialog {
  background: #f2f2f7;
  border-radius: 20px 20px 0 0;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.dialog-header {
  background: white;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e5ea;
}

.dialog-title {
  font-size: 17px;
  font-weight: 600;
  color: #000;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #8e8e93;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.quick-install {
  background: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e5e5ea;
}

.quick-install-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.quick-install-text {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

.app-info-ios {
  background: white;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon-ios {
  width: 60px;
  height: 60px;
  background-image: url("./512.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.app-details {
  flex: 1;
}

.app-name {
  font-size: 17px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

.app-url {
  font-size: 13px;
  color: #8e8e93;
}

.instructions {
  background: white;
  padding: 20px;
}

.instruction-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.instruction-item:last-child {
  margin-bottom: 0;
}

.instruction-number {
  font-size: 17px;
  font-weight: 600;
  color: #000;
  min-width: 20px;
}

.instruction-text {
  font-size: 15px;
  color: #000;
  line-height: 1.5;
  flex: 1;
}

.share-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #007aff;
  border-radius: 4px;
  position: relative;
  vertical-align: middle;
  margin: 0 2px;
}

.share-icon::before {
  content: "↑";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.app-icon-small {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("./512.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
  vertical-align: middle;
  margin: 0 2px;
  font-size: 14px;
  color: white;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
}

/* dialog for ios not safari */

.dialog-header-ios1 {
  background-image: url("/head.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 140px;

  position: relative;
  overflow: hidden;
}

.dialog-header-ios1::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10%, 10%);
  }
}

.dialog-header-icon {
  font-size: 80px;
  text-align: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.dialog-content {
  padding: 10px;
}

.dialog-message {
  color: #b8b8b8;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.link-container {
  background: #2a2a2a;
  border: 2px solid #3a3a3a;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  transition: border-color 0.3s;
}

.link-container:hover {
  border-color: #4a4a4a;
}

.link-icon {
  width: 32px;
  height: 32px;
  background-image: url("/safari.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.link-text {
  color: #e0e0e0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.button-group {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn-cancel {
  background: transparent;
  border: 2px solid #3a3a3a;
  color: #b8b8b8;
}

.btn-cancel:hover {
  background: #2a2a2a;
  border-color: #4a4a4a;
}

.btn-copy {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-copy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-copy:hover::before {
  width: 300px;
  height: 300px;
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

.btn-copy span {
  position: relative;
  z-index: 1;
}

.btn-copy.copied {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

/* dialog device */
.android-dialog,
.ios-dialog,
.ios-other-browser-dialog,
.alert-not-chrome-dialog {
  display: none;
}

/* alert if not chrome */

.alert-container {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.icon-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.chrome-icon {
  width: 64px;
  height: 64px;
  background-image: url("./chrome.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.alert-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 16px;
  line-height: 1.4;
}

.alert-message {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 24px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-alert {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #4285f4;
  color: white;
}

.btn-primary:hover {
  background: #357ae8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.btn-secondary {
  background: #f1f3f4;
  color: #5f6368;
}

.btn-secondary:hover {
  background: #e8eaed;
}
