:root {
  --primary-color: #2481cc;
  --primary-hover: #1c6fb5;
  --bg-color: #f4f4f5;
  --card-bg: #ffffff;
  --text-main: #222222;
  --text-secondary: #707579;
  --border-radius: 12px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

header {
  text-align: center;
  margin-bottom: 8px;
}

.logo-container {
  width: 72px;
  height: 72px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(36, 129, 204, 0.2);
}

.logo-container svg {
  width: 40px;
  height: 40px;
  fill: white;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.description {
  color: var(--text-secondary);
  font-size: 16px;
  padding: 0 20px;
}

.section {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
  width: 100%;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.link-item:hover {
  background: #f1f3f5;
  border-color: #dee2e6;
  transform: translateX(4px);
}

.link-item i {
  margin-right: 12px;
  font-style: normal;
  font-size: 20px;
}

.proxy-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proxy-url-container {
  display: flex;
  background: #f1f3f5;
  padding: 12px;
  border-radius: 8px;
  overflow: hidden;
  align-items: center;
  gap: 10px;
}

.proxy-url {
  font-family: monospace;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.btn-copy {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.btn-copy:hover {
  background: var(--primary-hover);
}

.btn-copy:active {
  transform: scale(0.95);
}

.btn-connect {
  width: 100%;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  display: block;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(36, 129, 204, 0.3);
}

.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(36, 129, 204, 0.4);
}

.instructions {
  margin-top: 10px;
}

/* Methods Section */
.methods-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.method-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e9ecef;
  transition: var(--transition);
}

.method-card:hover {
  border-color: var(--primary-color);
  background: #fff;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

.method-image-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  aspect-ratio: 16/9;
  background: #eee;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.method-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.method-card:hover .method-image-wrapper img {
  transform: scale(1.05);
}

.method-steps {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-banner {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-title {
  color: #c53030;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert-text {
  color: #742a2a;
  font-size: 14px;
  font-weight: 500;
}

.important-note {
  display: block;
  background: #fffaf0;
  border-left: 3px solid #ed8936;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 4px;
  color: #7b341e;
  font-size: 13px;
  font-weight: 500;
}

.highlight-blue {
  color: var(--primary-color);
  font-weight: 600;
}


.step {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.step-num {
  background: var(--primary-color);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s ease-out;
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}
