/*
Theme Name: My Custom Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A simple, modern WordPress theme with clean design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
Tags: blog, custom-menu, featured-images, responsive
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #ffffff;
  color: #333;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

/* Desktop: Layout 3 cột - Logo | Menu (giữa) | Tài khoản */
.header-row-1 {
  grid-column: 1;
}

.header-row-2 {
  grid-column: 2;
}

.header-row-3 {
  grid-column: 3;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

.site-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: #764ba2;
  text-decoration: none;
}

/* Rainbow Text Animation */
.rainbow-text {
  background: linear-gradient(90deg,
      #ff0000 0%,
      #ff7f00 14.28%,
      #ffff00 28.56%,
      #00ff00 42.84%,
      #0000ff 57.12%,
      #4b0082 71.4%,
      #9400d3 85.68%,
      #ff0000 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flow 3s linear infinite;
  display: inline-block;
  font-weight: 700;
}

/* Green Flow Text Animation */
.green-flow-text {
  background: linear-gradient(90deg,
      #008000 0%,
      #00FF00 25%,
      #ADFF2F 50%,
      #00FF00 75%,
      #008000 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flow 3s linear infinite;
  display: inline-block;
  font-weight: 700;
}

/* Rainbow text trong nút navigation */
.nav-btn .rainbow-text {
  font-weight: 500;
  font-size: inherit;
}

@keyframes rainbow-flow {
  0% {
    background-position: 200% 0%;
  }

  100% {
    background-position: -200% 0%;
  }
}

.site-description {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.main-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.nav-btn-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.nav-btn-blue:hover,
.nav-btn-blue:active,
.nav-btn-blue.active {
  background: #ef4444 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.nav-btn-purple {
  background: #FFCC00;
  color: #333333;
  box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
  font-weight: 600;
}

.nav-btn-purple:hover,
.nav-btn-purple:active,
.nav-btn-purple.active {
  background: #ef4444 !important;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.account-icon {
  width: 16px;
  height: 16px;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.account-balance-label {
  font-size: 0.85rem;
  opacity: 0.95;
}

.account-balance-value {
  font-weight: 700;
}

.account-balance-value.rainbow-text {
  font-size: 1rem;
}

.nav-btn-green {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.nav-btn-green:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.account-btn {
  white-space: nowrap;
}

/* Main content */
.site-main {
  background: #fff;
  min-height: 60vh;
  padding: 3rem 0;
  margin-top: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.post {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.post:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.post-title a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s;
}

.post-title a:hover {
  color: #764ba2;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-content {
  line-height: 1.8;
  color: #555;
}

.post-content p {
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

/* Hero section (trang chủ) */
.hero-section {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 30%, #a18cd1 70%, #fbc2eb 100%);
  padding: 4rem 0 5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  max-width: 520px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  font-size: 3.1rem;
}

.hero-subtitle {
  color: #fff;
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: #fff;
  color: #ff4f81;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dots .dot.active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

.hero-image {
  flex: 1;
  min-height: 260px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

/* Category section */
.category-section {
  background: #f5f5f5;
  padding: 3rem 0 4rem;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 2.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.category-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.category-card p {
  font-size: 0.9rem;
  color: #666;
}

.blog-preview {
  padding-bottom: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-account {
    flex-direction: column;
    gap: 0.75rem;
  }

  .account-info {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .site-header .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    gap: 0.75rem;
    align-items: center;
  }

  /* Mobile: Dòng 1: Logo + Tên web | Tên tài khoản + Số dư */
  .header-row-1 {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
    grid-column: unset !important;
    order: 1;
    min-width: 0;
  }

  .header-row-3 {
    display: flex !important;
    flex-direction: row;
    gap: 0.4rem;
    align-items: center;
    grid-column: unset !important;
    order: 1;
    width: auto;
    flex-shrink: 0;
  }

  .site-branding {
    flex: 1;
    justify-content: flex-start;
    min-width: 0;
    gap: 0.5rem;
  }

  .site-logo img {
    max-height: 35px;
    width: auto;
  }

  .site-text {
    flex: 1;
    min-width: 0;
  }

  .site-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-account {
    flex-shrink: 0;
    flex-direction: row;
    gap: 0.4rem;
    align-items: center;
  }

  .account-btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
  }

  .account-balance-label {
    font-size: 0.65rem;
  }

  .account-balance-value {
    font-size: 0.7rem;
  }

  /* Dòng 2: Nạp tiền - Thuê Bot - Liên hệ */
  .header-row-2 {
    width: 100%;
    order: 2;
    grid-column: unset !important;
    flex-basis: 100%;
  }

  .header-row-2 ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.4rem;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .header-row-2 li {
    flex: 1;
    min-width: 0;
  }

  .header-row-2 .nav-btn {
    font-size: 0.85rem !important;
    /* Reduced 30% from 1.5rem */
    padding: 8px 4px !important;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 800 !important;
    line-height: 1;
  }

  .post-title {
    font-size: 1.6rem;
  }

  .hero-inner {
    flex-direction: column;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Auth pages (login/register) */
body.auth-page-body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

body.auth-page-body html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.auth-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  margin: 0;
  padding: 0;
  z-index: 1;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 165, 0, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 192, 203, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.3) 0%, transparent 60%),
    linear-gradient(135deg,
      rgba(102, 126, 234, 0.8) 0%,
      rgba(118, 75, 162, 0.7) 25%,
      rgba(240, 147, 251, 0.6) 50%,
      rgba(245, 87, 108, 0.7) 75%,
      rgba(79, 172, 254, 0.8) 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  z-index: -2;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Hiệu ứng bông tuyết rơi */
.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.7) 1.5px, transparent 1.5px),
    radial-gradient(circle at 55% 30%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px),
    radial-gradient(circle at 65% 80%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.7) 1.5px, transparent 1.5px);
  background-size: 200px 200px, 150px 150px, 180px 180px, 160px 160px, 190px 190px, 170px 170px, 200px 200px, 140px 140px;
  background-position:
    10% 15%, 30% 40%, 50% 25%, 70% 55%, 80% 20%, 20% 65%, 60% 75%, 40% 10%;
  animation: snowFloat 20s ease-in-out infinite;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

@keyframes snowFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.8;
  }

  25% {
    transform: translateY(20px) translateX(10px);
    opacity: 0.9;
  }

  50% {
    transform: translateY(40px) translateX(-15px);
    opacity: 0.7;
  }

  75% {
    transform: translateY(60px) translateX(5px);
    opacity: 0.85;
  }

  100% {
    transform: translateY(80px) translateX(0);
    opacity: 0.8;
  }
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(102, 126, 234, 0.2), transparent 50%),
    radial-gradient(circle at bottom right, rgba(245, 87, 108, 0.2), transparent 50%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  z-index: -1;
}

.snowflakes-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  user-select: none;
  -webkit-user-select: none;
  color: #ffffff;
  font-size: var(--size, 1em);
  line-height: 1;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.5);
  animation: snowfall var(--duration, 10s) linear infinite;
  will-change: transform, opacity;
  opacity: var(--opacity, 0.8);
  top: -10px;
  left: var(--left, 0%);
}

@keyframes snowfall {
  0% {
    transform: translateY(-10px) translateX(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: var(--opacity, 0.8);
  }

  25% {
    transform: translateY(calc(25vh)) translateX(var(--drift-amount, 20px)) rotate(90deg);
  }

  50% {
    transform: translateY(calc(50vh)) translateX(0) rotate(180deg);
  }

  75% {
    transform: translateY(calc(75vh)) translateX(calc(var(--drift-amount, 20px) * -1)) rotate(270deg);
  }

  95% {
    opacity: var(--opacity, 0.8);
  }

  100% {
    transform: translateY(calc(100vh + 10px)) translateX(var(--drift-x, 0px)) rotate(360deg);
    opacity: 0;
  }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2.8rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.auth-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  transform: rotate(0deg);
}

.auth-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.15) rotate(180deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-close-btn:active {
  transform: scale(0.95) rotate(180deg);
}

.auth-close-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
  filter: hue-rotate(0deg);
  animation: rainbow-hue 3s linear infinite;
}

.auth-close-btn svg path {
  stroke: #ff0000;
  stroke-width: 2;
  transition: stroke-width 0.3s ease;
}

.auth-close-btn:hover svg path {
  stroke-width: 2.5;
}

@keyframes rainbow-hue {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #1e293b;
}

.auth-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #475569;
  margin: 0;
}

.auth-error {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.auth-error-icon {
  flex-shrink: 0;
  color: #dc2626;
}

.auth-form-group {
  margin-bottom: 1.2rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #1e293b;
  font-weight: 600;
}

.auth-form {
  margin-top: 1rem;
}

.auth-form-group input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  padding-right: 2.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  color: #1e293b;
  outline: none;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.auth-form-group input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.auth-form-group input::placeholder {
  color: rgba(30, 41, 59, 0.6);
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #000000;
}

.password-toggle .eye-icon {
  width: 20px;
  height: 20px;
  stroke: #000000;
  fill: none;
}

.auth-form-hint {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.auth-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #1e293b;
  font-weight: 500;
}

.auth-remember input {
  width: 14px;
  height: 14px;
}

.auth-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
  color: #2563eb;
}

.auth-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.6);
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.auth-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(59, 130, 246, 0.7);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit-icon {
  width: 20px;
  height: 20px;
}

.auth-bottom-text {
  font-size: 0.85rem;
  text-align: center;
  color: #475569;
}

.auth-bottom-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.auth-bottom-text a:hover {
  text-decoration: underline;
  color: #2563eb;
}

/* Auth pages responsive */
@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  .auth-close-btn {
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
  }

  .auth-close-btn svg {
    width: 18px;
    height: 18px;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-subtitle {
    font-size: 0.85rem;
  }

  .auth-form-group {
    margin-bottom: 1rem;
  }

  .auth-extra-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Account Management Page */
.account-page {
  padding: 2rem 0;
}

.account-main-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.account-page {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
  background: #f5f5f5;
}

.account-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 2.5rem;
}

.account-layout {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.account-right-column {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* Cột trái: Card số dư */
.account-left-column {
  display: flex;
  flex-direction: column;
}

.balance-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  color: #fff;
}

.balance-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.balance-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.balance-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.balance-amount {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1;
  margin: auto 0;
}

/* Cột phải: Thông tin và lịch sử */
.account-right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.info-card-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-card-icon {
  width: 20px;
  height: 20px;
  color: #667eea;
}

.info-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.info-card-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-edit {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-logout {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.info-card-body {
  padding: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.95rem;
  color: #000;
  font-weight: 700;
}

.info-value {
  font-size: 0.95rem;
  color: #000;
  font-weight: 700;
}

.empty-history {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #94a3b8;
}

.empty-history p {
  margin: 0;
  font-size: 0.95rem;
}

/* Page Content Styles */
.page-content {
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
  background: #f5f5f5;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.page-description {
  text-align: center;
  margin-bottom: 3rem;
  color: #64748b;
  font-size: 1.1rem;
}

.deposit-section,
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.room-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 300px;
  cursor: pointer;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.room-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .page-content {
    padding: 0.5rem 0;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .room-card {
    min-height: 250px;
  }

  .room-title {
    font-size: 1.75rem;
  }
}

.bot-section,
.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

.deposit-card,
.bot-card,
.contact-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.deposit-card-title,
.bot-card-title,
.contact-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

/* Account Page Responsive */
@media (max-width: 1024px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .balance-card {
    min-height: 300px;
  }

  .balance-amount {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .account-page {
    padding: 1.5rem 0;
  }

  .account-main-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .account-layout {
    gap: 1.5rem;
    padding: 0 15px;
  }

  .balance-card {
    padding: 2rem;
    min-height: 250px;
  }

  .balance-amount {
    font-size: 2.5rem;
  }

  .info-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .info-card-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Admin Page Styles */
.admin-page {
  min-height: 100vh;
  background: #f5f7fa;
  padding: 2rem 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.admin-actions {
  display: flex;
  gap: 1rem;
}

.admin-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.admin-btn-primary {
  background: #3b82f6;
  color: #ffffff;
}

.admin-btn-primary:hover {
  background: #2563eb;
}

.admin-btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.admin-btn-danger:hover {
  background: #dc2626;
}

.admin-btn-info {
  background: #06b6d4;
  color: #ffffff;
}

.admin-btn-info:hover {
  background: #0891b2;
}

.admin-btn-success {
  background: #10b981;
  color: #ffffff;
}

.admin-btn-success:hover {
  background: #059669;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: #ffffff;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
}

.admin-tab.active {
  background: #3b82f6;
  color: #ffffff;
}

.admin-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.admin-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-search {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
}

.admin-sort {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  cursor: pointer;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table thead {
  background: #f8fafc;
}

.admin-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-active {
  background: #10b981;
}

.admin-icon-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.admin-icon-btn:hover {
  color: #3b82f6;
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-btn {
    flex: 1;
    text-align: center;
  }

  .admin-filters {
    flex-direction: column;
  }

  .admin-search,
  .admin-sort {
    width: 100%;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-table-wrapper {
    overflow-x: scroll;
  }

  .admin-table {
    min-width: 1000px;
  }
}

/* Admin Login Page Styles */
.admin-login-body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-container {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
}

.admin-login-form {
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
}

.admin-login-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin: 0 0 2.5rem 0;
}

.admin-login-error {
  background: #fee2e2;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.admin-login-form-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.admin-form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  color: #1e293b;
  background: #ffffff;
  transition: border-color 0.3s ease;
}

.admin-form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.admin-form-group input::placeholder {
  color: #9ca3af;
}

.admin-login-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

.admin-login-btn:hover {
  background: #2563eb;
}

.admin-login-btn:active {
  background: #1d4ed8;
}

.admin-login-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.admin-home-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease;
}

.admin-home-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .admin-login-container {
    padding: 1rem;
  }

  .admin-login-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
}

/* Telegram-like Chat Card */
.telegram-chat-container {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  clear: both;
}

.telegram-chat-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  height: 650px;
  position: relative;
  z-index: 1;
}

.chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.chat-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.message-loading,
.message-empty,
.message-error {
  text-align: center;
  color: #999999;
  padding: 2rem;
  font-style: italic;
}

.message {
  display: flex;
  margin-bottom: 0.5rem;
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-own {
  justify-content: flex-end;
}

.message-other {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  word-wrap: break-word;
  position: relative;
}

.message-own .message-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.message-other .message-bubble {
  background: #ffffff;
  color: #333333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-sender {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #667eea;
}

.message-own .message-sender {
  color: rgba(255, 255, 255, 0.9);
}

.message-text {
  line-height: 1.5;
  font-size: 0.95rem;
}

.message-time-info,
.message-ruong,
.message-rate {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  opacity: 0.9;
}

.message-url {
  margin: 0.5rem 0;
}

.message-url a {
  color: #0066cc;
  text-decoration: underline;
  word-break: break-all;
}

.message-own .message-url a {
  color: rgba(255, 255, 255, 0.95);
}

.message-timestamp {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0.7;
  text-align: right;
}

.message-status {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0.7;
  font-style: italic;
}

.message-date-separator {
  text-align: center;
  margin: 1rem 0;
}

.message-date-separator span {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.4rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.chat-input-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
  background: #ffffff;
  color: #333333;
}

.chat-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}

.chat-input::placeholder {
  color: #9ca3af;
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-send-btn svg {
  width: 20px;
  height: 20px;
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .telegram-chat-card {
    height: 500px;
  }

  .message-bubble {
    max-width: 85%;
  }
}

/* Loalog - Thông báo log */
.loalog-container {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: block;
}

.loalog-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid #000000 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 500px;
  width: 100%;
  margin: 0 auto;
  display: block !important;
  visibility: visible !important;
}

.loalog-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem 2rem;
  color: #ffffff;
}

.loalog-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.loalog-content {
  padding: 1.5rem 2rem;
  max-height: 600px;
  overflow-y: auto;
  background: #f8f9fa;
}

.loalog-loading,
.loalog-empty,
.loalog-error {
  text-align: center;
  color: #999999;
  padding: 2rem;
  font-style: italic;
}

.loalog-error {
  color: #dc3545;
}

.loalog-date-separator {
  text-align: center;
  margin: 1.5rem 0;
}

.loalog-date-separator span {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.loalog-item {
  background: #ffffff;
  border-left: 4px solid #667eea;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.loalog-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.loalog-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.loalog-sender {
  font-weight: 700;
  color: #667eea;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.loalog-time,
.loalog-ruong,
.loalog-rate {
  color: #555555;
  font-size: 0.9rem;
  margin: 0.15rem 0;
}

.loalog-url {
  margin: 0.5rem 0;
}

.loalog-url a {
  color: #0066cc;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}

.loalog-url a:hover {
  color: #004499;
  text-decoration: underline;
}

.loalog-timestamp {
  color: #888888;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.5rem;
}

.loalog-text {
  color: #333333;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Scrollbar cho loalog */
.loalog-content::-webkit-scrollbar {
  width: 8px;
}

.loalog-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.loalog-content::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.loalog-content::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

.log-loading {
  text-align: center;
  color: #666666;
  padding: 2rem;
  font-style: italic;
}

.log-empty {
  text-align: center;
  color: #999999;
  padding: 2rem;
  font-style: italic;
}

.log-date-separator {
  text-align: center;
  margin: 1.5rem 0;
}

.log-date-separator span {
  background: #ff69b4;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.log-item {
  background: #f8f9fa;
  border-left: 3px solid #ff69b4;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.log-item:hover {
  background: #f0f0f0;
}

.log-sender {
  font-weight: 700;
  color: #ff69b4;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.log-time,
.log-ruong,
.log-rate {
  margin: 0.25rem 0;
  color: #555555;
  font-size: 0.9rem;
}

.log-url {
  margin: 0.5rem 0;
  color: #0066cc;
  word-break: break-all;
  text-decoration: underline;
  cursor: pointer;
}

.log-url:hover {
  color: #004499;
}

.log-timestamp {
  margin-top: 0.5rem;
  color: #888888;
  font-size: 0.85rem;
  font-style: italic;
}

.log-text {
  color: #333333;
  line-height: 1.6;
}

/* Scrollbar styling cho log card */
.log-card::-webkit-scrollbar {
  width: 8px;
}

.log-card::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.log-card::-webkit-scrollbar-thumb {
  background: #ff69b4;
  border-radius: 10px;
}

.log-card::-webkit-scrollbar-thumb:hover {
  background: #ff1493;
}

.log-item {
  background: #f8f9fa;
  border-left: 3px solid #ff69b4;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.log-item:hover {
  background: #f0f0f0;
}

.log-sender {
  font-weight: 700;
  color: #ff69b4;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.log-time,
.log-ruong,
.log-rate {
  margin: 0.25rem 0;
  color: #555555;
  font-size: 0.9rem;
}

.log-url {
  margin: 0.5rem 0;
  color: #0066cc;
  word-break: break-all;
  text-decoration: underline;
  cursor: pointer;
}

.log-url:hover {
  color: #004499;
}

.log-timestamp {
  margin-top: 0.5rem;
  color: #888888;
  font-size: 0.85rem;
  font-style: italic;
}

.log-text {
  color: #333333;
  line-height: 1.6;
}

/* Scrollbar styling cho log panel */
.pink-log-panel::-webkit-scrollbar {
  width: 8px;
}

.pink-log-panel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.pink-log-panel::-webkit-scrollbar-thumb {
  background: #ff69b4;
  border-radius: 10px;
}

.pink-log-panel::-webkit-scrollbar-thumb:hover {
  background: #ff1493;
}

.message-log-panel {
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(180deg, #d4edda 0%, #c3e6cb 20%, #b1dfbb 40%, #a8e6cf 60%, #fff3cd 80%, #ffeaa7 100%);
  border-radius: 16px;
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  position: relative;
}

.message-log-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='1.5'%3E%3Cpath d='M50 50 L60 40 L70 50 L65 60 L55 60 Z'/%3E%3Ccircle cx='200' cy='60' r='10'/%3E%3Cpath d='M80 120 L90 110 L100 120 L95 130 L85 130 Z'/%3E%3Cpath d='M220 140 L230 130 L240 140 L235 150 L225 150 Z'/%3E%3Cpath d='M150 180 L160 170 L170 180 L165 190 L155 190 Z'/%3E%3Cpath d='M40 200 L50 190 L60 200 L55 210 L45 210 Z'/%3E%3Cpath d='M250 220 L260 210 L270 220 L265 230 L255 230 Z'/%3E%3Cpath d='M100 250 L110 240 L120 250 L115 260 L105 260 Z'/%3E%3Cpath d='M180 270 L190 260 L200 270 L195 280 L185 280 Z'/%3E%3Cpath d='M30 100 Q30 80 50 80 Q70 80 70 100 Q70 120 50 120 Q30 120 30 100'/%3E%3Cpath d='M230 200 Q230 180 250 180 Q270 180 270 200 Q270 220 250 220 Q230 220 230 200'/%3E%3Cpath d='M120 40 L130 30 L140 40 L135 50 L125 50 Z'/%3E%3Cpath d='M160 80 L170 70 L180 80 L175 90 L165 90 Z'/%3E%3Ctext x='150' y='150' font-size='12' fill='rgba(255,255,255,0.15)' font-family='Arial'%3EE=mc²%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  background-repeat: repeat;
  background-position: 0 0;
  pointer-events: none;
  opacity: 0.25;
}

.message-log-content {
  width: 100%;
  min-height: 350px;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #333333;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
  position: relative;
  z-index: 1;
}

.message-log-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  max-width: 80%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.message-log-item .sender {
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.message-log-item .content {
  color: #1f2937;
  font-size: 0.875rem;
}

.message-log-item .time-info {
  color: #6b7280;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.message-log-item .ruong-info {
  color: #059669;
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

.message-log-item .rate-info {
  color: #7c3aed;
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

.message-log-item .url {
  color: #0284c7;
  font-size: 0.8rem;
  word-break: break-all;
  margin-top: 0.5rem;
  text-decoration: underline;
}

.message-log-item .timestamp {
  text-align: right;
  color: #9ca3af;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.date-separator {
  text-align: center;
  margin: 1rem 0;
  position: relative;
  z-index: 1;
}

.date-separator span {
  background: rgba(34, 197, 94, 0.8);
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}

/* Room Pink Form (Full web) */
.room-pink-form {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #ff69b4;
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
  min-height: 300px;
}

.pink-form-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 200px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .message-form-header {
    padding: 1.25rem 1.5rem;
  }

  .message-icon {
    font-size: 1.75rem;
  }

  .message-form-title {
    font-size: 1.25rem;
  }

  .message-form-content {
    padding: 1.5rem;
  }

  .message-form-content textarea {
    min-height: 120px;
    font-size: 0.9375rem;
  }
}

/* Room Send Message Form (chỉ admin) */
.room-send-message-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.send-message-form-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.send-message-form-header .message-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.send-message-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.send-message-form {
  padding: 2rem;
}

.send-message-form .form-group {
  margin-bottom: 1.5rem;
}

.send-message-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.send-message-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s;
}

.send-message-form textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.send-message-form textarea::placeholder {
  color: #9ca3af;
}

.message-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.message-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #059669;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.send-message-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.send-message-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.send-message-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .send-message-form-header {
    padding: 1.25rem 1.5rem;
  }

  .send-message-form-header .message-icon {
    font-size: 1.75rem;
  }

  .send-message-form-title {
    font-size: 1.25rem;
  }

  .send-message-form {
    padding: 1.5rem;
  }
}

/* Deposit Notification Styles */
.deposit-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.deposit-notification-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  border-left: 4px solid #10b981;
}

.deposit-notification-icon {
  width: 48px;
  height: 48px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #059669;
  font-weight: 700;
  flex-shrink: 0;
}

.deposit-notification-text {
  flex: 1;
}

.deposit-notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.deposit-notification-amount {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
}

.deposit-notification-close {
  background: none;
  border: none;
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.deposit-notification-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* Global Deposit Modal Styles */
.deposit-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.deposit-modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 90%;
  max-width: 320px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: depositSlideIn 0.3s ease-out;
}

.deposit-success-icon {
  width: 60px;
  height: 60px;
  background-color: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.deposit-success-icon svg {
  width: 30px;
  height: 30px;
}

.deposit-modal-content h3 {
  margin: 0 0 10px;
  color: #064e3b;
  font-size: 20px;
  font-family: inherit;
}

.deposit-amount {
  font-size: 24px;
  font-weight: bold;
  color: #dc2626;
  margin: 10px 0 20px;
}

.deposit-modal-btn {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  min-width: 120px;
  margin: 0 auto;
  display: block;
  font-size: 14px;
  transition: background 0.2s;
}

.deposit-modal-btn:hover {
  background-color: #059669;
}

@keyframes depositSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}