



.portal-main {
  min-height: calc(100vh - 180px);
  background: var(--az-cream, #FFF8DC);
  padding: 32px 0;
}


.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text, #2d1810);
  margin: 0 0 4px 0;
}

.portal-title .muted {
  font-size: 14px;
  color: var(--muted, #6b7280);
}

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


.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--az-adobe, #D2691E);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--az-rust, #B7410E);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #fff;
  color: var(--az-adobe, #D2691E);
  border: 1px solid var(--az-adobe, #D2691E);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--az-cream, #FFF8DC);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-block {
  display: block;
  width: 100%;
}

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

.btn-danger:hover {
  background: #b91c1c;
}


.subscription-banner,
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.subscription-banner {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.subscription-content,
.upgrade-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subscription-icon,
.upgrade-icon {
  font-size: 32px;
}

.subscription-info h3,
.upgrade-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.subscription-info p,
.upgrade-info p {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

.subscription-badge {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.upgrade-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
}

.upgrade-banner h3 {
  color: #92400e;
}

.upgrade-banner p {
  color: #78716c;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border, #e4d5c4);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text, #2d1810);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted, #6b7280);
}


.portal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border, #e4d5c4);
  padding-bottom: 0;
  overflow-x: auto;
}

.tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #6b7280);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text, #2d1810);
}

.tab.active {
  color: var(--az-adobe, #D2691E);
  border-bottom-color: var(--az-adobe, #D2691E);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


.sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.sub-tab {
  padding: 8px 16px;
  background: var(--az-cream, #FFF8DC);
  border: 1px solid var(--border, #e4d5c4);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #2d1810);
  cursor: pointer;
  transition: all 0.2s;
}

.sub-tab:hover {
  background: #fff;
}

.sub-tab.active {
  background: var(--az-adobe, #D2691E);
  color: #fff;
  border-color: var(--az-adobe, #D2691E);
}


.card {
  background: #fff;
  border: 1px solid var(--border, #e4d5c4);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #2d1810);
  margin: 0 0 20px 0;
}


.form-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border, #e4d5c4);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #2d1810);
  margin: 0 0 16px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #2d1810);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border, #e4d5c4);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text, #2d1810);
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--az-adobe, #D2691E);
}

.form-group input:disabled {
  background: var(--az-cream, #FFF8DC);
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}


.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-label span {
  font-size: 14px;
  color: var(--text, #2d1810);
}


.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px dashed var(--border, #e4d5c4);
  border-radius: 8px;
  background: var(--az-cream, #FFF8DC);
}

.file-upload input[type="file"] {
  width: auto;
  padding: 0;
  border: none;
  background: none;
}


.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}


.empty-state {
  text-align: center;
  padding: 48px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text, #2d1810);
  margin: 0 0 8px 0;
}

.empty-state p {
  font-size: 14px;
  color: var(--muted, #6b7280);
  margin: 0 0 20px 0;
}


.applications-list,
.messages-list,
.notifications-list,
.leads-list,
.listings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--az-cream, #FFF8DC);
  border: 1px solid var(--border, #e4d5c4);
  border-radius: 10px;
  transition: all 0.2s;
}

.list-item:hover {
  border-color: var(--az-adobe, #D2691E);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #2d1810);
  margin-bottom: 4px;
}

.list-item-meta {
  font-size: 13px;
  color: var(--muted, #6b7280);
}

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


.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.new {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.in-review {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.accepted {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.status-badge.pending {
  background: #e5e7eb;
  color: #4b5563;
}

.status-badge.verified {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.featured {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.status-badge.premium {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #fff;
}


.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.verified-badge::before {
  content: '✓';
}


.available-now-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.available-now-badge::before {
  content: '●';
  color: #10b981;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border, #e4d5c4);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #2d1810);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted, #6b7280);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--az-cream, #FFF8DC);
  color: var(--text, #2d1810);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border, #e4d5c4);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}


.pricing-card {
  text-align: center;
  padding: 20px;
}

.pricing-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.pricing-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #2d1810);
  margin: 0 0 12px 0;
}

.price {
  font-size: 36px;
  font-weight: 700;
  color: var(--az-adobe, #D2691E);
  margin-bottom: 20px;
}

.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted, #6b7280);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
}

.features-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text, #2d1810);
  border-bottom: 1px solid var(--border, #e4d5c4);
}

.features-list li:last-child {
  border-bottom: none;
}

.small {
  font-size: 12px;
}


@media (max-width: 768px) {
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .portal-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .list-item-actions {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .subscription-banner,
  .upgrade-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .subscription-content,
  .upgrade-content {
    flex-direction: column;
    text-align: center;
  }
}


.monetization-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border, #e4d5c4);
}

.monetization-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.monetization-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text, #2d1810);
  margin: 0 0 8px 0;
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.pricing-option {
  padding: 24px;
  border: 2px solid var(--border, #e4d5c4);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
}

.pricing-option:hover {
  border-color: var(--az-adobe, #D2691E);
}

.pricing-option.popular {
  border-color: #f59e0b;
  background: #fffbeb;
  position: relative;
}

.pricing-option.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
}

.pricing-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--az-cream, #FFF8DC);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #2d1810);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--az-adobe, #D2691E);
  margin-bottom: 16px;
}

.pricing-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #6b7280);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text, #2d1810);
}

.donation-options {
  margin-top: 16px;
}


.current-credits-display {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.credits-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
}

.credits-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--az-adobe, #D2691E);
}

.credits-label {
  font-size: 14px;
  color: var(--muted, #6b7280);
  font-weight: 500;
}


.call-list-counters {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.counter-badge {
  padding: 6px 12px;
  background: var(--az-cream, #FFF8DC);
  border: 1px solid var(--az-adobe, #D2691E);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text, #2d1810);
}

.counter-badge strong {
  color: var(--az-adobe, #D2691E);
  font-weight: 700;
}


.data-table tr.my-resource {
  background-color: rgba(210, 105, 30, 0.05);
  border-left: 3px solid var(--az-adobe, #D2691E);
}

.data-table tr.my-resource:hover {
  background-color: rgba(210, 105, 30, 0.1);
}
