@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --color-brand: #6c2ef3;
  --color-brand-alt: #e93fad;
  --color-bg: #f6f8fb;
  --color-sidebar: #0d0b29;
  --color-sidebar-accent: #271859;
  --color-card-title: #6e7b93;
  --color-text: #1c1e26;
  --color-muted: #7a8093;
  --color-border: #e1e6ef;
  --color-success: #41c99c;
  --color-warning: #ff9f46;
  --color-error: #ff5d5d;
  --space: 16px;
  /* import-card variables */
  --brand-start: #6c2ef3;
  --text-strong: #1c1e26;
  --text-muted: #7a8093;
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.view {
  width: 100%;
}

/* Login view */
.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 18px;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(124, 74, 255, 0.16),
      transparent 42%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(255, 99, 162, 0.14),
      transparent 38%
    ),
    #05031b;
  color: #f5f6ff;
  position: relative;
  overflow: hidden;
}

.login-view::before,
.login-view::after {
  content: "";
  position: absolute;
  filter: blur(64px);
  opacity: 0.5;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-view::before {
  top: 24%;
  left: 18%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(134, 83, 255, 0.4), transparent 60%);
}

.login-view::after {
  bottom: 6%;
  right: -4%;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(255, 103, 133, 0.35),
    transparent 60%
  );
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: rgba(15, 12, 40, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 28px;
  padding: 42px 34px 34px;
  box-shadow: 0 22px 68px rgba(5, 3, 22, 0.58);
  backdrop-filter: blur(8px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}

.login-logo-ring {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border-radius: 28px;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.brand-logo {
  width: 88px;
  margin: 0;
}

.login-title {
  margin: 6px 0 0;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.login-subtitle {
  margin: 4px 0 6px;
  color: rgba(245, 246, 255, 0.78);
  font-size: 1rem;
}

.forgot-card {
  max-width: 620px;
  gap: 16px;
}

.forgot-title {
  margin: 4px 0 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
}

.forgot-subtitle {
  margin: 4px 0 10px;
  color: rgba(245, 246, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
}

.forgot-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forgot-submit {
  width: 100%;
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, #6c2ef3 0%, #f36b45 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 16px 42px rgba(108, 46, 243, 0.35);
  letter-spacing: 0.02em;
}

.forgot-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(108, 46, 243, 0.45);
}

.forgot-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.forgot-feedback {
  min-height: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: #e0e7ff;
  margin: 0;
}

.forgot-feedback.success {
  color: #b6f0d4;
}

.forgot-feedback.error {
  color: #ffb3c1;
}

.forgot-back {
  width: 100%;
  border-radius: 16px;
  padding: 12px 18px;
  background: transparent;
  border: 1.5px solid #6c2ef3;
  color: #c3b6ff;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.forgot-back:hover {
  color: #ffffff;
  border-color: #f36b45;
  background: rgba(108, 46, 243, 0.08);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
  text-align: left;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(7, 6, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 10px 12px 10px 14px;
  color: #e5e7ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.input-shell:focus-within {
  border-color: rgba(120, 62, 255, 0.75);
  box-shadow: 0 12px 28px rgba(108, 46, 243, 0.16);
}

.input-icon,
.input-hint {
  width: 20px;
  height: 20px;
  color: rgba(229, 231, 255, 0.8);
}

.input-hint {
  margin-left: auto;
  opacity: 0.7;
}

.input-shell input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  padding: 10px 0;
}

.input-shell input::placeholder {
  color: rgba(229, 231, 255, 0.7);
}

.input-shell input:focus {
  outline: none;
}

#login-submit {
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, #6c2ef3 0%, #f36b45 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 16px 42px rgba(108, 46, 243, 0.35);
  letter-spacing: 0.02em;
}

#login-submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(108, 46, 243, 0.45);
}

#login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.form-error {
  min-height: 20px;
  margin: 2px 0 0;
  color: #ffb3c1;
  font-size: 0.9rem;
  text-align: center;
}

.login-actions {
  display: flex;
  justify-content: center;
  padding: 2px 2px 0;
}

.forgot-link {
  color: rgba(229, 231, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .login-view {
    padding: 42px 16px;
  }

  .login-card {
    padding: 32px 26px 28px;
    border-radius: 22px;
    gap: 14px;
  }

  .login-title {
    font-size: 1.8rem;
  }

  .login-subtitle {
    font-size: 0.95rem;
  }

  .forgot-card {
    max-width: 560px;
  }

  .forgot-title {
    font-size: 1.9rem;
  }

  .forgot-subtitle {
    font-size: 0.95rem;
  }

  .input-shell {
    gap: 10px;
    padding: 10px 12px;
  }

  #login-submit {
    width: 100%;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 15px;
  }

  .login-card {
    max-width: 100%;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .login-logo-ring {
    width: 92px;
    height: 92px;
  }

  .brand-logo {
    width: 76px;
  }

  .login-title {
    font-size: 1.6rem;
  }

  .login-subtitle {
    font-size: 0.9rem;
  }

  .forgot-title {
    font-size: 1.6rem;
  }

  .forgot-subtitle {
    font-size: 0.9rem;
  }

  .input-shell input {
    font-size: 0.95rem;
  }

  .login-view::before,
  .login-view::after {
    display: none;
  }
}
/* Dashboard */
#dashboard-view {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: linear-gradient(
    180deg,
    rgba(13, 11, 41, 0.98),
    rgba(13, 11, 41, 0.88)
  );
  color: #ffffff;
  padding: calc(var(--space) * 1.5) var(--space);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 1.5);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.sidebar-header img {
  width: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.nav-item {
  padding: 12px 16px;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}

.session-label {
  color: rgba(255, 255, 255, 0.5);
}

.session-email {
  font-weight: 600;
  word-break: break-word;
}

.logout-button {
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.main-content {
  flex: 1;
  padding: calc(var(--space) * 2);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 1.5);
  position: relative;
  overflow: hidden;
}

.main-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/dashboard-preview.png") no-repeat top right;
  background-size: min(520px, 42vw);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.top-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.top-header p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.ipo-countdown {
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(108, 46, 243, 0.12),
    rgba(233, 63, 173, 0.12)
  );
  text-align: right;
  min-width: 200px;
}

.ipo-countdown .label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.digital-clock {
  font-family: "Poppins", monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-brand);
}

.metric-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space);
}

.metric-card {
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(108, 46, 243, 0.08);
  box-shadow: 0 18px 36px rgba(35, 20, 85, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-card header {
  color: var(--color-card-title);
  font-size: 0.9rem;
  font-weight: 600;
}

.metric-card strong {
  font-size: 1.6rem;
  font-weight: 700;
}

.metric-card[data-metric="used"] strong {
  color: var(--color-warning);
}

.metric-card[data-metric="available"] strong {
  color: var(--color-success);
}

.metric-card[data-metric="available"].metric--negative strong {
  color: var(--color-danger, #e53e3e);
}

.metric-card[data-metric="available"].metric--negative {
  background: #fff5f5;
  border-color: rgba(229, 62, 62, 0.25);
}

.filters {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space);
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(26, 27, 45, 0.08);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-card-title);
}

.filter-field input,
.filter-field select {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  font-size: 0.9rem;
}

.data-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(37, 26, 86, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.data-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.data-card header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.data-card header p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.data-card header span {
  color: var(--color-card-title);
  font-size: 0.85rem;
  background: rgba(108, 46, 243, 0.08);
  padding: 6px 12px;
  border-radius: 12px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

thead {
  background: linear-gradient(
    90deg,
    rgba(108, 46, 243, 0.9),
    rgba(233, 63, 173, 0.85)
  );
  color: #ffffff;
}

th,
td {
  padding: 12px 14px;
  text-align: center;
  font-size: 0.9rem;
}

tbody tr:nth-child(odd) {
  background: rgba(108, 46, 243, 0.04);
}

tbody tr:hover {
  background: rgba(108, 46, 243, 0.08);
}

.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.approvals-actions {
  display: flex;
  gap: 8px;
}

.btn-approve,
.btn-reject {
  border: none;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-approve {
  background: var(--color-success, #38a169);
  color: #fff;
}

.btn-reject {
  background: var(--color-danger, #e53e3e);
  color: #fff;
}

.btn-approve:hover,
.btn-reject:hover {
  opacity: 0.82;
}

.muted {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 1.5);
}

.transactions-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transactions-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-sidebar);
}

.transactions-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.transactions-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 28px;
  border: 1px solid rgba(13, 13, 64, 0.06);
  box-shadow: 0 24px 56px rgba(13, 13, 64, 0.12);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.transactions-card header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0d0d40;
}

.transactions-card header p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.transactions-kind-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.transactions-kind-button {
  border: 1px solid rgba(13, 13, 64, 0.2);
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0d0d40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}

.transactions-kind-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 13, 64, 0.16);
}

.transactions-kind-button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, #6a00ff, #ff6b00);
  box-shadow: 0 18px 42px rgba(106, 0, 255, 0.22);
}

.transactions-filters-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.transactions-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-card-title);
}

.transactions-field span {
  font-weight: 600;
}

.transactions-input-wrapper {
  position: relative;
  width: 100%;
}

.transactions-prefix {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: rgba(13, 13, 64, 0.45);
  font-weight: 600;
  pointer-events: none;
}

.transactions-input {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(13, 13, 64, 0.12);
  background: #f7f8fc;
  color: #0d0d40;
  padding: 14px 18px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.transactions-input:focus {
  outline: none;
  border-color: #6a00ff;
  box-shadow: 0 0 0 4px rgba(106, 0, 255, 0.18);
  background: #ffffff;
}

.transactions-input--prefixed {
  padding-left: 54px;
}

.transactions-input--textarea {
  resize: vertical;
  min-height: 120px;
}

.transactions-field--full {
  grid-column: 1 / -1;
}

.transactions-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.transactions-form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.transactions-feedback {
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.transactions-feedback.success {
  background: #e7f8f0;
  border-color: #b5ead4;
  color: #107353;
}

.transactions-feedback.error {
  background: #ffeceb;
  border-color: #ffc2bc;
  color: #a92020;
}

.transactions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.transactions-button {
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(90deg, #6a00ff, #ff6b00);
  box-shadow: 0 16px 36px rgba(106, 0, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.transactions-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(106, 0, 255, 0.32);
}

.transactions-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.transactions-button--invert {
  background: linear-gradient(90deg, #ff6b00, #6a00ff);
  box-shadow: 0 16px 36px rgba(255, 107, 0, 0.25);
}

.transactions-history {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 16px 48px rgba(37, 26, 86, 0.08);
}

.transactions-history-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.transactions-history-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.transactions-history-header p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.transactions-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.transactions-summary div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transactions-summary span {
  color: var(--color-card-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.transactions-summary strong {
  font-size: 1rem;
  font-weight: 600;
}

.transactions-history-table {
  border-radius: 0;
  border: none;
  overflow-x: auto;
  background: transparent;
}

.transactions-history-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.transactions-history-table thead {
  background: linear-gradient(
    90deg,
    rgba(108, 46, 243, 0.9),
    rgba(233, 63, 173, 0.85)
  );
}

.transactions-history-table th,
.transactions-history-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  text-align: left;
}

.transactions-history-table th {
  color: #ffffff;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  text-align: center;
}

.transactions-history-table tbody tr:nth-child(odd) {
  background: rgba(108, 46, 243, 0.04);
}

.transactions-history-table tbody tr:hover {
  background: rgba(108, 46, 243, 0.08);
}

.transactions-history-table td {
  color: var(--color-text);
}

.transactions-history-message {
  text-align: center;
  padding: 24px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.transactions-history-message--error {
  color: var(--color-error);
}

.transactions-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.transactions-pagination button {
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.transactions-pagination button:hover:not(:disabled) {
  background: rgba(108, 46, 243, 0.08);
}

.transactions-pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.transactions-pagination span {
  font-size: 0.85rem;
  color: var(--color-card-title);
}

.history-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0d0b29;
}

.history-subtitle {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-filter {
  border: 1px solid rgba(13, 11, 41, 0.15);
  background: #ffffff;
  color: #0d0b29;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
}

.history-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 11, 41, 0.12);
}

.history-filter.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, #6c2ef3, #f36b45);
  box-shadow: 0 16px 36px rgba(108, 46, 243, 0.3);
}

.history-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space);
  margin-top: 8px;
}

.history-metric strong {
  font-size: 1.5rem;
}

.history-list-card {
  background: #ffffff;
  color: var(--color-text);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(37, 26, 86, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.history-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-list-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.history-list-header p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.history-count {
  color: var(--color-card-title);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(108, 46, 243, 0.08);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: rgba(108, 46, 243, 0.04);
  border: 1px solid rgba(108, 46, 243, 0.12);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: none;
  transition: background 0.2s ease;
}

.history-item:hover {
  background: rgba(108, 46, 243, 0.08);
}

.history-item__meta {
  display: flex;
  justify-content: space-between;
  color: var(--color-card-title);
  font-size: 0.9rem;
}

.history-item__data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.history-item__block small {
  display: block;
  color: var(--color-card-title);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.history-item__block strong {
  font-size: 1.05rem;
  color: var(--color-text);
}

.history-empty {
  text-align: center;
  padding: 24px;
  color: var(--color-muted);
}

.profile-header {
  background: #ffffff;
  border-radius: 24px;
  padding: 18px 22px;
  box-shadow: 0 18px 42px rgba(13, 13, 64, 0.08);
  margin-bottom: 16px;
}

.profile-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0d0b29;
}

.profile-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(13, 13, 64, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(108, 46, 243, 0.08);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(108, 46, 243, 0.12);
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-upload {
  position: static;
  background: rgba(5, 3, 27, 0.8);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.profile-info h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #0d0b29;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-email {
  margin: 0;
  color: #7a8093;
  font-size: 0.95rem;
}

.profile-info p {
  margin: 0 0 12px;
  color: #6e7b93;
  line-height: 1.5;
}

.profile-bio-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-bio-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #6e7b93;
  font-weight: 700;
}

.profile-bio-header small {
  font-weight: 500;
  color: #9aa1b5;
}

.profile-bio-block textarea {
  width: 100%;
  border: 1px solid rgba(13, 13, 64, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #0d0b29;
  background: #f9f9ff;
  min-height: 110px;
  resize: vertical;
  box-shadow: inset 0 0 0 1px rgba(108, 46, 243, 0.06);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-support {
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #6c2ef3, #f36b45);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(108, 46, 243, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-support:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(108, 46, 243, 0.38);
}

.profile-signout {
  border-radius: 14px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid rgba(13, 13, 64, 0.16);
  font-weight: 700;
  cursor: pointer;
  color: #0d0b29;
  box-shadow: 0 10px 24px rgba(13, 13, 64, 0.1);
}

.registry-header {
  background: #ffffff;
  border-radius: 28px;
  padding: 18px 22px;
  box-shadow: 0 18px 42px rgba(13, 13, 64, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.registry-title-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.registry-title-block h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0d0b29;
}

.registry-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.registry-add {
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #f36b45, #6c2ef3);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(108, 46, 243, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.registry-upload-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.registry-upload-actions .registry-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 29px;
  padding: 0 10px;
  font-size: 0.57rem;
  line-height: 1;
  text-align: center;
}

.import-csv-log {
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  background: #1a1a2e;
  color: #a0e6a0;
  font-size: 0.72rem;
  font-family: monospace;
  border-radius: 6px;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
  display: block;
}

.import-csv-log:empty {
  display: none;
}

.registry-add--sm {
  width: 132px;
  height: 29px;
  padding: 0 10px;
  font-size: 0.57rem;
  box-shadow: 0 10px 24px rgba(108, 46, 243, 0.22);
}

.registry-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(108, 46, 243, 0.4);
}

.registry-search {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(13, 13, 64, 0.12);
  padding: 10px 14px;
  box-shadow: inset 0 0 0 1px rgba(108, 46, 243, 0.06);
}

.registry-search__icon {
  width: 18px;
  height: 18px;
  color: #9da3b5;
}

.registry-search input {
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
}

.registry-export {
  border-radius: 999px;
  border: 1px solid rgba(13, 13, 64, 0.12);
  padding: 10px 16px;
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.registry-export:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 13, 64, 0.12);
}

.registry-currency {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0d0b29;
}

.registry-currency__btn {
  border: 1px solid rgba(13, 13, 64, 0.12);
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.registry-filters {
  margin-top: 14px;
  background: #ffffff;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 16px 38px rgba(13, 13, 64, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.registry-filters__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.registry-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #6e7b93;
}

.registry-field span {
  font-weight: 700;
}

.registry-field input,
.registry-field select {
  border: 1px solid rgba(13, 13, 64, 0.12);
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #0d0b29;
  box-shadow: inset 0 0 0 1px rgba(108, 46, 243, 0.06);
}

.registry-field select[multiple],
.registry-field select[size] {
  min-height: 96px;
}

.registry-pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.registry-pill {
  border: 1px solid rgba(13, 13, 64, 0.15);
  background: #ffffff;
  color: #0d0b29;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
}

.registry-pill.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, #6c2ef3, #f36b45);
  box-shadow: 0 12px 30px rgba(108, 46, 243, 0.28);
}

.registry-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13, 13, 64, 0.12);
}

.registry-field--full {
  grid-column: 1 / -1;
}

.registry-filter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.registry-apply {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(90deg, #6c2ef3, #f36b45);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(108, 46, 243, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.registry-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(108, 46, 243, 0.4);
}

.registry-clear {
  border-radius: 999px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid rgba(13, 13, 64, 0.16);
  font-weight: 700;
  cursor: pointer;
}

.registry-table-card {
  margin-top: 14px;
  background: #f7f8fc;
  border-radius: 24px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(13, 13, 64, 0.06);
}

.registry-table-wrapper {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(13, 13, 64, 0.08);
  box-shadow: 0 12px 28px rgba(13, 13, 64, 0.1);
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.registry-table thead {
  background: #ffffff;
}

.registry-table th {
  text-align: center;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #6e7b93;
  font-weight: 700;
}

.registry-table td {
  text-align: center;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: #0d0b29;
  font-weight: 500;
}

.registry-row.alt {
  background: #f1edff;
}

.registry-row {
  background: #ffffff;
}

.registry-actions-col {
  text-align: right;
}

.registry-action-cell {
  text-align: right;
}

.registry-edit {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 960px) {
  #dashboard-view {
    flex-direction: column;
  }

  .main-content::before {
    background-size: min(380px, 60vw);
    opacity: 0.1;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-footer {
    align-items: flex-end;
  }

  .registry-actions {
    width: 100%;
    align-items: stretch;
  }

  .registry-upload-actions {
    gap: 1rem;
  }

  .registry-search {
    grid-template-columns: 24px 1fr;
  }

  .registry-title-block h2 {
    font-size: 1.6rem;
  }

  .registry-table {
    min-width: 720px;
  }

  .transactions-history {
    border-radius: 24px;
    padding: 20px;
  }

  .transactions-pagination {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-cards {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .transactions-header h2 {
    font-size: 1.5rem;
  }

  .transactions-card {
    padding: 22px;
  }

  .transactions-summary {
    gap: 16px;
  }

  .transactions-history-table table {
    min-width: 520px;
  }

  .registry-actions {
    gap: 10px;
  }

  .profile-card {
    text-align: center;
    align-items: center;
  }

  .profile-main {
    flex-direction: column;
    justify-content: center;
  }

  .profile-avatar {
    margin: 0 auto;
  }
}

@media (min-width: 960px) {
  .transactions-history-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .transactions-summary {
    justify-content: flex-end;
  }
}

/* Card Container */
.import-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(16, 16, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

/* Header */
.import-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.import-header .icon-wrapper {
  background: #F5F5F7;
  color: var(--brand-start); /* Roxo da marca */
  padding: 10px;
  border-radius: 12px;
  display: flex;
}

.import-header h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}

.import-header p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Controles de Arquivo */
.import-body {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.file-control-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

/* Botão "Escolher arquivo" (Label estilizada) */
.btn-select {
  background: #EFEFF2;
  color: var(--text-strong);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-select:hover {
  background: #E5E5E8;
}

/* Nome do arquivo */
.file-name {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Botão Importar */
.btn-import {
  width: auto !important; /* Sobrescreve largura 100% se houver */
  padding: 10px 24px;
  border-radius: 12px;
  opacity: 1;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-import:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

/* Esconde o input original acessivelmente */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Log de Feedback */
.import-log {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 12px;
  color: #333;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #E2E8F0;
}
.import-log.hidden {
  display: none;
}
.import-log.success { color: #10B981; border-color: #10B981; background: #ECFDF5; }
.import-log.error { color: #EF4444; border-color: #EF4444; background: #FEF2F2; }


.csv-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 0 0;
}

/* Mantém todos com o mesmo tamanho */
.csv-toolbar .phink-btn,
.csv-toolbar .phink-btn--file {
  height: 56px;
}

/* Botão arquivo com texto + nome do arquivo */
.phink-btn--file {
  flex: 1;
  min-width: 360px;
  justify-content: space-between;
  padding: 0 18px;
}

/* Nome do arquivo truncado */
.phink-btn__meta {
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  opacity: 0.95;
}

/* Log no padrão escuro do card */
.registry-log {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  white-space: pre-wrap;
  max-height: 260px;
  overflow: auto;
}

/* No mobile */
@media (max-width: 520px) {
  .phink-btn--file {
    min-width: 100%;
  }
  .phink-btn__meta {
    max-width: 45%;
  }
}

/* ===== Base button phink-btn ===== */
.phink-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #6c2ef3, #f36b45);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(108, 46, 243, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.phink-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(108, 46, 243, 0.32);
}

.phink-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 27, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.modal {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 32px 80px rgba(5, 3, 27, 0.32);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d0b29;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #7a8093;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: rgba(108, 46, 243, 0.08);
  color: #0d0b29;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #6e7b93;
  font-weight: 600;
}

.modal-field input,
.modal-field select {
  border: 1px solid rgba(13, 13, 64, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #0d0b29;
  background: #f9f9ff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: #6c2ef3;
  box-shadow: 0 0 0 3px rgba(108, 46, 243, 0.12);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* ===== Hamburger menu toggle ===== */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== Mobile sidebar (≤ 640px): hamburger collapsible ===== */
@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .sidebar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 16px;
    gap: 0;
  }

  .sidebar-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .sidebar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    margin-top: 12px;
  }

  .sidebar.nav-open .sidebar-nav {
    display: flex;
  }

  .sidebar-footer {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    align-items: flex-start;
  }

  .sidebar.nav-open .sidebar-footer {
    display: flex;
  }

  .nav-item {
    padding: 10px 14px;
    width: 100%;
  }
}

/* ===== Modal responsive ===== */
@media (max-width: 540px) {
  .modal {
    padding: 20px;
    border-radius: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions button {
    width: 100%;
  }
}

/* ===== Extra mobile tweaks ===== */
@media (max-width: 480px) {
  .main-content {
    padding: var(--space);
  }

  .transactions-card {
    border-radius: 20px;
    padding: 16px;
  }

  .transactions-button {
    width: 100%;
    text-align: center;
  }

  .transactions-actions {
    flex-direction: column;
  }

  .history-header {
    flex-direction: column;
    gap: 12px;
  }

  .history-filters {
    width: 100%;
  }

  .history-filter {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .registry-header {
    border-radius: 20px;
    padding: 14px 16px;
  }

  .registry-title-block h2 {
    font-size: 1.4rem;
  }

  .registry-upload-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .registry-upload-actions .registry-add {
    width: 100%;
    height: auto;
    padding: 10px 14px;
    font-size: 0.8rem;
    text-align: center;
  }

  .top-header h2 {
    font-size: 1.4rem;
  }

  .metric-card strong {
    font-size: 1.35rem;
  }

  .data-card {
    border-radius: 16px;
    padding: 14px;
  }

  .transactions-history {
    border-radius: 16px;
    padding: 14px;
  }

  .transactions-pagination {
    justify-content: space-between;
    gap: 8px;
  }

  .profile-header {
    border-radius: 16px;
  }

  .profile-card {
    border-radius: 16px;
    padding: 16px;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-support,
  .profile-signout {
    width: 100%;
    text-align: center;
  }
}
