/* ========================================================
   SHINJIN STORE - GIAO DIỆN BIO HOÀN MỸ (VÁ LỖI ICON)
======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&display=swap');

/* 1. CHỈ ÁP DỤNG FONT OSWALD CHO CHỮ (BẢO VỆ THẺ ICON) */
.profile-name,
.btn-custom span,
.glass-panel-header p,
.glass-panel-header h1,
.glass-panel-header h2,
.glass-panel-header h3 {
      font-family: 'Oswald', sans-serif !important;
}

/* 2. ẢNH COVER */
.cover-image {
      width: 100%;
      height: auto;
      border-radius: 16px;
      object-fit: cover;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      margin: 0 0 16px 0 !important;
      display: block;
}

/* 3. KHỐI KÍNH MỜ AVATAR */
.glass-panel-header {
      background-color: rgba(255, 255, 255, 0.25) !important;
      border: 1px solid rgba(255, 255, 255, 0.3) !important;
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      border-radius: 25px;
      margin: 0 0 16px 0 !important;

      height: auto !important;
      min-height: 0 !important;

      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 16px 15px 16px 15px !important;
      gap: 12px;
}

.glass-panel-header>* {
      margin: 0 !important;
}

.glass-panel-header .useravatar {
      border: 2px solid rgba(255, 255, 255, 0.6);
      width: 90px !important;
      height: 90px !important;
}

.profile-name {
      font-size: 1.4rem !important;
      font-weight: 700 !important;
      color: #ffffff !important;
      padding: 0 !important;
      line-height: 1.2 !important;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      text-align: center;
      width: 100%;
      word-break: break-word;
}

.verified-badge {
      margin-left: 6px;
}

.glass-panel-header>div:empty,
.glass-panel-header>p:empty,
#social:not(:has(a)) {
      display: none !important;
}

/* 4. KHỐI NÚT BẤM (BUTTONS) */
.btn-custom {
      background-color: rgba(255, 255, 255, 0.6) !important;
      border: 1px solid rgba(255, 255, 255, 0.8) !important;
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      border-radius: 25px !important;
      padding: 16px !important;
      margin: 0 0 16px 0 !important;
      transition: all 0.3s ease;

      /* Thiết lập mỏ neo để ép Icon sang trái, Chữ ra giữa */
      position: relative !important;
      display: flex;
      align-items: center;
      justify-content: center;
}

.btn-custom span {
      color: #000000 !important;
      font-size: 16px !important;
      font-weight: 500 !important;
      text-align: center;
}

.btn-custom:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================================
   5. GIAO DIỆN ICON NÚT BẤM CHÍNH (NÚT THON GỌN, ICON TO)
======================================================== */
.btn-custom {
      background-color: rgba(255, 255, 255, 0.6) !important;
      border: 1px solid rgba(255, 255, 255, 0.8) !important;
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      border-radius: 25px !important;

      /* Trả lại chiều cao gốc thon gọn của nút (Trên/dưới = 16px) */
      padding: 16px !important;
      margin: 0 0 16px 0 !important;
      transition: all 0.3s ease;

      position: relative !important;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 56px !important;
}

.btn-custom span {
      color: #000000 !important;
      font-size: 16px !important;
      font-weight: 500 !important;
}

/* Icon to nhưng được thả nổi (absolute) nên không làm phình nút */
.btn-custom i,
.btn-custom svg,
.btn-custom img {
      position: absolute !important;
      left: 16px !important;
      /* Cạnh trái cách ĐÚNG 16px (Bằng với lề trên/dưới) */
      top: 50% !important;
      transform: translateY(-50%) !important;

      color: rgb(7, 123, 216) !important;
      font-size: 28px !important;
      /* Kích thước to rõ ràng */
      line-height: 1 !important;
      width: 28px !important;
      height: 28px !important;

      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      margin: 0 !important;
}


/* ========================================================
   6. KHÔI PHỤC POPUP CHIA SẺ (GIAO DIỆN KÍNH MỜ SANG TRỌNG)
======================================================== */

#sharemodal.show {
      display: block !important;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      z-index: 999999 !important;
      background-color: rgba(0, 0, 0, 0.7) !important;
      overflow-y: auto !important;
}

.modal-backdrop {
      display: none !important;
}

#sharemodal .modal-dialog {
      max-width: 420px !important;
      width: 90% !important;
      margin: 40px auto !important;
}

/* KÍNH MỜ SIÊU TRONG SUỐT (Độ trong suốt 40%, Blur 40px) */
#sharemodal .modal-content {
      background-color: rgba(255, 255, 255, 0.35) !important;
      backdrop-filter: blur(70px) !important;
      -webkit-backdrop-filter: blur(40px) !important;
      border-radius: 28px !important;
      border: 1px solid rgba(255, 255, 255, 0.5) !important;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
      padding: 24px !important;
      position: relative !important;
}

/* --- ẨN TUYỆT ĐỐI CHỮ SHARE --- */
#sharemodal .modal-header .modal-title,
#sharemodal .modal-header h6 {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
}

/* Nút X: Căn góc trên bên phải chuẩn xác */
#sharemodal .btn-close {
      position: absolute !important;
      top: 15px !important;
      right: 15px !important;
      opacity: 0.6 !important;
}

/* KHỐI LINK: Dịch nút Copy sang phải thêm một chút và tăng chiều cao */
#sharemodal .form-group {
      background-color: rgba(255, 255, 255, 0.5) !important;
      border-radius: 14px !important;
      border: 1px solid rgba(255, 255, 255, 0.3) !important;
      padding: 8px 14px !important;
      /* Giảm padding để tạo không gian cho nút Copy */
      margin-bottom: 20px !important;
      position: relative !important;
      display: flex !important;
      align-items: center !important;
}

/* Nút Copy: Đổi màu đồng nhất, tăng kích thước, dịch sang phải */
#sharemodal .btn-secondary {
      background-color: rgba(255, 255, 255, 0.6) !important;
      /* Màu đồng nhất với các nút khác */
      border: 1px solid rgba(255, 255, 255, 0.4) !important;
      color: #000000 !important;
      padding: 11px 24px !important;
      font-size: 15px !important;
      font-family: 'Oswald', sans-serif !important;
      border-radius: 10px !important;
      margin-left: 12px !important;
      /* Dịch sang phải một chút */
      border: none !important;
      flex-shrink: 0;
      transition: all 0.2s ease;
}

#sharemodal .btn-secondary:hover {
      background-color: rgba(255, 255, 255, 0.8) !important;
}

/* 2 Nút cuối cùng: Nền trắng đục, KHÔNG ĐEN QUÁ */
#sharemodal .mt-3 a {
      background-color: rgba(255, 255, 255, 0.5) !important;
      /* Nền trong suốt/trắng đục */
      border: 1px solid rgba(255, 255, 255, 0.3) !important;
      color: #000000 !important;
      font-weight: 500 !important;
}

#sharemodal .mt-3 a:hover {
      background-color: rgba(255, 255, 255, 0.8) !important;
}