/* ===== Social Media — Welcome Page ===== */

.sm-welcome-section {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 149, 255, 0.04) 50%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.sm-welcome-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 200, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sm-welcome-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.sm-welcome-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 149, 255, 0.1);
  border: 1px solid rgba(0, 149, 255, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4fc3f7;
  margin-bottom: 16px;
}

.sm-welcome-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.sm-welcome-sub {
  font-size: 16px;
  color: var(--text-secondary, #94a3b8);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.sm-icons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.sm-icon-link {
  --sm-color: #0095ff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  opacity: 0;
  animation: smIconIn 0.5s ease forwards;
}

.sm-icon-link:nth-child(1) { animation-delay: 0.05s; }
.sm-icon-link:nth-child(2) { animation-delay: 0.1s; }
.sm-icon-link:nth-child(3) { animation-delay: 0.15s; }
.sm-icon-link:nth-child(4) { animation-delay: 0.2s; }
.sm-icon-link:nth-child(5) { animation-delay: 0.25s; }
.sm-icon-link:nth-child(6) { animation-delay: 0.3s; }
.sm-icon-link:nth-child(7) { animation-delay: 0.35s; }
.sm-icon-link:nth-child(8) { animation-delay: 0.4s; }

@keyframes smIconIn {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sm-icon-link svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 0.35s ease;
}

.sm-icon-link .sm-other-emoji {
  font-size: 26px;
  line-height: 1;
}

.sm-icon-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: rgba(15, 20, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.sm-icon-link:hover {
  transform: translateY(-6px) scale(1.08);
  border-color: var(--sm-color);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px color-mix(in srgb, var(--sm-color) 35%, transparent);
  background: color-mix(in srgb, var(--sm-color) 12%, transparent);
}

.sm-icon-link:hover svg { transform: scale(1.1); }
.sm-icon-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sm-icon-link.facebook { --sm-color: #1877f2; }
.sm-icon-link.telegram { --sm-color: #26a5e4; }
.sm-icon-link.instagram { --sm-color: #e4405f; }
.sm-icon-link.youtube { --sm-color: #ff0000; }
.sm-icon-link.other { --sm-color: #9c27b0; }

.sm-hero-social {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-hero-social-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.sm-hero-social .sm-icons-row {
  justify-content: flex-start;
  gap: 12px;
}

.sm-hero-social .sm-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.sm-hero-social .sm-icon-link svg {
  width: 22px;
  height: 22px;
}

.sm-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sm-footer-social .sm-icon-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.sm-footer-social .sm-icon-link svg {
  width: 18px;
  height: 18px;
}

.sm-footer-social .sm-icon-link::after { display: none; }

/* ===== Admin Panel ===== */

.sm-admin-wrap { max-width: 920px; }

.sm-admin-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.sm-admin-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.sm-admin-card {
  background: var(--bg-card, #151c2c);
  border: 1px solid var(--border-color, #1e293b);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}

.sm-admin-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sm-platform-row {
  display: grid;
  grid-template-columns: 48px 120px 1fr 72px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color, #1e293b);
}

.sm-platform-row:last-child { border-bottom: none; }

.sm-platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-platform-icon.facebook { background: rgba(24, 119, 242, 0.15); color: #1877f2; }
.sm-platform-icon.telegram { background: rgba(38, 165, 228, 0.15); color: #26a5e4; }
.sm-platform-icon.instagram { background: rgba(228, 64, 95, 0.15); color: #e4405f; }
.sm-platform-icon.youtube { background: rgba(255, 0, 0, 0.12); color: #ff4444; }

.sm-platform-icon svg { width: 22px; height: 22px; fill: currentColor; }

.sm-platform-row label.name { font-weight: 600; font-size: 14px; }

.sm-platform-row input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input, #111827);
  border: 1px solid var(--border-input, #2a3546);
  color: var(--text-primary, #fff);
  border-radius: 8px;
  font-size: 13px;
}

.sm-platform-row input:focus {
  outline: none;
  border-color: var(--accent-blue, #0095ff);
}

.sm-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
}

.sm-toggle input { accent-color: #00c853; }

.sm-others-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.sm-other-row {
  display: grid;
  grid-template-columns: 1fr 1fr 72px auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.sm-other-row input {
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 13px;
}

.sm-btn-remove {
  padding: 8px 12px;
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: #ff5252;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sm-btn-add-other {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 149, 255, 0.1);
  border: 1px dashed rgba(0, 149, 255, 0.4);
  color: #4fc3f7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sm-admin-actions { margin-top: 8px; }

.sm-preview-box {
  margin-top: 24px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.sm-preview-box h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sm-empty-hint {
  font-size: 14px;
  color: var(--text-muted);
}

}

@media (max-width: 768px) {
  .sm-platform-row {
    grid-template-columns: 44px 1fr;
  }
  .sm-platform-row label.name { grid-column: 2; }
  .sm-platform-row input { grid-column: 2; }
  .sm-platform-row .sm-toggle { grid-column: 2; }
  .sm-other-row { grid-template-columns: 1fr; }
  .sm-welcome-title { font-size: 22px; }
  .sm-hero-social .sm-icons-row,
  .hero-content .sm-hero-social .sm-icons-row { justify-content: center; }
  .hero-content .sm-hero-social { text-align: center; }
}

/* ===== JOIN US MODAL SYSTEM (TRADING DASHBOARD) ===== */

.sm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.sm-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sm-modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  background: linear-gradient(145deg, #121927 0%, #0a0f19 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 149, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sm-modal-overlay.active .sm-modal-card {
  transform: scale(1) translateY(0);
}

.sm-modal-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(0, 200, 83, 0.22) 0%, rgba(0, 149, 255, 0.18) 45%, transparent 75%);
  pointer-events: none;
  filter: blur(35px);
}

.sm-modal-header {
  position: relative;
  padding: 26px 30px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
}

.sm-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #00e676;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.sm-badge-pulse {
  width: 6px;
  height: 6px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
  animation: smPulse 1.8s ease-in-out infinite;
}

@keyframes smPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.4); }
}

.sm-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.sm-modal-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.sm-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.sm-modal-close:hover {
  background: rgba(255, 82, 82, 0.2);
  border-color: rgba(255, 82, 82, 0.4);
  color: #ff5252;
  transform: rotate(90deg);
}

.sm-modal-body {
  position: relative;
  padding: 24px 30px;
  overflow-y: auto;
  flex: 1;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.sm-modal-body::-webkit-scrollbar {
  width: 6px;
}

.sm-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Individual Social Cards in Modal */
.sm-channel-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.sm-channel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at right center, var(--sm-glow-color, rgba(0, 149, 255, 0.15)), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sm-channel-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--sm-brand-color, #0095ff);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 24px var(--sm-glow-color, rgba(0, 149, 255, 0.25));
}

.sm-channel-card:hover::before {
  opacity: 1;
}

.sm-channel-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--sm-brand-bg, rgba(0, 149, 255, 0.15));
  color: var(--sm-brand-color, #0095ff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sm-channel-card:hover .sm-channel-icon-wrap {
  transform: scale(1.1) rotate(-4deg);
}

.sm-channel-icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.sm-channel-icon-wrap .sm-emoji {
  font-size: 26px;
  line-height: 1;
}

.sm-channel-info {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.sm-channel-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-channel-sub {
  font-size: 11px;
  color: #8c93a0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-channel-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sm-brand-color, #0095ff);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  z-index: 1;
}

.sm-channel-card:hover .sm-channel-action {
  background: var(--sm-brand-color, #0095ff);
  color: #ffffff;
  border-color: transparent;
  transform: translateX(2px);
}

/* Specific Platform Color Overrides for Cards */
.sm-channel-card.facebook {
  --sm-brand-color: #1877f2;
  --sm-brand-bg: rgba(24, 119, 242, 0.16);
  --sm-glow-color: rgba(24, 119, 242, 0.35);
}
.sm-channel-card.telegram {
  --sm-brand-color: #26a5e4;
  --sm-brand-bg: rgba(38, 165, 228, 0.16);
  --sm-glow-color: rgba(38, 165, 228, 0.35);
}
.sm-channel-card.instagram {
  --sm-brand-color: #e4405f;
  --sm-brand-bg: rgba(228, 64, 95, 0.16);
  --sm-glow-color: rgba(228, 64, 95, 0.35);
}
.sm-channel-card.youtube {
  --sm-brand-color: #ff3333;
  --sm-brand-bg: rgba(255, 51, 51, 0.16);
  --sm-glow-color: rgba(255, 51, 51, 0.35);
}
.sm-channel-card.discord {
  --sm-brand-color: #5865f2;
  --sm-brand-bg: rgba(88, 101, 242, 0.16);
  --sm-glow-color: rgba(88, 101, 242, 0.35);
}
.sm-channel-card.twitter, .sm-channel-card.x {
  --sm-brand-color: #38bdf8;
  --sm-brand-bg: rgba(56, 189, 248, 0.16);
  --sm-glow-color: rgba(56, 189, 248, 0.35);
}
.sm-channel-card.whatsapp {
  --sm-brand-color: #25d366;
  --sm-brand-bg: rgba(37, 211, 102, 0.16);
  --sm-glow-color: rgba(37, 211, 102, 0.35);
}
.sm-channel-card.other {
  --sm-brand-color: #00e676;
  --sm-brand-bg: rgba(0, 230, 118, 0.16);
  --sm-glow-color: rgba(0, 230, 118, 0.35);
}

/* Empty State Card */
.sm-empty-card {
  grid-column: 1 / -1;
  padding: 40px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.sm-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.sm-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.sm-empty-desc {
  font-size: 13px;
  color: #8c93a0;
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.5;
}

.sm-modal-footer {
  position: relative;
  padding: 16px 30px;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.sm-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.sm-note-icon {
  font-size: 14px;
}

@media (max-width: 600px) {
  .sm-modal-card {
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    margin-top: auto;
  }
  .sm-modal-header {
    padding: 20px 20px 14px;
  }
  .sm-modal-body {
    padding: 18px 20px;
    grid-template-columns: 1fr;
  }
  .sm-modal-footer {
    padding: 14px 20px;
  }
}

