:root {
  --primary-font: 'Roboto Condensed', 'Roboto', sans-serif;
  --body-font: 'Roboto', sans-serif;
  --primary-blue: #337ab7;
  --primary-blue-dark: #2a6496;
  --header-bg: #221f1f;
  --tab-bg: #7eaed6;
  --tab-text: #ffffff;
  --active-tab-bg: #ffffff;
  --active-tab-text: #555555;
  --button-bg: #337ab7;
  --button-text: #ffffff;
  --section-header-bg: #221f1f;
  --section-header-alt: #337AB7;
  --footer-bg: #404041;
  --footer-text: #ffffff;
  --faq-answer-bg: #1c76bb;
  --faq-answer-text: #ffffff;
  --body-bg: #f5f5f5;
  --card-bg: #ffffff;
  --text-dark: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --success: #5cb85c;
  --error: #d9534f;
}

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

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

a { color: var(--primary-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.header {
  background: var(--header-bg);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 61px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-text {
  font-family: var(--primary-font);
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.logo-text span { color: var(--primary-blue); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.header-nav a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--primary-font);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.header-nav a:hover { color: #ffffff; border-bottom-color: var(--primary-blue); text-decoration: none; }
.header-nav a.active { color: #ffffff; border-bottom-color: var(--primary-blue); }

/* ===== HERO ===== */
.hero-banner {
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 50%, #5dade2 100%);
  padding: 2.5rem 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-banner h1 {
  font-family: var(--primary-font);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}
.hero-banner p {
  font-size: 0.95rem;
  opacity: 0.9;
  position: relative;
  font-weight: 300;
}

/* ===== MAIN ===== */
main { flex: 1; }
.main-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== WIDGET TABS ===== */
.widget-tabs {
  display: flex;
  margin-top: -1px;
  position: relative;
  z-index: 2;
}
.widget-tab {
  padding: 12px 24px;
  font-family: var(--primary-font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--tab-bg);
  color: var(--tab-text);
  border-radius: 6px 6px 0 0;
  margin-right: 2px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.widget-tab:hover { background: #6a9fc8; }
.widget-tab.active { background: var(--active-tab-bg); color: var(--active-tab-text); }

.widget-content {
  background: var(--card-bg);
  border-radius: 0 6px 6px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
.tab-panel { display: none; padding: 2rem; }
.tab-panel.active { display: block; }

/* ===== SECTION HEADER ===== */
.section-header {
  background: var(--section-header-alt);
  color: white;
  padding: 10px 16px;
  font-family: var(--primary-font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.form-group label .required { color: var(--error); font-weight: 700; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--body-font);
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 38px;
}
.form-group textarea { height: auto; min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-group input.error { border-color: var(--error); }

.field-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.25rem;
  display: block;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.form-hint i { margin-top: 2px; color: var(--primary-blue); }
.form-actions { margin-top: 1.25rem; display: flex; gap: 10px; align-items: center; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--button-bg);
  color: var(--button-text);
  padding: 8px 20px;
  border-radius: 4px;
  border: 1px solid var(--primary-blue-dark);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--body-font);
  height: 38px;
}
.btn-primary:hover { background: var(--primary-blue-dark); }
.btn-primary:active { background: #245580; }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-secondary {
  background: #ffffff;
  color: var(--primary-blue);
  padding: 8px 20px;
  border-radius: 4px;
  border: 1px solid var(--primary-blue);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: none;
  font-family: var(--body-font);
  height: 38px;
  margin-top: 1rem;
}
.btn-secondary:hover { background: var(--primary-blue); color: #fff; }
.btn-secondary.show { display: inline-flex; }

/* ===== BALANCE RESULT ===== */
.balance-result { display: none; padding: 1.5rem 0; }
.balance-result.show { display: block; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-box { border-radius: 4px; padding: 1.5rem; text-align: center; }
.balance-result.success .result-box { background: #dff0d8; border: 1px solid #d6e9c6; color: #3c763d; }
.balance-result.error .result-box { background: #f2dede; border: 1px solid #ebccd1; color: #a94442; }
.result-icon {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.5rem;
}
.success .result-icon { background: var(--success); color: white; }
.error .result-icon { background: var(--error); color: white; }
.balance-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; margin-bottom: 0.25rem; }
.balance-amount { margin: 0.5rem 0; }
.currency { font-size: 1rem; font-weight: 500; vertical-align: top; }
.amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; }
.card-info { font-size: 0.85rem; margin-top: 0.25rem; opacity: 0.8; }
.error-message { font-size: 0.95rem; margin-top: 0.5rem; }

/* ===== TRANSACTION PLACEHOLDER ===== */
.trxn-placeholder { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.trxn-placeholder i { font-size: 3rem; color: #ccc; display: block; margin-bottom: 1rem; }

/* ===== INFO CARDS ===== */
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.info-card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}
.info-card i { font-size: 2rem; color: var(--primary-blue); margin-bottom: 0.75rem; }
.info-card h4 { font-family: var(--primary-font); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.info-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ===== FAQ ===== */
.faq-section {
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid #eee; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  background: #fff;
}
.faq-question:hover { background: #f9f9f9; }
.faq-question i { color: var(--primary-blue); transition: transform 0.2s; }
.faq-question.open i { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 14px 16px;
  background: var(--faq-answer-bg);
  color: var(--faq-answer-text);
  font-size: 0.875rem;
  line-height: 1.6;
}
.faq-answer.open { display: block; }

/* ===== CONTENT SECTION ===== */
.content-section {
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  overflow: hidden;
}
.content-body { padding: 1.5rem; }
.content-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.content-body p:last-child { margin-bottom: 0; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info-item {
  margin-bottom: 1.25rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-icon {
  width: 36px; height: 36px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary-blue);
}
.contact-info-item h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.contact-info-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.contact-success {
  display: none; margin-top: 1rem; padding: 1rem;
  background: #dff0d8; border: 1px solid #d6e9c6;
  border-radius: 4px; color: #3c763d; font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 20px;
  font-size: 0.8rem;
  margin-top: auto;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.8rem;
}
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-copy {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* ===== LOADING ===== */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  color: white;
  flex-direction: column;
  gap: 1rem;
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 40px; height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay span { font-weight: 500; font-size: 0.95rem; }

.hide { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-banner h1 { font-size: 1.35rem; }
  .hero-banner { padding: 1.5rem 20px; }
  .tab-panel { padding: 1.25rem; }
  .widget-tab { padding: 10px 16px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .header-nav { display: none; }
  .widget-tab { flex: 1; text-align: center; font-size: 0.8rem; padding: 10px 8px; }
}
