* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a0f00 40%, #ff6600 100%);
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.sub-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff8533;
  display: block;
  margin-bottom: 6px;
}

.title {
  font-size: 28px;
  font-weight: 800;
  color: #ff6600;
  text-align: center;
  word-break: break-word;
  line-height: 1.2;
  margin-bottom: 8px;
}

.tagline {
  font-size: 14px;
  color: #aaaaaa;
  text-align: center;
}

/* Tab Switcher for Accounts */
.tabs {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  background-color: #121212;
  border: 1px solid #2a2a2a;
  color: #888888;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tab-btn.active {
  background-color: #1f1f1f;
  border-color: #ff6600;
  color: #ff6600;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

.card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.box {
  background-color: #0a0a0a;
  border: 1px solid #222222;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.box-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.box-content.full-width {
  width: 100%;
}

.box-label {
  font-size: 11px;
  font-weight: 700;
  color: #888888;
  letter-spacing: 0.5px;
}

.box-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
}

.currency-symbol {
  font-size: 20px;
  font-weight: 600;
  color: #888888;
  padding-right: 8px;
}

/* IBAN Box Specifics */
.iban-box {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.iban-value {
  font-size: 14px; /* Exactly 2px smaller than default 16px box-value */
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Mono", "Courier New", monospace;
  overflow: hidden;
  text-overflow: clip;
}

.iban-action {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Buttons */
.btn-copy {
  background-color: #ff6600;
  color: #3d1700;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.btn-copy:active {
  transform: scale(0.96);
  background-color: #e65c00;
}

.icon {
  flex-shrink: 0;
}

.footer-note {
  font-size: 12px;
  color: #cccccc;
  text-align: center;
  margin-top: 20px;
}

/* Modal / Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  display: none;
  opacity: 0;
}

.modal-card {
  background-color: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 24px 20px;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.modal-icon {
  margin-bottom: 12px;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.modal-text {
  font-size: 14px;
  color: #bbbbbb;
  line-height: 1.4;
}

.font-bold {
  font-weight: 600;
  color: #ffffff;
}

.modal-btn {
  width: 100%;
  background-color: #ff6600;
  color: #3d1700;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-btn:focus {
  outline: 2px solid #ffffff;
}

@media (max-width: 380px) {
  .iban-value {
    font-size: 12px; /* Auto-scale down slightly on very small devices */
  }
}
