/* ==============================================================
   THUEOTP.COM - 1:1 CLONE STYLESHEET
   Matching original thueotp.com design system exactly
   Domain: otp.shopclone99.com
   ============================================================== */

:root {
  /* Core Colors */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', Consolas, monospace;

  /* Theme Colors */
  --bg-body: #f4f6fa;
  --bg-card: #ffffff;
  --bg-sidebar: #151235;
  --bg-sidebar-active: linear-gradient(90deg, #4f46e5 0%, #4338ca 100%);
  --sidebar-w: 245px;
  --header-h: 62px;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border-color: #eef1f6;
  --border-input: #e2e8f0;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #ff7a00;
  --danger: #ef4444;

  --radius-cards: 14px;
  --radius-buttons: 10px;
  --radius-inputs: 8px;
  --radius-full: 999px;
}

[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-card: #151c2e;
  --bg-sidebar: #0f1322;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-color: #1e293b;
  --border-input: #334155;
}

/* ==============================================================
   BASE RESET
   ============================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* App Shell Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ==============================================================
   THUEOTP.COM SIDEBAR (Deep Violet Navy #151235)
   ============================================================== */
.thueotp-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  background: linear-gradient(180deg, #17133c 0%, #100d2b 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-header {
  height: 70px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
}

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

.brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-sub {
  color: #818cf8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-section-title {
  color: #76729e;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 18px 6px 18px;
  letter-spacing: 0.05em;
}

.menu-item {
  padding: 9px 18px;
  border-radius: 10px;
  margin: 2px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #a5a2cc;
  transition: all 0.15s ease;
}

.menu-item i {
  width: 20px;
  font-size: 1rem;
  color: #8480b0;
  text-align: center;
  transition: color 0.15s ease;
}

.menu-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.menu-item:hover i {
  color: #ffffff;
}

.menu-item.active {
  background: linear-gradient(90deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.menu-item.active i {
  color: #ffffff;
}

.admin-switch-pill {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
  font-weight: 600;
}
.admin-switch-pill i {
  color: #fbbf24 !important;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-collapse-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: #8480b0;
  padding: 8px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* ==============================================================
   THUEOTP.COM TOP NAVBAR (Floating White Bar)
   ============================================================== */
.thueotp-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
}

.thueotp-navbar {
  height: 60px;
  margin: 14px 20px 0 20px;
  background: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 14px;
  z-index: 90;
}

[data-theme="dark"] .thueotp-navbar {
  background: #151c2e;
  border-color: #1e293b;
}

.sidebar-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f4f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  font-size: 1rem;
}

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

/* Wallet Box with Orange Plus */
.thueotp-wallet-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 3px 3px 3px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
}

[data-theme="dark"] .thueotp-wallet-box {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.wallet-amount {
  font-weight: 700;
  color: #1e293b;
}

[data-theme="dark"] .wallet-amount {
  color: #f8fafc;
}

.btn-topup-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff7a00;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(255, 122, 0, 0.35);
  transition: transform 0.15s ease;
}

.btn-topup-plus:hover {
  transform: scale(1.1);
}

/* Language Switcher Pill */
.thueotp-lang-pill {
  background: #f1f4f9;
  border-radius: 999px;
  padding: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
}

[data-theme="dark"] .thueotp-lang-pill {
  background: #1e293b;
}

.lang-opt {
  border: none;
  background: transparent;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-opt.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .lang-opt.active {
  background: #334155;
  color: #ffffff;
}

.flag-icon {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  object-fit: cover;
}

/* Circle buttons */
.thueotp-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f4f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

[data-theme="dark"] .thueotp-circle-btn {
  background: #1e293b;
  color: #94a3b8;
}

.thueotp-circle-btn:hover {
  color: #1e293b;
  background: #e2e8f0;
}

/* Nút Quản Trị Admin nổi bật trên Topbar */
.btn-admin-switch-top {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn-admin-switch-top:hover {
  transform: translateY(-1px);
}

/* User & Logout */
.thueotp-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dcfce7;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.thueotp-logout-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.btn-login-pill, .btn-register-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-login-pill {
  background: #4f46e5;
  color: #ffffff;
}

.btn-register-pill {
  background: #f1f4f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

/* ==============================================================
   THUEOTP.COM MAIN CONTENT & CARDS
   ============================================================== */
.thueotp-body {
  padding: 18px 20px;
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
}

.thueotp-announcement {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #b45309;
  font-size: 0.88rem;
}

.thueotp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-cards);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Hero Banner */
.thueotp-hero-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.hero-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a00 0%, #ea580c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.hero-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.hero-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Server Selector Bar */
.thueotp-server-bar {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
}

.btn-server-tab {
  border: 1px solid var(--border-input);
  background: #ffffff;
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

[data-theme="dark"] .btn-server-tab {
  background: #1e293b;
}

.btn-server-tab.active {
  background: #252846;
  color: #ffffff;
  border-color: #252846;
  box-shadow: 0 4px 12px rgba(37, 40, 70, 0.25);
}

.badge-full-price {
  background: #10b981;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Step Header */
.step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.step-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.service-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-step-action {
  border: 1px solid var(--border-input);
  background: #ffffff;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

[data-theme="dark"] .btn-step-action {
  background: #1e293b;
}

.btn-step-action:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

/* Alert info */
.thueotp-alert-info {
  background: #f0f7ff;
  border: 1px solid #bae0ff;
  border-radius: 10px;
  padding: 10px 14px;
  color: #0958d9;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

[data-theme="dark"] .thueotp-alert-info {
  background: rgba(9, 88, 217, 0.15);
  border-color: rgba(9, 88, 217, 0.3);
  color: #69b1ff;
}

/* Search input */
.search-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.thueotp-search-input {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-input);
  background: #fafbfd;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

[data-theme="dark"] .thueotp-search-input {
  background: #1e293b;
}

.thueotp-search-input:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ==============================================================
   THUEOTP.COM COUNTRY CARDS GRID (6 Columns)
   ============================================================== */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
  margin-bottom: 6px;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 4px;
}

.country-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-theme="dark"] .country-card {
  background: #1e293b;
  border-color: #334155;
}

.country-card:hover {
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.c-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.06);
}

.c-name {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-main);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-dial {
  font-size: 0.72rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}

[data-theme="dark"] .c-dial {
  background: #334155;
  color: #94a3b8;
}

.c-sub {
  font-size: 0.74rem;
  color: #10b981;
  font-weight: 500;
}

/* Thẻ quốc gia được chọn (Xanh lam đậm / Tím) */
.country-card.active {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.country-card.active .c-name {
  color: #ffffff !important;
}

.country-card.active .c-dial {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.country-card.active .c-sub {
  color: #ffffff !important;
  opacity: 0.95;
}

/* ==============================================================
   THUEOTP.COM SERVICE CARDS GRID (4 Columns)
   ============================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
}

[data-theme="dark"] .service-card {
  background: #1e293b;
  border-color: #334155;
}

.service-card:hover {
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.08);
}

.svc-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

[data-theme="dark"] .svc-icon-wrap {
  background: #0f172a;
  border-color: #334155;
}

.svc-details {
  flex: 1;
  min-width: 0;
}

.svc-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-status {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.svc-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: #10b981;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Thẻ dịch vụ được chọn (Viền tím đậm, nền tím nhạt) */
.service-card.active {
  border: 2px solid #4f46e5 !important;
  background: #f5f3ff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .service-card.active {
  background: rgba(79, 70, 229, 0.2) !important;
}

.service-card.active .svc-title {
  color: #4f46e5 !important;
}

.service-card.active .svc-price {
  color: #4f46e5 !important;
}

/* Brand icon colors */
.text-red { color: #ea4335; }
.text-blue { color: #0088cc; }
.text-indigo { color: #1877f2; }
.text-orange { color: #ee4d2d; }
.text-green { color: #25d366; }
.text-dark { color: #0f172a; }
.text-pink { color: #fe3c72; }
.text-purple { color: #5865f2; }

/* ==============================================================
   THUÊ SỐ & CÀI ĐẶT NÂNG CAO
   ============================================================== */
.rent-action-section {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 6px;
}

.rent-options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-inputs);
  border: 1px solid var(--border-input);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.15s ease;
}

[data-theme="dark"] .form-control {
  background: #1e293b;
}

.form-control:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.rent-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 12px;
}

[data-theme="dark"] .rent-footer-bar {
  background: #1e293b;
}

.selected-service-info .lbl {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-right: 6px;
}

.selected-service-info .val-name {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-right: 12px;
}

.selected-service-info .val-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
  font-family: var(--font-mono);
}

.btn-thueotp-buy {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.15s ease;
}

.btn-thueotp-buy:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

.btn-thueotp-buy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==============================================================
   ACTIVE RENTALS TABLE & BADGES
   ============================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.custom-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .custom-table th {
  background: #1e293b;
}

.custom-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.otp-display-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
}

.otp-display-box.has-code {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 1.15rem;
  font-weight: 700;
  animation: pulseCode 1.2s infinite;
}

@keyframes pulseCode {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.countdown-timer {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
}

.badge-waiting-pill {
  background: #ffedd5;
  color: #ea580c;
  border: 1px solid #fed7aa;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.badge-waiting { background: #ffedd5; color: #ea580c; }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-canceled { background: #fee2e2; color: #dc2626; }

.btn-danger {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  color: #ffffff;
}

.btn-copy-code {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px 5px;
}

.btn-copy-code:hover {
  color: #1e293b;
}

.loading-state, .empty-filter {
  padding: 32px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-toast {
  background: #1e293b;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.2s ease;
}

.custom-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .thueotp-sidebar {
    transform: translateX(-100%);
  }
  .thueotp-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  }
  .thueotp-main {
    margin-left: 0;
  }
  .rent-options-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .thueotp-navbar {
    margin: 10px 12px 0 12px;
    padding: 0 12px;
  }
  .thueotp-body {
    padding: 14px 12px;
  }
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
}
