/* ==========================================================================
   BPlus Card - Minimalist Light Mode Design System
   Clean, Professional, Non-AI Aesthetic
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Pure Light Palette */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  --border-color: #e2e8f0;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --primary: #0f172a;
  --primary-hover: #1e293b;
  --primary-text: #ffffff;

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;

  --status-active-text: #15803d;
  --status-active-bg: #dcfce7;
  --status-active-border: #bbf7d0;

  --status-blocked-text: #b91c1c;
  --status-blocked-bg: #fee2e2;
  --status-blocked-border: #fecaca;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-pop: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.03);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.font-mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  letter-spacing: -0.02em;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  color: var(--accent-blue);
  background-color: #eff6ff;
}

.lang-divider {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 48px 0 60px;
}

.inquiry-wrapper {
  margin-bottom: 48px;
}

.inquiry-header {
  text-align: center;
  margin-bottom: 28px;
}

.inquiry-header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.inquiry-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Inquiry Box */
.inquiry-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-field-wrap {
  display: flex;
  gap: 10px;
}

.card-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.card-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Primary Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
}

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

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-helpers {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}

.quick-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-blue);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quick-link:hover {
  color: var(--accent-blue-hover);
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert-box {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-box.active {
  display: flex;
}

.alert-error {
  background-color: var(--status-blocked-bg);
  border: 1px solid var(--status-blocked-border);
  color: var(--status-blocked-text);
}

.alert-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Result Container (Card Summary & History)
   ========================================================================== */
.result-container {
  display: none;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.result-container.active {
  display: block;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card Summary Box */
.card-summary {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-muted);
}

.card-meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-active {
  background-color: var(--status-active-bg);
  color: var(--status-active-text);
  border-color: var(--status-active-border);
}

.status-blocked {
  background-color: var(--status-blocked-bg);
  color: var(--status-blocked-text);
  border-color: var(--status-blocked-border);
}

.balance-spotlight {
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 18px;
}

.spotlight-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spotlight-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-item .item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.summary-item .item-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   Transactions Section (Tarixçə)
   ========================================================================== */
.transactions-section {
  margin-top: 24px;
}

.transactions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.transactions-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.tx-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.tx-table th {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

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

.tx-table tbody tr:last-child td {
  border-bottom: none;
}

.tx-table tbody tr:hover {
  background-color: #fafbfc;
}

.text-right {
  text-align: right;
}

.tx-amount {
  font-family: var(--font-mono);
  font-weight: 600;
}

.tx-credit {
  color: #16a34a;
}

.tx-debit {
  color: var(--text-main);
}

.tx-balance {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 500;
}

.tx-date {
  font-size: 0.825rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.tx-desc-title {
  font-weight: 600;
  color: var(--text-main);
}

.tx-desc-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.tx-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Minimalist 3 Info Cards
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: #eff6ff;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: auto;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent-blue);
}

/* Spinner */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-spinner {
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 720px) {
  .main-content {
    padding: 32px 0 44px;
  }

  .inquiry-card {
    padding: 20px;
  }

  .input-field-wrap {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
