* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary: #8b5cf6;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1f2937;
  --gray: #6b7280;
  --light: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

.highlight {
  color: var(--primary);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-logo i {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-login, .btn-register {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.btn-login {
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-login:hover {
  background: var(--primary);
  color: white;
}

.btn-register {
  background: var(--primary);
  color: white;
}

.btn-register:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 2rem;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  background: white;
  width: 280px;
  height: 500px;
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-mockup i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.otp-message {
  background: var(--light);
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  text-align: center;
}

.otp-message p {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.otp-message strong {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray);
  font-size: 1.125rem;
}

/* Features */
.features {
  padding: 5rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  background: var(--light);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Pricing */
.pricing {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #f3e8ff 100%);
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 300px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--gray);
}

.pricing-features li i {
  color: var(--success);
  margin-right: 0.5rem;
}

.btn-pricing {
  display: block;
  background: var(--light);
  color: var(--primary);
  padding: 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-pricing:hover {
  background: var(--primary);
  color: white;
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-logo p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4, .footer-contact h4 {
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  margin-right: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Auth Pages */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 500px;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1rem;
}

.auth-header h2 {
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--gray);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group label i {
  margin-right: 0.5rem;
  color: var(--gray);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-auth {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}

.form-terms {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray);
}

.form-terms a {
  color: var(--primary);
  text-decoration: none;
}

/* Dashboard */
.dashboard-body {
  display: flex;
  min-height: 100vh;
  background: var(--light);
}

.dashboard-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s;
}

.nav-item i {
  width: 20px;
}

.nav-item:hover, .nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.logout-btn {
  margin: 1rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: var(--danger);
  color: white;
}

.dashboard-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.header-welcome h2 {
  margin-bottom: 0.25rem;
}

.header-welcome span {
  color: var(--primary);
}

.header-balance {
  text-align: right;
}

.balance-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray);
}

.balance-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
  margin-bottom: 0.5rem;
}

.card-header p {
  color: var(--gray);
  font-size: 0.875rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: 1.5rem;
  color: white;
}

.stat-info {
  flex: 1;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray);
}

/* Quick Actions */
.quick-actions {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.quick-actions h3 {
  margin-bottom: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--light);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-btn:hover {
  background: var(--primary);
  color: white;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 0.875rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.data-table th {
  font-weight: 600;
  color: var(--gray);
  background: #f9fafb;
}

.data-table tbody tr:hover {
  background: #f9fafb;
}

.text-center {
  text-align: center;
}

/* Result Box */
.result-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: var(--radius);
}

.result-box h4 {
  margin-bottom: 0.5rem;
  color: var(--success);
}

.result-content {
  font-family: monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

/* Alert */
.alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.alert.success {
  background: #d1fae5;
  color: #064e3b;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

/* Recharge Presets */
.recharge-presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.preset-btn {
  padding: 0.5rem 1rem;
  background: var(--light);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Bank Info */
.bank-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.bank-info h4 {
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.info-row span {
  color: var(--gray);
}

.note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--warning);
}

/* Profile Info */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copy-btn {
  background: var(--light);
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: 0.5rem;
}

.copy-btn:hover {
  background: var(--primary);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .dashboard-body {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .header-balance {
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
/* Bổ sung cho bảng lịch sử thuê số */
#rentHistoryTable {
  width: 100%;
  font-size: 14px;
}

#rentHistoryTable th {
  background: #f8f9fa;
  padding: 12px 8px;
  font-weight: 600;
  color: #374151;
}

#rentHistoryTable td {
  padding: 10px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
}

#rentHistoryTable tbody tr:hover {
  background: #f9fafb;
}

.auto-check-status {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: #166534;
  margin-top: 16px;
}

.auto-check-status i {
  margin-right: 6px;
}

/* Animation cho trạng thái đang xử lý */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.status-pending {
  animation: pulse 1.5s infinite;
}
.status-pending {
  animation: pulse 1.5s infinite;
  display: inline-block;
  background: #fef3c7;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #d97706;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.auto-check-status {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: #166534;
  margin-top: 16px;
}
/* Thêm vào cuối file styles.css */
.expiry-note {
  margin-top: 10px;
  padding: 8px;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 12px;
  color: #d97706;
}

.status-pending {
  animation: pulse 1.5s infinite;
  display: inline-block;
  background: #fef3c7;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #d97706;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.auto-check-status {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: #166534;
  margin-top: 16px;
}

.profile-info .info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.profile-info .info-row span:first-child {
  width: 140px;
  color: #6b7280;
}

.copy-btn {
  background: #f3f4f6;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 12px;
}

.copy-btn:hover {
  background: #2563eb;
  color: white;
}