:root {
  --purple-dark: #3b1a7a;
  --purple-light: #6d28d9;
  --purple-accent: #8b5cf6;
  --bg-light: #f5f3ff;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --card-bg: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(135deg, #e0e7ff 0%, #f5f3ff 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 40px;
  min-height: 100vh;
  overflow-y: auto;
}

.phone-frame {
  width: 100%;
  max-width: 400px;
  background: transparent;
  border-radius: 32px;
  overflow: visible;
  position: relative;
  margin: 0 auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.2));
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-light) 100%);
  padding: 40px 20px 80px;
  position: relative;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  min-height: 180px;
}

.header-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo {
  color: white;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: '⚡';
  font-size: 20px;
}

.menu-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

/* Main Content */
.main-content {
  background: var(--bg-light);
  padding: 0 20px 24px;
  min-height: 500px;
  border-radius: 0 0 32px 32px;
}

/* Profile Section */
.profile-section {
  text-align: center;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.avatar-wrapper {
  display: inline-block;
  margin-bottom: 16px;
}

.avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.profile-bio {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 20px;
  padding: 0 10px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.social-icon-purple {
  background: linear-gradient(135deg, var(--purple-accent) 0%, var(--purple-light) 100%);
}

/* Link Cards */
.link-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.link-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.link-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
}

.link-thumbnail-instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

.link-thumbnail-telegram {
  background: #26A5E4;
}

.link-thumbnail-image {
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.link-thumbnail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-info {
  flex: 1;
}

.link-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.link-subtitle {
  font-size: 13px;
  color: var(--text-gray);
}

.link-arrow {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1f2937;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.link-card:hover .link-arrow {
  background: #374151;
  transform: translateX(2px);
}

.link-badge {
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--purple-accent);
  color: white;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0 8px;
}

.footer-text {
  font-size: 12px;
  color: var(--text-gray);
  opacity: 0.7;
  margin-bottom: 4px;
}

.footer-link {
  color: var(--purple-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--purple-light);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 420px) {
  .phone-frame {
    border-radius: 0;
    max-width: 100%;
    filter: none;
  }
  
  body {
    padding: 0;
    align-items: flex-start;
  }
  
  .header {
    border-radius: 0;
  }
  
  .main-content {
    border-radius: 0;
  }
}

@media (max-width: 360px) {
  .profile-bio {
    font-size: 13px;
  }
  
  .link-title {
    font-size: 14px;
  }
  
  .link-thumbnail {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}
