/* UBA Internet Banking */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --uba-red: #D71920;
  --uba-red-dark: #b0141a;
  --uba-navy: #1a2b4a;
  --uba-gold: #f5a623;
  --text-dark: #333;
  --text-muted: #666;
  --border: #ddd;
  --bg-light: #f4f4f4;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html {
  font-size: 14px;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* Top Bar */
.top-bar {
  background: var(--white);
  border-bottom: 3px solid var(--uba-red);
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uba-logo {
  width: 80px;
  height: 32px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--uba-navy);
  letter-spacing: 0.5px;
}

.top-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

.country-select,
.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
}

.country-select label,
.lang-select label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  background: var(--white);
  cursor: pointer;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 24px 0 40px;
}

.tagline {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--uba-navy);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

/* Alert Strip */
.alert-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.alert-item {
  display: flex;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--uba-gold);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.alert-item .bullet {
  color: var(--uba-gold);
  font-size: 0.6rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.alert-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--uba-navy);
}

.alert-item p {
  color: var(--text-muted);
  line-height: 1.5;
}

/* Login Grid */
.login-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Login Panel */
.login-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--uba-navy);
}

.required {
  color: var(--uba-red);
  margin-left: 2px;
}

.hint {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 11px 12px 11px 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--uba-red);
  box-shadow: 0 0 0 2px rgba(215, 25, 32, 0.15);
}

.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
}

.checkbox-label input {
  accent-color: var(--uba-red);
}

.btn-login {
  background: var(--uba-red);
  color: var(--white);
  border: none;
  padding: 13px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.btn-login:hover {
  background: var(--uba-red-dark);
}

.forgot-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.forgot-link {
  color: var(--uba-red);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-register {
  display: block;
  text-align: center;
  padding: 12px;
  border: 2px solid var(--uba-red);
  color: var(--uba-red);
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-register:hover {
  background: var(--uba-red);
  color: var(--white);
}

.login-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 8px 0 4px;
}

.form-message {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.form-message.error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.form-message.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.register-container {
  max-width: 520px;
}

.register-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.register-heading {
  font-size: 1.1rem;
  color: var(--uba-navy);
  margin-bottom: 20px;
  text-align: center;
}

.register-panel .input-wrapper input {
  padding: 11px 12px;
}

.register-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.register-footer .forgot-link {
  margin-left: 4px;
}

/* Virtual Keyboard */
.virtual-keyboard {
  margin-top: 20px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.vk-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--uba-navy);
}

.vk-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vk-key {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}

.vk-key:hover {
  background: #eee;
}

/* Side Cards */
.side-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.info-card h2 {
  font-size: 1rem;
  color: var(--uba-navy);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.card-icon {
  margin-bottom: 10px;
}

.card-link {
  display: inline-block;
  color: var(--uba-red);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  margin-right: 12px;
}

.card-link:hover {
  text-decoration: underline;
}

.btn-outline {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid var(--uba-red);
  border-radius: 4px;
  margin-top: 8px;
}

.btn-outline:hover {
  background: var(--uba-red);
  color: var(--white);
  text-decoration: none;
}

.security-card {
  border-top: 3px solid var(--uba-red);
}

.new-user-card {
  border-top: 3px solid var(--uba-navy);
}

.contact-card {
  border-top: 3px solid var(--uba-gold);
}

.phone {
  font-weight: 600;
  color: var(--text-dark) !important;
}

.fraud {
  font-size: 0.8rem !important;
  color: var(--uba-red) !important;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Modal */
.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--white);
  padding: 36px 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  font-size: 1.05rem;
  color: var(--uba-navy);
  margin: 16px 0 8px;
}

.modal p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #eee;
  border-top-color: var(--uba-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-close {
  margin-top: 20px;
  padding: 10px 24px;
  background: var(--uba-navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.btn-close:hover {
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--uba-navy);
  color: #ccc;
  padding: 24px 0;
  margin-top: auto;
}

.footer-inner {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.social-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
}

.social-links a:hover {
  text-decoration: underline;
}

.license {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-links {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links span {
  margin: 0 6px;
  color: #555;
}

.copyright {
  font-size: 0.75rem;
  color: #888;
}

.copyright em {
  color: #ffc107;
}

/* Responsive */
@media (max-width: 860px) {
  .login-grid {
    grid-template-columns: 1fr;
  }

  .alert-strip {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 24px 20px;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .forgot-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .form-options {
    flex-direction: column;
  }
}

/* ========== Dashboard ========== */

.dashboard-body {
  background: #eef1f5;
}

.dash-header {
  background: var(--white);
  border-bottom: 3px solid var(--uba-red);
  box-shadow: var(--shadow);
}

.dash-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-user-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
}

.welcome {
  color: var(--uba-navy);
}

.last-login {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.btn-logout {
  background: transparent;
  border: 2px solid var(--uba-red);
  color: var(--uba-red);
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: var(--uba-red);
  color: var(--white);
}

.dash-layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 160px);
}

.dash-sidebar {
  width: 240px;
  background: var(--uba-navy);
  flex-shrink: 0;
  padding: 20px 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-item.active {
  background: rgba(215, 25, 32, 0.2);
  color: var(--white);
  border-left-color: var(--uba-red);
}

.nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.dash-main {
  flex: 1;
  padding: 24px;
  overflow-x: hidden;
}

.dash-section.hidden {
  display: none;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h1 {
  font-size: 1.5rem;
  color: var(--uba-navy);
  margin-bottom: 4px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.account-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--uba-navy);
}

.account-card.primary {
  border-top-color: var(--uba-red);
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.account-type {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-number {
  display: block;
  font-size: 0.85rem;
  color: var(--uba-navy);
  font-weight: 600;
  margin-top: 2px;
}

.btn-toggle-balance {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-toggle-balance:hover {
  background: #f0f0f0;
}

.account-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.account-balance {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--uba-navy);
  margin-bottom: 8px;
}

.account-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.quick-actions {
  margin-bottom: 28px;
}

.quick-actions h2 {
  font-size: 1rem;
  color: var(--uba-navy);
  margin-bottom: 14px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.action-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--uba-navy);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.action-btn:hover {
  border-color: var(--uba-red);
  color: var(--uba-red);
  transform: translateY(-2px);
}

.action-icon {
  font-size: 1.5rem;
}

.dash-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.panel {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-header h2 {
  font-size: 1rem;
  color: var(--uba-navy);
}

.panel-link {
  color: var(--uba-red);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.panel-link:hover {
  text-decoration: underline;
}

.badge {
  background: var(--uba-red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.table-wrap {
  overflow-x: auto;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.transactions-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8f9fa;
  color: var(--uba-navy);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.transactions-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  color: var(--text-dark);
}

.transactions-table tbody tr:hover {
  background: #fafafa;
}

.text-right {
  text-align: right;
}

.debit {
  color: var(--uba-red);
  font-weight: 600;
}

.credit {
  color: #2e7d32;
  font-weight: 600;
}

.notification-list {
  list-style: none;
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.notification-item:last-child {
  border-bottom: none;
}

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--uba-red);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.notification-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--uba-navy);
  margin-bottom: 4px;
}

.notification-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}

.notification-item time {
  font-size: 0.75rem;
  color: #999;
}

.form-panel {
  max-width: 720px;
}

.dash-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-form .form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--uba-navy);
  margin-bottom: 6px;
}

.dash-form select,
.dash-form input[type="text"],
.dash-form input[type="email"],
.dash-form input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
}

.dash-form select:focus,
.dash-form input:focus {
  outline: none;
  border-color: var(--uba-red);
}

.btn-primary {
  background: var(--uba-red);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: var(--uba-red-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--uba-navy);
  border: 2px solid var(--uba-navy);
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-secondary:hover {
  background: var(--uba-navy);
  color: var(--white);
}

.panel-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.biller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.biller-btn {
  padding: 20px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  color: var(--uba-navy);
  cursor: pointer;
  transition: all 0.2s;
}

.biller-btn:hover {
  border-color: var(--uba-red);
  color: var(--uba-red);
}

.card-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.debit-card {
  width: 340px;
  height: 200px;
  background: linear-gradient(135deg, var(--uba-navy) 0%, #2a4070 100%);
  border-radius: 12px;
  padding: 24px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(26, 43, 74, 0.3);
}

.card-brand {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--uba-red);
  background: var(--white);
  padding: 2px 8px;
  border-radius: 3px;
  align-self: flex-start;
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #d4af37, #f5e6a3);
  border-radius: 4px;
}

.card-number {
  font-size: 1.2rem;
  letter-spacing: 3px;
  font-family: monospace;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--uba-navy);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.dash-footer {
  margin-top: 0;
}

.dash-footer .footer-inner {
  padding: 16px 20px;
}

/* Dashboard responsive */
@media (max-width: 960px) {
  .dash-layout {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    padding: 0;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 8px;
  }

  .nav-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 12px 16px;
  }

  .nav-item.active {
    border-left: none;
    border-bottom-color: var(--uba-red);
  }

  .dash-grid-2 {
    grid-template-columns: 1fr;
  }

  .dash-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dash-main {
    padding: 16px;
  }

  .user-info {
    align-items: flex-start;
  }

  .account-balance {
    font-size: 1.3rem;
  }

  .debit-card {
    width: 100%;
  }
}

/* ========== Admin Portal ========== */

.admin-back-link {
  color: var(--uba-navy);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-back-link:hover {
  text-decoration: underline;
}

.admin-login-panel {
  border-top: 4px solid var(--uba-navy);
}

.admin-btn {
  background: var(--uba-navy);
}

.admin-btn:hover {
  background: #0f1a2e;
}

.admin-body {
  background: #e8ecf1;
}

.admin-header {
  border-bottom-color: var(--uba-navy);
}

.admin-badge {
  background: var(--uba-navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.admin-main {
  flex: 1;
}

.admin-create-panel {
  margin-bottom: 24px;
  border-top: 4px solid var(--uba-red);
}

.admin-create-form {
  max-width: 100%;
}

.panel-sub {
  background: #f0f4f8;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.panel-sub strong {
  display: block;
  color: var(--uba-navy);
  margin-bottom: 6px;
}

.panel-sub p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.link-row input {
  flex: 1;
  min-width: 200px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
}

#createSuccess code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--uba-navy);
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--uba-navy);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f0f2f5;
  color: var(--uba-navy);
  font-weight: 600;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.admin-table tr.selected {
  background: #fff8f8;
}

.admin-table tr:hover {
  background: #fafafa;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-dormant {
  background: #fff3cd;
  color: #856404;
}

.status-locked {
  background: #fdecea;
  color: #721c24;
}

.status-unlocked {
  background: #e8f4fd;
  color: #0c5460;
}

.status-frozen {
  background: #cce5ff;
  color: #004085;
}

.status-suspended {
  background: #fdecea;
  color: #721c24;
}

.lock-control {
  grid-column: 1 / -1;
}

.lock-toggle-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lock-hint {
  font-size: 0.8rem;
  color: #0c5460;
}

.lock-hint.locked {
  color: #721c24;
  font-weight: 600;
}

.account-status-row {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.status-notice {
  margin-bottom: 20px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--uba-red);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-danger {
  background: #c0392b;
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger:hover {
  background: #a93226;
}

.btn-danger-link {
  color: #c0392b !important;
}

.detail-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 20px 0;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 0;
}

.admin-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.admin-tab.active {
  color: var(--uba-navy);
  border-bottom-color: var(--uba-red);
}

.admin-tab-panel.hidden {
  display: none;
}

.balance-edit-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.balance-edit-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.balance-edit-item h3 {
  font-size: 0.9rem;
  color: var(--uba-navy);
  margin-bottom: 10px;
}

.balance-edit-item label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 8px;
}

.balance-edit-item input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-inline-form {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.admin-tx-table {
  max-height: 280px;
  overflow-y: auto;
}

.admin-notif-list {
  list-style: none;
}

.admin-notif-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.admin-notif-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0;
}

.admin-notif-item small {
  color: #999;
  font-size: 0.75rem;
}

.danger-zone {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  padding: 20px;
  border-radius: 6px;
}

.danger-zone p {
  margin-bottom: 16px;
  color: #721c24;
  font-size: 0.9rem;
}

.admin-modal {
  text-align: left;
  max-width: 480px;
}

.admin-modal h2 {
  margin-bottom: 16px;
  color: var(--uba-navy);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}
