@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #0b0d17;
  --bg-card: rgba(15, 17, 30, 0.85);
  --bg-input: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;
  --accent-orange: #fb923c;
  --accent-cyan: #06b6d4;
  --accent-amber: #fbbf24;
  --gradient-primary: linear-gradient(135deg, #f43f5e, #a855f7);
  --gradient-cyan: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-button: linear-gradient(135deg, #f43f5e, #c026d3, #a855f7);
  --gradient-glow: 0 0 30px rgba(244, 63, 94, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
}

/* 1. Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Fredoka', system-ui, sans-serif;
  scroll-behavior: smooth;
  min-height: 100vh;
  opacity: 1;
}

/* 2. Ambient background canvas */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

/* 3. .wrap */
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 4. Profile/Hero section */
.hero-card {
  background: rgba(20, 25, 45, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  padding: 40px 20px 30px;
  margin-top: 40px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.av-wrap {
  position: relative;
  width: 100px;
  margin: 0 auto;
}

.av-ring {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(#f43f5e, #a855f7, #06b6d4, #f43f5e);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.av-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(25px);
  background: var(--gradient-primary);
  opacity: 0.5;
  z-index: -1;
  top: 0;
  left: 0;
}

.av-inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.av-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.av-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border-radius: 50%;
  border: 3px solid var(--bg-deep);
  z-index: 2;
  animation: pulse 2s infinite;
}

.pname {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 16px;
  text-align: center;
}

.pquote {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
  margin-top: 8px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  margin-right: 6px;
  display: inline-block;
}

.tag-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.tag-purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* 5. .section-label */
.section-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 30px 0 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 6. Link buttons */
.links {
  display: flex;
  flex-direction: column;
}

.dbtn {
  background: var(--bg-card);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
}

.dbtn:hover {
  border-color: rgba(244, 63, 94, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--gradient-glow);
}

.dbtn-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.d-ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.d-ic svg {
  width: 20px;
  height: auto;
}

.dlabel {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.lsub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: block;
}

.dbadge {
  background: var(--gradient-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}

.lbtn {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  justify-content: space-between;
  cursor: pointer;
}

.lbtn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.lbtn:active {
  transform: scale(0.98);
}

.lic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

/* Facebook color */
.fb-ic {
  background: rgba(24, 119, 242, 0.15);
  color: #1877F2;
}
.lbtn:hover:has(.fb-ic) {
  border-color: rgba(24, 119, 242, 0.6);
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.2), inset 0 0 10px rgba(24, 119, 242, 0.1);
}

/* Instagram Color */
.ig-ic {
  background: rgba(225, 48, 108, 0.15);
  color: #E1306C;
}
.lbtn:hover:has(.ig-ic) {
  border-color: rgba(225, 48, 108, 0.6);
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.2), inset 0 0 10px rgba(225, 48, 108, 0.1);
}

/* TikTok Color */
.tk-ic {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.lbtn:hover:has(.tk-ic) {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Zalo Color */
.zl-ic {
  background: rgba(0, 104, 255, 0.15);
  color: #0068FF;
}
.lbtn:hover:has(.zl-ic) {
  border-color: rgba(0, 104, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 104, 255, 0.2), inset 0 0 10px rgba(0, 104, 255, 0.1);
}

.l-sad-icon {
  font-size: 1.2rem;
  margin-left: auto;
  opacity: 0.6;
}

.llabel {
  font-weight: 700;
  font-size: 1rem;
}

.larr {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.linfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 7. Footer */
footer {
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding-bottom: 20px;
}

footer .heart {
  color: var(--accent-rose);
  display: inline-block;
}

@keyframes pulseHeart {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}
.pulse {
  animation: pulseHeart 1.5s infinite;
}

/* 8. Donate page body (.donate-page) */
.donate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.donate-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donate-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-rose);
}

.donate-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donate-header-info {
  display: flex;
  flex-direction: column;
}

.donate-header-name {
  font-weight: 700;
  font-size: 1rem;
}

.donate-header-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.donate-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-auth-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.header-auth-btn:hover {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}

.header-home-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-home-btn svg {
  width: 20px;
  height: auto;
}

.header-home-btn:hover {
  background: var(--bg-card);
}

/* 9. Donate content */
.donate-content {
  max-width: 560px;
  margin: 30px auto;
  padding: 0 20px;
}

/* 10. Donate form card */
.donate-card {
  background: rgba(20, 25, 45, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.donate-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.fg {
  margin-bottom: 20px;
}

.fg-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.minput {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.3s;
}

.minput:focus {
  border-color: rgba(244, 63, 94, 0.5);
}

.minput::placeholder {
  color: var(--text-muted);
}

.amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amount-input-wrap {
  flex: 1;
}

.preset-btns {
  display: flex;
  gap: 6px;
}

.preset-btn {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.preset-btn:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

.preset-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

textarea.minput {
  resize: none;
  min-height: 100px;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.donate-notice {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.donate-notice strong {
  color: var(--accent-rose);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 4px;
}

.donate-notice span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 11. Buttons */
.pbtn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--gradient-button);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.pbtn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3);
}

.sbtn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sbtn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* 12. QR Section */
.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.qr-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.qr-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.qr-bg {
  background: white;
  padding: 10px;
  border-radius: 12px;
  margin: 20px auto;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-img {
  max-width: 100%;
  height: auto;
}

.countdown-wrap {
  margin-top: 16px;
}

#countdown {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-amber);
}

/* 13. Auth Modal */
#authModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.auth-card {
  background: #111427;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 32px;
  width: 90%;
  max-width: 420px;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.auth-close:hover {
  color: var(--text-primary);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.auth-tab.active {
  background: var(--gradient-button);
  border: none;
  color: white;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.3s;
}

.auth-field input:focus {
  border-color: rgba(244, 63, 94, 0.5);
}

.auth-field input::placeholder {
  color: var(--text-muted);
}

.auth-forgot {
  color: var(--accent-rose);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  margin-bottom: 20px;
  display: block;
  transition: text-decoration 0.3s ease;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--gradient-button);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  margin-top: 8px;
}

.auth-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3);
}

/* 14. Admin panel (misc) */
.admin-donate-card {
  border-color: var(--accent-rose);
}

/* 15. Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 16. Responsive */
@media (max-width: 600px) {
  .wrap {
    padding: 30px 15px;
  }
  
  .donate-content {
    margin: 20px auto;
    padding: 0 15px;
  }
  
  .donate-card, .qr-card {
    padding: 20px;
  }
  
  .pname {
    font-size: 1.5rem;
  }
  
  .dlabel {
    font-size: 0.95rem;
  }
  
  .amount-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .preset-btns {
    justify-content: space-between;
  }
}
.lbtn::before, .dbtn::before, .pbtn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}

.lbtn:hover::before, .dbtn:hover::before, .pbtn:hover::before {
  opacity: 1;
}

.fb-ic { background: #1877F2 !important; color: #fff !important; }
.ig-ic { background: radial-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; color: #fff !important; }
.tk-ic { background: #000 !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.zl-ic { background: #0068FF !important; color: #fff !important; }
.linfo {
  flex-grow: 1 !important;
  margin-left: 15px !important;
  text-align: left !important;
}
.llabel {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ---- Fix icon image sizes inside .lic ---- */
.lic {
  overflow: hidden;
}
.lic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Override for SVG icons that need padding */
.lic.icon-pad img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Fix avatar sizing */
.av-inner, .av-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center top;
}

/* Zalo override - no extra padding */
.lic.zl-wrap {
  padding: 0;
  overflow: hidden;
}

/* ======= AVATAR FULL FIX ======= */
.av-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
}
.av-ring {
  width: 110px !important;
  height: 110px !important;
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  background: conic-gradient(#f43f5e, #a855f7, #06b6d4, #f43f5e);
  padding: 3px;
  z-index: 2;
}
.av-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-deep);
}
.av-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block;
  border-radius: 50%;
}
.av-glow {
  width: 110px !important;
  height: 110px !important;
}
.av-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid var(--bg-deep);
  z-index: 3;
}


/* ======= AVATAR FINAL FIX ======= */
.av-wrap {
  position: relative !important;
  width: 110px !important;
  height: 110px !important;
  margin: 0 auto 16px !important;
}
.av-ring {
  position: absolute !important;
  inset: 0 !important;
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  background: conic-gradient(#f43f5e, #a855f7, #06b6d4, #f43f5e) !important;
  padding: 0 !important;
  z-index: 1 !important;
  -webkit-mask: none !important;
  mask: none !important;
}
.av-inner {
  position: absolute !important;
  inset: 3px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  z-index: 2 !important;
  background: var(--bg-deep) !important;
}
.av-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  display: block !important;
}
.av-glow {
  position: absolute !important;
  inset: 0 !important;
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  filter: blur(20px) !important;
  background: var(--gradient-primary) !important;
  opacity: 0.4 !important;
  z-index: 0 !important;
}
.av-dot {
  position: absolute !important;
  bottom: 5px !important;
  right: 5px !important;
  width: 14px !important;
  height: 14px !important;
  background: #22c55e !important;
  border-radius: 50% !important;
  border: 3px solid var(--bg-deep) !important;
  z-index: 3 !important;
}

/* ===== GALAXY + SPACING FIXES ===== */
/* Nền trong suốt để thấy canvas galaxy */
body {
  background-color: transparent !important;
}
#bg {
  opacity: 1 !important;
}

/* Tên Wind sát với avatar hơn */
.pname {
  margin-top: 8px !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
}

/* Hero card trong suốt hơn để thấy galaxy qua */
.hero-card {
  background: rgba(10, 14, 35, 0.55) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* Các nút link cũng trong suốt hơn */
.lbtn, .dbtn {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.07) !important;
}

/* Galaxy canvas cho trang donate */
#bg-donate {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.donate-page {
  background-color: transparent !important;
}

/* ===== SOCIAL ICON CHUẨN HÓA ===== */
/* Class này thay thế .lic cho 4 nút MXH, đảm bảo tất cả CÙNG kích thước + bo tròn */
.soc-ic {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

/* SVG icon bên trong .soc-ic (FB, TikTok, IG) */
.soc-ic img[src$=".svg"] {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
}

/* Ảnh thật bên trong .soc-ic (Zalo) */
.soc-ic img[src$=".jpg"],
.soc-ic img[src$=".png"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* TikTok SVG không invert (đã là trắng) */
.soc-ic img[src*="tiktok"] {
  filter: none !important;
}

/* ===== CÂN ĐỐI LẠI TOÀN BỘ ICON ===== */
/* Tăng kích thước khung lên chút xíu cho chuẩn */
.soc-ic, .dbtn .lic, .d-ic {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

/* Kích thước chung cho các icon SVG */
.soc-ic img[src$=".svg"] {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
}

/* Fix TikTok bị bé: Phóng to riêng icon TikTok lên 28px */
.soc-ic img[src*="tiktok"] {
  width: 28px !important;
  height: 28px !important;
  filter: none !important;
}

/* Fix Facebook chữ f hơi nhỏ */
.soc-ic img[src*="facebook"] {
  width: 28px !important;
  height: 28px !important;
}

/* Fix Instagram */
.soc-ic img[src*="instagram"] {
  width: 26px !important;
  height: 26px !important;
}

/* Fix Zalo: Nền trắng, thu nhỏ ảnh lại 1 xíu (padding) để không bị quá to */
.soc-ic.zalo-fix {
  background: #fff !important;
  padding: 2px !important;
}
.soc-ic.zalo-fix img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* ===== CẬP NHẬT GIAO DIỆN QUẢN LÝ TÀI KHOẢN ===== */
.user-menu-wrap {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 15px 5px 5px;
  border-radius: 30px;
  cursor: pointer;
  color: white;
  font-family: inherit;
  font-weight: 700;
  transition: all 0.3s ease;
}

.user-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.5);
}

.user-btn img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 150px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 100;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 10px 15px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

/* Bảng Lịch sử Donate */
.history-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 15px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.history-table th {
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  padding: 12px 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.history-table td {
  padding: 12px 15px;
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.history-table tr:last-child td {
  border-bottom: none;
}
