* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 30% 20%, #1a3a55, #0a1622);
  background-attachment: fixed;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #f0f7ff;
}

/* MAIN GLASS CARD — fully responsive */
.glass-home {
  max-width: 1100px;
  width: 100%;
  background: rgba(12, 28, 40, 0.28);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(90, 170, 255, 0.1) inset;
  padding: 2rem 1.8rem;
  transition: all 0.2s;
}

@media (min-width: 640px) {
  .glass-home {
    border-radius: 48px;
    padding: 2.8rem 2.5rem;
  }
}

/* ---------- TOP SECTION: CHAPSTICK + STEAM ID + ONLINE ---------- */
.profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .profile-header {
    gap: 2.5rem;
    margin-bottom: 3.2rem;
  }
}

.avatar-frame {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 28px;
  background: rgba(15, 30, 45, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 28px -8px #00000080, 0 0 0 1px rgba(210, 230, 255, 0.15) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 480px) {
  .avatar-frame {
    width: 120px;
    height: 120px;
    border-radius: 32px;
  }
}

@media (min-width: 768px) {
  .avatar-frame {
    width: 140px;
    height: 140px;
    border-radius: 36px;
  }
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1e405e, #0b1b28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(210, 235, 255, 0.8);
  text-transform: uppercase;
}

.identity {
  flex: 1;
  min-width: 200px;
}

.identity h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: white;
  text-shadow: 0 6px 16px rgba(0,0,0,0.4);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .identity h1 {
    font-size: 2.8rem;
  }
}

@media (min-width: 768px) {
  .identity h1 {
    font-size: 3.4rem;
    gap: 15px;
  }
}

.steam-badge {
  background: rgba(30, 55, 80, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.2rem 1rem;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem;
  font-weight: 500;
  color: #c7e0ff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .steam-badge {
    font-size: 0.95rem;
    padding: 0.25rem 1.3rem;
  }
}

.steam-badge i {
  font-size: 0.9rem;
  color: #8bbfff;
}

.profile-url {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .profile-url {
    font-size: 0.95rem;
    gap: 8px;
  }
}

.profile-url i {
  font-size: 0.8rem;
  color: #9bbdf0;
}

.profile-url .url-link {
  color: #d3e5ff;
  text-decoration: none;
  font-weight: 400;
  word-break: break-all;
  border-bottom: 1px dotted rgba(200, 220, 255, 0.4);
  transition: border-color 0.15s, color 0.15s;
}

.profile-url .url-link:hover {
  color: #ffffff;
  border-bottom-color: #8bbfff;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: #4cd964;
  box-shadow: 0 0 14px #4cd964cc;
  border: 1.5px solid rgba(255,255,255,0.5);
}

@media (min-width: 480px) {
  .status-dot {
    width: 12px;
    height: 12px;
  }
}

.status-text {
  font-weight: 500;
  color: #e3f0ff;
  letter-spacing: 0.2px;
  font-size: 0.9rem;
}

@media (min-width: 480px) {
  .status-text {
    font-size: 1rem;
  }
}

/* ---------- GRID SECTION ---------- */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ecf5ff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 0.8rem;
}

@media (min-width: 480px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }
}

.section-title i {
  color: #8ab3ff;
  font-size: 1.3rem;
}

/* GRID — fully responsive */
.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 520px) {
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 900px) {
  .link-grid {
    gap: 1.8rem;
  }
}

/* glass cards for links */
.grid-card {
  background: rgba(20, 40, 58, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 26px;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 22px -8px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.grid-card:hover {
  background: rgba(35, 65, 95, 0.45);
  border-color: rgba(120, 190, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 20px 28px -12px #00000060;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #aac9ff;
}

.grid-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: white;
}

.grid-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
  color: #d0e2ff;
}

.card-badge {
  margin-top: 1rem;
  align-self: flex-start;
  background: rgba(80, 140, 200, 0.25);
  border-radius: 40px;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid rgba(200, 225, 255, 0.25);
  color: #c9e0ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-card {
  background: rgba(45, 90, 130, 0.35);
  border: 1px solid rgba(110, 190, 255, 0.2);
}

/* ---------- INVENTORY SHOWCASE CAROUSEL ---------- */
.inventory-section {
  margin-top: 2.5rem;
}

.inventory-section .section-title {
  margin-bottom: 1rem;
}

.inventory-view-link {
  margin-left: auto;
  background: rgba(80, 140, 200, 0.25);
  border-radius: 40px;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid rgba(200, 225, 255, 0.25);
  color: #c9e0ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

@media (min-width: 480px) {
  .inventory-view-link {
    font-size: 0.8rem;
    padding: 0.3rem 1.2rem;
  }
}

.inventory-view-link:hover {
  background: rgba(100, 160, 220, 0.35);
  border-color: rgba(160, 200, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.inventory-view-link i {
  font-size: 0.7rem;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(20, 40, 58, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.5);
  padding: 0.5rem;
}

@media (min-width: 480px) {
  .carousel-container {
    border-radius: 32px;
    padding: 0.75rem;
  }
}

/* Carousel Track - Scrollable Area */
.carousel-track {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  cursor: grab;
  scroll-snap-type: x mandatory;
  flex: 1;
  padding: 0.5rem 0;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Slides Container */
.carousel-slides {
  display: flex;
  gap: 10px;
  padding: 0 8px;
}

@media (min-width: 480px) {
  .carousel-slides {
    gap: 12px;
  }
}

/* Individual Slide - MADE SMALLER */
.carousel-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 30, 45, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, border-color 0.2s;
}

@media (min-width: 480px) {
  .carousel-slide {
    width: 140px;
    border-radius: 14px;
  }
}

@media (min-width: 768px) {
  .carousel-slide {
    width: 160px;
  }
}

.carousel-slide:hover {
  transform: scale(1.02);
  border-color: rgba(140, 190, 255, 0.3);
}

.carousel-slide img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

@media (min-width: 480px) {
  .carousel-slide img {
    height: 100px;
  }
}

@media (min-width: 768px) {
  .carousel-slide img {
    height: 110px;
  }
}

/* Navigation Arrows */
.carousel-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(30, 55, 80, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c7e0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  margin: 0 4px;
  z-index: 2;
}

@media (min-width: 480px) {
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin: 0 6px;
  }
}

.carousel-arrow:hover {
  background: rgba(60, 100, 140, 0.7);
  border-color: rgba(160, 200, 255, 0.4);
  color: #ffffff;
  transform: scale(1.05);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

/* Dot Indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(200, 220, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

@media (min-width: 480px) {
  .carousel-dot {
    width: 8px;
    height: 8px;
  }
}

.carousel-dot:hover {
  background: rgba(140, 190, 255, 0.5);
}

.carousel-dot.active {
  width: 20px;
  border-radius: 10px;
  background: #8ab3ff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* footer note */
.footer-note {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.7;
  font-size: 0.8rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
  padding-top: 1.2rem;
}

@media (min-width: 480px) {
  .footer-note {
    font-size: 0.85rem;
  }
}

.footer-note i {
  margin-right: 5px;
}

.footer-made-with {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-rose-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

@media (min-width: 480px) {
  .footer-rose-icon {
    width: 24px;
    height: 24px;
  }
}

.footer-steam-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  border-bottom: 1px dotted rgba(200,220,255,0.3);
  transition: border-color 0.15s, color 0.15s;
}

.footer-steam-link:hover {
  color: #ffffff;
  border-bottom-color: #8bbfff;
}

/* touch friendly */
button, a {
  -webkit-tap-highlight-color: transparent;
}