@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #f3efe6;
  --surface: #ffffff;
  --surface-alt: #fbf7f0;
  --text: #0b1f17;
  --muted: #55665f;
  --accent: #0b5c47;
  --accent-2: #f6c540;
  --accent-3: #1a7f5b;
  --line: #e4ded2;
  --shadow: 0 18px 48px rgba(11, 31, 23, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --font-body: "Sora", sans-serif;
  --font-head: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #fff6dd 0%, #f3efe6 55%), #f3efe6;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 31, 23, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-sub {
  font-weight: 500;
  color: var(--muted);
}

.brand.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.nav a {
  padding: 6px 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(15, 107, 78, 0.12);
  color: var(--accent);
}

.nav-link {
  position: relative;
}

.nav-link.is-active {
  color: var(--accent);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(11, 31, 23, 0.15);
  border-radius: 12px;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 10, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 25;
  cursor: pointer;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(360px, 90vw);
  height: 100vh;
  background: var(--surface);
  box-shadow: -12px 0 30px rgba(11, 31, 23, 0.2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.25s ease;
  z-index: 30;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-nav__links {
  display: grid;
  gap: 12px;
}

.mobile-nav__links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--text);
}

.mobile-nav__links a:hover {
  background: rgba(11, 92, 71, 0.12);
  color: var(--accent);
}

.mobile-nav__links .nav-link.is-active {
  background: rgba(11, 92, 71, 0.14);
  color: var(--accent);
  border: 1px solid rgba(11, 92, 71, 0.2);
}

.mobile-nav__links .nav-link.is-active::after {
  display: none;
}

.mobile-nav__footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.mobile-nav__footer .user-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.link,
.link-muted {
  color: var(--accent);
  font-weight: 600;
}

.link-muted {
  color: var(--muted);
}

.logout-form {
  margin: 0;
}

.logout-button {
  background: transparent;
  border: 1px solid rgba(11, 31, 23, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-button:hover {
  background: rgba(11, 92, 71, 0.12);
  border-color: rgba(11, 92, 71, 0.3);
  color: var(--accent);
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page {
  padding: 36px 0 80px;
  animation: fadeUp 0.6s ease both;
}

.hero {
  margin-bottom: 30px;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 37, 27, 0.05);
}

.hero-card h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 6px 0 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
}

.status-stack {
  display: grid;
  gap: 10px;
  min-width: 200px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.label {
  font-size: 0.85rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-span-2 {
  grid-column: span 2;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(16, 37, 27, 0.05);
  box-shadow: var(--shadow);
}

.card.narrow {
  max-width: 520px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

.btn.btn-sm {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  border-color: transparent;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 31, 23, 0.18);
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input.is-invalid {
  border-color: #7b1721;
}

.field-errors {
  color: #7b1721;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: -10px;
  margin-bottom: 4px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 4px;
}

.non-field-errors {
  padding: 10px 12px;
  background: rgba(123, 23, 33, 0.08);
  border: 1px solid rgba(123, 23, 33, 0.2);
  border-radius: 12px;
  color: #7b1721;
  font-size: 0.85rem;
  margin-bottom: 12px;
  list-style: none;
}

/* Currency Dropdown - Enhanced Premium Design */
.currency-selector-form {
  position: relative;
}

.currency-dropdown {
  position: relative;
  display: inline-block;
  min-width: 140px;
}

.currency-dropdown-trigger {
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--surface-alt), #fff);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(11, 31, 23, 0.08);
  position: relative;
  overflow: hidden;
}

.currency-dropdown-trigger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 92, 71, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.currency-dropdown-trigger:hover::before {
  opacity: 1;
}

.currency-dropdown-trigger:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(11, 92, 71, 0.15);
  transform: translateY(-2px);
}

.currency-dropdown-trigger__content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.currency-dropdown-trigger__text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.currency-dropdown-trigger::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%230B5C47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.currency-dropdown.is-open .currency-dropdown-trigger::after {
  transform: rotate(180deg);
}

.currency-dropdown.is-open .currency-dropdown-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 92, 71, 0.1);
}

/* Currency Icon Styling */
.currency-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(11, 92, 71, 0.1), rgba(26, 127, 91, 0.08));
  border-radius: 8px;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.currency-dropdown-trigger:hover .currency-icon {
  background: linear-gradient(135deg, rgba(11, 92, 71, 0.15), rgba(26, 127, 91, 0.12));
  transform: scale(1.05);
}

/* Dropdown Menu */
.currency-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 100%;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(11, 31, 23, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1000;
}

.currency-dropdown.is-open .currency-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Dropdown Items */
.currency-dropdown-item {
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.currency-dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.currency-dropdown-item:hover::before,
.currency-dropdown-item.is-active::before {
  transform: scaleY(1);
}

.currency-dropdown-item__main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-dropdown-item .currency-icon {
  width: 32px;
  height: 32px;
}

.currency-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.currency-dropdown-item:hover {
  background: linear-gradient(90deg, rgba(11, 92, 71, 0.08), transparent);
}

.currency-dropdown-item:hover .currency-icon {
  background: linear-gradient(135deg, rgba(11, 92, 71, 0.2), rgba(26, 127, 91, 0.15));
  transform: scale(1.1) rotate(5deg);
}

.currency-dropdown-item:hover .currency-name {
  color: var(--accent);
}

.currency-dropdown-item.is-active {
  background: linear-gradient(90deg, rgba(11, 92, 71, 0.12), rgba(11, 92, 71, 0.04));
}

.currency-dropdown-item.is-active .currency-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 92, 71, 0.3);
}

.currency-dropdown-item.is-active .currency-name {
  color: var(--accent);
}

.currency-dropdown-item .currency-symbol {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
}

.currency-dropdown-item:hover .currency-symbol {
  color: var(--accent-3);
}

.currency-dropdown-item.is-active .currency-symbol {
  color: var(--accent);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .currency-dropdown {
    min-width: 120px;
  }

  .currency-dropdown-trigger {
    padding: 10px 14px;
  }

  .currency-dropdown-menu {
    min-width: 200px;
  }

  .currency-dropdown-item {
    padding: 12px 14px;
  }
}

.password-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.password-row input {
  flex: 1;
  min-width: 0;
}

.password-toggle {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.password-toggle:hover {
  color: var(--accent);
  border-color: rgba(15, 107, 78, 0.3);
}

.password-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(15, 107, 78, 0.35);
  background: rgba(15, 107, 78, 0.12);
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.form-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
  width: 100%;
}

.upload-field {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #fcfaf6;
  display: grid;
  gap: 12px;
}

.upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-title {
  display: block;
  font-weight: 600;
}

.upload-input input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.upload-preview {
  min-height: 140px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #fff;
  text-align: center;
  padding: 12px;
}

.upload-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
}

.converter {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}

.converter-result {
  font-weight: 600;
  color: var(--accent);
}

.table-wrapper {
  overflow-x: auto;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form {
  display: inline;
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}

th {
  font-weight: 600;
  color: var(--muted);
}

.mono {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f3f0e9;
}

.badge-pending {
  background: rgba(230, 164, 58, 0.2);
  color: #8b5c12;
}

.badge-active,
.badge-approved,
.badge-completed {
  background: rgba(15, 107, 78, 0.18);
  color: #0f6b4e;
}

.badge-rejected,
.badge-failed,
.badge-canceled,
.badge-frozen {
  background: rgba(123, 23, 33, 0.16);
  color: #7b1721;
}

.badge-not_submitted {
  background: rgba(92, 109, 99, 0.18);
  color: #5c6d63;
}

.badge-inactive {
  background: rgba(92, 109, 99, 0.18);
  color: #5c6d63;
}

.badge-unverified {
  background: rgba(230, 164, 58, 0.2);
  color: #8b5c12;
}

.alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fef6e7;
}

.alert-success {
  background: rgba(15, 107, 78, 0.12);
  border-color: rgba(15, 107, 78, 0.2);
}

.alert-error {
  background: rgba(123, 23, 33, 0.12);
  border-color: rgba(123, 23, 33, 0.2);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.meta-list span {
  color: var(--muted);
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.auth-panel {
  width: min(420px, 90vw);
  padding: 32px 0;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 37, 27, 0.08);
}

/* PIN Modal - Premium Design */
.pin-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.pin-modal.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.pin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 23, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

.pin-modal__card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  width: min(480px, 100%);
  max-width: 92vw;
  box-shadow: 0 24px 60px rgba(11, 31, 23, 0.25);
  border: 1px solid rgba(11, 92, 71, 0.1);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.pin-modal__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 92, 71, 0.12), rgba(26, 127, 91, 0.08));
  border-radius: 14px;
  color: var(--accent);
  border: 1px solid rgba(11, 92, 71, 0.15);
}

.pin-modal__title-group {
  flex: 1;
  min-width: 0;
}

.pin-modal__title-group h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 600;
}

.pin-modal__subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.pin-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pin-modal__close:hover {
  background: rgba(11, 92, 71, 0.08);
  border-color: rgba(11, 92, 71, 0.2);
  color: var(--accent);
  transform: rotate(90deg);
}

/* PIN Grid */
.pin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pin-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pin-input-wrapper {
  position: relative;
}

.pin-input-wrapper input {
  width: 100%;
  height: 64px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-body);
}

.pin-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 92, 71, 0.1);
  transform: translateY(-2px);
}

.pin-input-wrapper input:not(:placeholder-shown) {
  border-color: var(--accent-3);
  background: rgba(11, 92, 71, 0.04);
}

.pin-input-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: all 0.2s ease;
  opacity: 0;
}

.pin-input-wrapper input:not(:placeholder-shown)~.pin-input-indicator {
  opacity: 1;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(11, 92, 71, 0.4);
}

/* PIN Options */
.pin-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.pin-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.pin-toggle input[type="checkbox"] {
  display: none;
}

.pin-toggle__slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--line);
  border-radius: 999px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.pin-toggle__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pin-toggle input:checked~.pin-toggle__slider {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.pin-toggle input:checked~.pin-toggle__slider::after {
  transform: translateX(20px);
}

.pin-toggle__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.pin-forgot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pin-forgot-link:hover {
  color: var(--accent-3);
  gap: 8px;
}

.pin-forgot-link svg {
  flex-shrink: 0;
}

/* PIN Actions */
.pin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.pin-modal__actions .btn {
  min-width: 120px;
}

.pin-modal__actions .btn.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pin-modal__actions .btn.primary svg {
  transition: transform 0.2s ease;
}

.pin-modal__actions .btn.primary:hover svg {
  transform: translateX(2px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .pin-modal__card {
    padding: 24px;
  }

  .pin-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pin-input-wrapper input {
    height: 56px;
    font-size: 1.3rem;
  }

  .pin-modal__header {
    gap: 12px;
  }

  .pin-modal__icon {
    width: 40px;
    height: 40px;
  }

  .pin-modal__title-group h3 {
    font-size: 1.15rem;
  }

  .pin-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pin-modal__actions {
    flex-direction: column-reverse;
  }

  .pin-modal__actions .btn {
    width: 100%;
  }
}

.bg-orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.18;
  z-index: 0;
}

.bg-orb--one {
  background: radial-gradient(circle at 30% 30%, rgba(246, 197, 64, 0.9), transparent 70%);
  top: -120px;
  left: -80px;
}

.bg-orb--two {
  background: radial-gradient(circle at 70% 70%, rgba(90, 170, 130, 0.9), transparent 70%);
  bottom: -140px;
  right: -120px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shake {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  50% {
    transform: translateX(6px);
  }

  75% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .user-chip {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding: 14px 0;
  }

  .hero-card {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 24px 0 60px;
  }

  .card {
    padding: 18px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .meta-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}