/* Wutang Financial - Black & Gold Theme */
:root {
  --primary: #111111;
  --primary-dark: #000000;
  --primary-light: #1a1a1a;
  --gold: #d4af37;
  --gold-light: #f0d060;
  --gold-dark: #b8960c;
  --accent: var(--gold);
  --accent-hover: var(--gold-light);
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --gray-50: #f5f5f5;
  --gray-100: #e0e0e0;
  --gray-200: #cccccc;
  --gray-300: #aaaaaa;
  --gray-500: #777777;
  --gray-700: #444444;
  --gray-900: #111111;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.25);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

/* Header / Nav */
.navbar {
  background: var(--primary);
  color: var(--white);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.navbar-brand:hover { text-decoration: none; color: var(--gold-light); }
.navbar-brand span { color: var(--gold); }

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--gray-200);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.navbar-nav a:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  text-decoration: none;
}
.navbar-nav a.active {
  background: var(--gold);
  color: var(--primary);
}

/* Main content */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}

/* Landing / Hero */
.landing-hero {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.landing-hero.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.landing-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.landing-hero.has-bg > * {
  position: relative;
  z-index: 1;
}

/* Split hero layout */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.hero-left {
  flex: 1;
}

.hero-right {
  flex: 0 0 340px;
}

.hero-logo {
  max-width: 160px;
  height: auto;
  margin: 0 0 1.25rem;
  display: block;
}

.landing-hero .tagline {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.landing-hero p {
  font-size: 1.05rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
}

/* Hero login card */
.hero-login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  border-top: 3px solid var(--gold);
  color: var(--gray-900);
}

.hero-login-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.hero-login-card .form-group { margin-bottom: 0.75rem; }
.hero-login-card .form-group label { font-size: 0.8rem; margin-bottom: 0.25rem; }
.hero-login-card .form-control { padding: 0.55rem 0.8rem; font-size: 0.9rem; }

/* Product tiles */
.product-tiles-section {
  background: var(--white);
  padding: 2rem;
  border-bottom: 1px solid var(--gray-100);
}

.product-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.product-tile:hover {
  background: var(--gray-50);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--primary);
}

.tile-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.tile-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.tile-desc {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Promo section */
.promo-section {
  padding: 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.promo-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-top: 3px solid var(--gold);
}

.promo-card h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.promo-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

select.form-control {
  appearance: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--primary);
}
.btn-primary:hover { background: var(--gold-light); color: var(--primary); }

.btn-success {
  background: var(--success);
  color: var(--white);
}
.btn-success:hover { background: #219150; color: var(--white); }

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
}
.btn-outline:hover { background: var(--gold); color: var(--primary); }

.btn-block {
  display: block;
  width: 100%;
}

/* Alerts */
.alert {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.alert-danger {
  background: #fde8e8;
  color: var(--danger);
  border: 1px solid #f5c6c6;
}
.alert-success {
  background: #e8f8ef;
  color: var(--success);
  border: 1px solid #b8e6cc;
}
.alert-warning {
  background: #fef5e7;
  color: #b8860b;
  border: 1px solid #fad7a0;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background: var(--primary);
  font-weight: 600;
  text-align: left;
  padding: 0.8rem 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gold);
}

table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}

table tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

/* Account cards grid */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.account-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border-left: 4px solid var(--gold);
  transition: box-shadow 0.2s;
}
.account-card:hover { box-shadow: var(--shadow-lg); }

.account-card .account-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.account-card .account-number {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.account-card .account-balance {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.account-card .account-available {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.account-card.credit { border-left-color: var(--warning); }
.account-card.savings { border-left-color: var(--success); }
.account-card.cd { border-left-color: var(--gray-500); }

/* Amount styling */
.amount-positive { color: var(--success); font-weight: 600; }
.amount-negative { color: var(--danger); font-weight: 600; }

/* Transfer confirmation */
.transfer-summary {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--gray-200);
}

.transfer-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.transfer-summary .row:last-child { border-bottom: none; }
.transfer-summary .label { color: var(--gray-500); }
.transfer-summary .value { font-weight: 600; }

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--gray-300);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  margin-top: auto;
  border-top: 2px solid var(--gold);
}

.footer a { color: var(--gold); }

/* Security warning banner */
.security-banner {
  background: var(--gold);
  color: var(--primary);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pqc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--primary);
  color: var(--gold-light);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: default;
}

/* Rates table */
.rates-table td:last-child {
  font-weight: 700;
  color: var(--success);
  font-size: 1.1rem;
}

/* Admin panel */
.admin-header {
  background: var(--danger);
  color: var(--white);
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-split { flex-direction: column; text-align: center; }
  .hero-left { order: 1; }
  .hero-right { order: 2; flex: 0 0 auto; width: 100%; max-width: 380px; }
  .hero-logo { margin: 0 auto 1.25rem; }
  .hero-cta { justify-content: center; }
  .product-tiles { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .navbar-brand { font-size: 1.1rem; }
  .main-content { padding: 1rem; }
  .landing-hero { padding: 2rem 1rem; }
  .hero-logo { max-width: 120px; }
  .landing-hero .tagline { font-size: 1.2rem; }
  .product-tiles { grid-template-columns: repeat(2, 1fr); }
  .accounts-grid { grid-template-columns: 1fr; }
}
