/* Glass Card */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 20px var(--glass-glow);
}

/* Premium Button */
.btn-premium {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(193, 163, 95, 0.3);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 163, 95, 0.5);
  filter: brightness(1.1);
}

.btn-premium:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--bg-input);
  border-color: var(--text-muted);
}

/* Premium Input */
.input-premium {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.input-premium:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glass-glow);
}

/* Badge */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-error { background: rgba(239, 68, 68, 0.1); color: var(--error); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--info); }

/* --- Apple HIG Floating APK Install Banner --- */
.apk-install-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 99999;
  width: calc(100% - 32px);
  max-width: 380px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.apk-install-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.apk-banner-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apk-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E4BFF 0%, #1032CC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 75, 255, 0.35);
}

.apk-banner-info {
  flex: 1;
}

.apk-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #1D1D1F;
  margin: 0;
  line-height: 1.25;
}

.apk-banner-desc {
  font-size: 11px;
  color: #6e6e73;
  margin: 2px 0 0 0;
  line-height: 1.35;
}

.apk-banner-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.apk-banner-btn-download {
  flex: 1;
  height: 38px;
  background: #1E4BFF;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.apk-banner-btn-download:active {
  background-color: #1032CC;
}

.apk-banner-btn-dismiss {
  height: 38px;
  padding: 0 16px;
  background: rgba(120, 120, 128, 0.08);
  color: #1E4BFF;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.apk-banner-btn-dismiss:active {
  background-color: rgba(120, 120, 128, 0.16);
}

/* Dark mode support for the HIG banner */
body.dark-mode .apk-install-banner,
body.dark .apk-install-banner,
[data-theme="dark"] .apk-install-banner {
  background: rgba(28, 28, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

body.dark-mode .apk-banner-title,
body.dark .apk-banner-title,
[data-theme="dark"] .apk-banner-title {
  color: #FFFFFF;
}

body.dark-mode .apk-banner-desc,
body.dark .apk-banner-desc,
[data-theme="dark"] .apk-banner-desc {
  color: #AEAEB2;
}

body.dark-mode .apk-banner-btn-dismiss,
body.dark .apk-banner-btn-dismiss,
[data-theme="dark"] .apk-banner-btn-dismiss {
  background: rgba(255, 255, 255, 0.1);
  color: #3A86FF;
}


/* --- APPLE HIG SHEET MODAL SYSTEM --- */
.hig-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 99999999 !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

/* PRIORIDADE MÁXIMA PARA O MODAL DO DOSSIÊ (FICA NO TOPO ABSOLUTO DE QUALQUER MODAL) */
.dossie-modal-backdrop,
#dossie-decisor-modal {
  z-index: 2147483640 !important;
}
.dossie-modal-backdrop .dossie-modal-container,
#dossie-modal-container {
  z-index: 2147483645 !important;
}

.hig-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hig-sheet-modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.28, 0.11, 0.32, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Segoe UI", Roboto, sans-serif;
  margin: 0 auto;
}

@media (min-width: 1025px) {
  .hig-sheet-overlay {
    align-items: center;
  }
  .hig-sheet-modal {
    border-radius: 24px;
    transform: translateY(30px) scale(0.96);
    max-height: 85vh;
  }
  .hig-sheet-overlay.active .hig-sheet-modal {
    transform: translateY(0) scale(1);
  }
}

.hig-sheet-overlay.active .hig-sheet-modal {
  transform: translateY(0);
}

.hig-sheet-drag-handle {
  width: 38px;
  height: 5px;
  background: rgba(120, 120, 128, 0.35);
  border-radius: 99px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.hig-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 14px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
  flex-shrink: 0;
}

.hig-sheet-header-title {
  font-size: 17px;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.4px;
  margin: 0;
  text-align: center;
}

.hig-btn-cancel-link {
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 400;
  color: #007AFF;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.hig-btn-cancel-link:active {
  opacity: 0.5;
}

.hig-btn-done-link {
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 600;
  color: #007AFF;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.hig-btn-done-link:active {
  opacity: 0.5;
}

.hig-sheet-body {
  flex: 1;
  min-height: 0;
  padding: 16px 14px calc(48px + env(safe-area-inset-bottom, 24px));
  box-sizing: border-box;
  width: 100%;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hig-section-header {
  font-size: 12px;
  font-weight: 600;
  color: #6E6E73;
  text-transform: uppercase;
  letter-spacing: -0.08px;
  margin: 0 0 6px 10px;
}

.hig-inset-group {
  background: #F2F2F7;
  border-radius: 14px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.hig-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  min-height: 46px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.hig-field-row:last-child {
  border-bottom: none;
}

.hig-field-label {
  font-size: 14px;
  font-weight: 500;
  color: #1C1C1E;
  flex-shrink: 0;
  width: 85px;
  white-space: nowrap;
}

.hig-field-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #000000;
  font-family: inherit;
  outline: none;
  text-align: right;
  box-sizing: border-box;
}

.hig-field-input::placeholder {
  color: #C7C7CC;
}

.hig-field-textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #000000;
  font-family: inherit;
  outline: none;
  resize: none;
  min-height: 54px;
  padding: 4px 0;
  box-sizing: border-box;
}

.hig-field-textarea::placeholder {
  color: #C7C7CC;
}

.hig-field-select {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #007AFF;
  font-family: inherit;
  outline: none;
  text-align: right;
  text-align-last: right;
  direction: ltr;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 18px;
  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' stroke='%23007AFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hig-field-select option,
.hig-field-select optgroup {
  color: #0F172A;
  background: #FFFFFF;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
}

.hig-field-label-wide {
  font-size: 14px;
  font-weight: 500;
  color: #1C1C1E;
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 8px;
}

/* Custom Select Trigger dentro de hig-field-row (Padrão Apple HIG) */
.hig-field-row .hig-select-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  background: transparent !important;
}

.hig-field-row .hig-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0;
  cursor: pointer;
  text-align: right;
  max-width: 100%;
}

.hig-field-row .hig-select-trigger:active,
.hig-field-row .hig-select-trigger.active {
  transform: scale(0.98);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hig-field-row .hig-select-text {
  font-size: 14px;
  font-weight: 600;
  color: #007AFF !important;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.hig-field-row .hig-select-icon {
  width: 14px;
  height: 14px;
  color: #007AFF !important;
  stroke: #007AFF !important;
  flex-shrink: 0;
}

.hig-field-row input.hig-field-select {
  border: none !important;
  background: transparent !important;
  color: #007AFF !important;
  font-weight: 600 !important;
  text-align: right !important;
  padding-right: 0 !important;
  background-image: none !important;
}

/* Popover Menu HIG Flutuante / Mini Pop-up */
.hig-select-menu {
  position: fixed !important;
  z-index: 2147483647 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 0.5px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22), 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  padding: 6px !important;
  box-sizing: border-box !important;
}

.hig-select-menu.open,
.hig-select-menu.active {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.hig-select-item {
  padding: 11px 14px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1C1C1E !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: background 0.15s ease !important;
  min-height: 44px !important;
}

.hig-select-item:hover,
.hig-select-item:active {
  background: rgba(0, 122, 255, 0.08) !important;
  color: #007AFF !important;
}

.hig-select-item.selected {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #007AFF !important;
  font-weight: 700 !important;
}

.hig-select-item .hig-check {
  width: 16px !important;
  height: 16px !important;
  color: #007AFF !important;
  stroke: #007AFF !important;
}

/* --- APPLE HIG AUTOCOMPLETE POP-UP DROPDOWN --- */
.hig-autocomplete-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.hig-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -90px; /* Alinha com o início do grupo */
  right: -14px;
  z-index: 999999;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  backdrop-filter: blur(25px) saturate(190%);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  pointer-events: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
  padding: 6px 6px 40px 6px;
  box-sizing: border-box;
  display: none;
  animation: higPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hig-autocomplete-dropdown::-webkit-scrollbar {
  width: 5px;
}

.hig-autocomplete-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.hig-autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 99px;
}

.hig-autocomplete-dropdown.active {
  display: block;
}

.hig-autocomplete-item {
  padding: 8px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  min-height: 48px;
  box-sizing: border-box;
}

.hig-autocomplete-item:last-child {
  border-bottom: none;
}

.hig-autocomplete-item:hover,
.hig-autocomplete-item:active {
  background: rgba(0, 119, 182, 0.1);
}

.hig-autocomplete-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.hig-autocomplete-item-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
}

@keyframes higPopIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hig-btn-action-primary {
  width: 100%;
  min-height: 50px;
  height: 50px;
  flex-shrink: 0 !important;
  background: #007AFF;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 24px;
  padding: 0 16px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hig-btn-action-primary:active {
  transform: scale(0.98);
  background: #0062CC;
}

.hig-btn-action-secondary {
  width: 100%;
  min-height: 50px;
  height: 50px;
  flex-shrink: 0 !important;
  background: rgba(120, 120, 128, 0.12);
  color: #007AFF;
  border: none !important;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 24px;
  padding: 0 16px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  box-shadow: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  -webkit-appearance: none;
  appearance: none;
}

.hig-btn-action-secondary:active {
  transform: scale(0.98);
  background: rgba(120, 120, 128, 0.22);
}

.hig-btn-action-secondary.hig-btn-destructive {
  color: #FF3B30 !important;
  background: rgba(255, 59, 48, 0.1) !important;
}

.hig-btn-action-secondary.hig-btn-destructive:active {
  background: rgba(255, 59, 48, 0.18) !important;
}

/* Container de ações Apple HIG para Sheet Modals */
.hig-sheet-actions-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 16px !important;
  margin-bottom: 20px !important;
}

.hig-sheet-actions-row .hig-btn-action-primary,
.hig-sheet-actions-row .hig-btn-action-secondary {
  flex: 1 1 0 !important;
  margin: 0 !important;
  width: auto !important;
}

/* --- GLOBAL MOBILE & TABLET APPLE HIG SHEET MODAL STYLING --- */
@media (max-width: 1024px) {
  .modal-overlay {
    align-items: flex-end !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.45) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    padding: 0 !important;
    z-index: 9999999 !important;
  }

  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    background: rgba(255, 255, 255, 0.95) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
    margin: 0 !important;
    border: none !important;
    transform: translateY(100%) !important;
    transition: transform 0.36s cubic-bezier(0.28, 0.11, 0.32, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Segoe UI", Roboto, sans-serif !important;
  }

  .modal-overlay.active .modal-content {
    transform: translateY(0) !important;
  }

  .modal-header {
    padding: 12px 20px 14px !important;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
  }

  .modal-title {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    letter-spacing: -0.4px !important;
  }

  .modal-close {
    font-size: 20px !important;
    color: #8E8E93 !important;
    background: rgba(120, 120, 128, 0.12) !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    line-height: 1 !important;
    padding: 0 !important;
  }

  .modal-body {
    padding: 16px 20px 24px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 !important;
  }

  .modal-footer {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 12px)) !important;
    border-top: 0.5px solid rgba(60, 60, 67, 0.12) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .modal-footer button {
    flex: 1 1 0 !important;
    min-width: 120px !important;
    height: 46px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  /* Quando houver 3 ou mais botões no rodapé mobile, empilha para não espremer os botões */
  .modal-footer:has(> :nth-child(3)) {
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }

  .modal-footer:has(> :nth-child(3)) button {
    width: 100% !important;
    flex: none !important;
    min-height: 46px !important;
  }
}

/* --- UNIVERSAL & MOBILE BENTO / FORM CONTROLS --- */
.premium-desktop-form {
  width: 100%;
  box-sizing: border-box;
}

.p-bento-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .p-bento-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.p-bento-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.p-bento-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  width: 100%;
}

.p-bento-title {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.p-form-group:last-child {
  margin-bottom: 0;
}

.p-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.p-form-row {
  display: flex;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.p-form-row .p-form-group {
  flex: 1;
  min-width: 0;
}

.p-input {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  font-size: 14px;
  color: #0F172A;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.p-input:focus {
  border-color: #007AFF;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
  background: #FFFFFF;
}

select.p-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.btn-premium-primary {
  background: #007AFF;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.btn-premium-primary:active {
  transform: scale(0.98);
  background: #0062CC;
}

.btn-premium-secondary {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-premium-secondary:active {
  background: #E2E8F0;
  transform: scale(0.98);
}

.btn-premium-danger {
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-premium-danger:active {
  background: #DC2626;
  transform: scale(0.98);
}

