/* ===== JURISCONNECT — COMPONENTS ===== */

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--black);
}

.welcome-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
  transform: scale(1.05);
  transition: transform 20s ease;
}

.welcome-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.85) 100%
  );
}

.welcome-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.welcome-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.welcome-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.welcome-logo-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 16px rgba(26,108,240,0.8));
}

.welcome-logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #4d8ff5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.welcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,108,240,0.12);
  border: 1px solid rgba(26,108,240,0.3);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
}

.welcome-title .highlight {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
}

.welcome-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.welcome-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-blue);
  color: white;
  padding: 18px 40px;
  border-radius: var(--radius-full);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 32px rgba(26,108,240,0.5);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.welcome-btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.welcome-btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.welcome-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(26,108,240,0.6);
}

.welcome-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 18px 40px;
  border-radius: var(--radius-full);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.welcome-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.welcome-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.welcome-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
}

.welcome-badge-item i {
  color: var(--blue-light);
  font-size: 16px;
}

.welcome-bottom {
  padding: 28px 48px;
  display: flex;
  justify-content: center;
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.welcome-footer-link {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.2s;
}

.welcome-footer-link:hover {
  color: rgba(255,255,255,0.7);
}

/* ===== LOGIN / REGISTER ===== */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(26,108,240,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(26,108,240,0.05) 0%, transparent 50%);
}

.auth-card {
  background: var(--black-2);
  border: 1px solid var(--black-4);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(26,108,240,0.6));
}

.auth-logo-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--gray-3);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.5;
}

.auth-type-selector {
  display: flex;
  background: var(--black-3);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-type-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--gray-3);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-type-btn.active {
  background: var(--black-2);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.auth-back-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-3);
}

.auth-back-link span {
  color: var(--blue-light);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-back-link span:hover {
  color: var(--blue);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-input {
  padding-left: 44px;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-2);
  font-size: 15px;
  pointer-events: none;
}

.input-toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-2);
  cursor: pointer;
  font-size: 15px;
  transition: color 0.2s;
}

.input-toggle-pass:hover { color: var(--gray-4); }

/* ===== PLANS SCREEN ===== */
.plans-screen {
  min-height: 100vh;
  background: var(--black);
  padding: 60px 24px;
}

.plans-header {
  text-align: center;
  margin-bottom: 60px;
}

.plans-tag {
  display: inline-block;
  background: rgba(26,108,240,0.1);
  border: 1px solid rgba(26,108,240,0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 20px;
}

.plans-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}

.plans-subtitle {
  font-size: 18px;
  color: var(--gray-3);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  background: var(--black-2);
  border: 1px solid var(--black-4);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.plan-card.featured {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--black-2) 0%, rgba(26,108,240,0.05) 100%);
  box-shadow: 0 0 0 1px rgba(26,108,240,0.1), var(--shadow-blue);
}

.plan-featured-badge {
  position: absolute;
  top: 24px;
  right: -32px;
  background: var(--gradient-blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 44px;
  transform: rotate(45deg);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.plan-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.plan-icon-basic {
  background: rgba(26,108,240,0.1);
  color: var(--blue);
}

.plan-icon-premium {
  background: var(--gradient-premium);
  color: var(--black);
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 8px;
}

.plan-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-price {
  margin-bottom: 8px;
}

.plan-price-value {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-price-period {
  font-size: 16px;
  color: var(--gray-3);
  font-weight: 400;
}

.plan-total {
  font-size: 13px;
  color: var(--gray-2);
  margin-bottom: 32px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-4);
}

.plan-feature i {
  color: var(--green);
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}

.plan-feature.disabled {
  opacity: 0.4;
  text-decoration: line-through;
}

.plan-feature.disabled i {
  color: var(--gray-2);
}

.plan-select-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-select-btn-basic {
  background: rgba(26,108,240,0.12);
  color: var(--blue-light);
  border: 1px solid rgba(26,108,240,0.3);
}

.plan-select-btn-basic:hover {
  background: var(--gradient-blue);
  color: white;
  box-shadow: var(--shadow-blue);
}

.plan-select-btn-premium {
  background: var(--gradient-blue);
  color: white;
  box-shadow: var(--shadow-blue);
}

.plan-select-btn-premium:hover {
  box-shadow: 0 8px 30px rgba(26,108,240,0.5);
  transform: translateY(-1px);
}

/* ===== PAYMENT SCREEN ===== */
.payment-screen {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.payment-card {
  background: var(--black-2);
  border: 1px solid var(--black-4);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}

.payment-header {
  text-align: center;
  margin-bottom: 36px;
}

.pix-container {
  background: var(--black-3);
  border: 1px solid var(--black-5);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}

.pix-logo {
  font-size: 32px;
  font-weight: 900;
  color: var(--blue-light);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.pix-key-label {
  font-size: 12px;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pix-key {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  font-family: monospace;
  background: var(--black-4);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  word-break: break-all;
}

.pix-key:hover {
  background: var(--black-5);
}

.pix-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--green);
  margin: 16px 0 4px;
}

.pix-amount-label {
  font-size: 13px;
  color: var(--gray-3);
}

.payment-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.payment-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-3);
}

.payment-step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-upload-area {
  border: 2px dashed var(--black-5);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  position: relative;
}

.file-upload-area:hover {
  border-color: var(--blue);
  background: rgba(26,108,240,0.04);
}

.file-upload-area.dragging {
  border-color: var(--blue);
  background: rgba(26,108,240,0.08);
}

.file-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-icon {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 12px;
}

.file-upload-text {
  font-size: 14px;
  color: var(--gray-3);
}

.file-upload-hint {
  font-size: 12px;
  color: var(--gray-2);
  margin-top: 4px;
}

/* ===== PROFILE ===== */
.profile-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-4) 100%);
  position: relative;
}

.profile-cover-default {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #0d1b3e 0%, #1a1a2e 50%, #0d2137 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-header-section {
  background: var(--black-2);
  border: 1px solid var(--black-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.profile-info-area {
  padding: 0 24px 24px;
  margin-top: -52px;
  position: relative;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.profile-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  border: 4px solid var(--black-2);
  background: var(--black-4);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-3);
}

.profile-premium-border .profile-avatar-img {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--premium-glow);
}

.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
}

.profile-specialty {
  font-size: 14px;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 10px;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-3);
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  font-size: 20px;
  font-weight: 800;
}

.profile-stat-label {
  font-size: 12px;
  color: var(--gray-3);
}

.profile-bio {
  font-size: 14px;
  color: var(--gray-4);
  line-height: 1.6;
  margin-bottom: 20px;
}

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

/* ===== CHAT ===== */
.chat-layout {
  display: flex;
  height: calc(100vh - var(--nav-height));
  background: var(--black-1);
}

.chat-list-panel {
  width: 340px;
  flex-shrink: 0;
  border-right: 1px solid var(--black-3);
  display: flex;
  flex-direction: column;
  background: var(--black-1);
}

.chat-list-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--black-3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-list-title {
  font-size: 20px;
  font-weight: 800;
}

.chat-list-search {
  position: relative;
}

.chat-items {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--black-3);
  position: relative;
}

.chat-item:hover { background: var(--black-2); }
.chat-item.active { background: var(--blue-faint); border-right: 2px solid var(--blue); }

.chat-item-info {
  flex: 1;
  min-width: 0;
}

.chat-item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-item-preview {
  font-size: 13px;
  color: var(--gray-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-time {
  font-size: 11px;
  color: var(--gray-2);
  position: absolute;
  top: 14px;
  right: 16px;
}

.chat-item-unread {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--black-1);
}

.chat-window-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-2);
  gap: 16px;
}

.chat-window-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--black-3);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--black-2);
}

.chat-window-info {
  flex: 1;
}

.chat-window-name {
  font-size: 16px;
  font-weight: 700;
}

.chat-window-status {
  font-size: 12px;
  color: var(--gray-3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 70%;
}

.message-group.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.message-group.received {
  align-self: flex-start;
  align-items: flex-start;
}

.message-bubble {
  padding: 10px 16px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
  word-break: break-word;
  animation: fadeInUp 0.2s ease;
}

.message-group.sent .message-bubble {
  background: var(--blue);
  color: white;
  border-bottom-right-radius: 6px;
}

.message-group.received .message-bubble {
  background: var(--black-3);
  color: var(--white);
  border-bottom-left-radius: 6px;
}

.message-time {
  font-size: 10px;
  color: var(--gray-2);
  padding: 0 4px;
}

.message-status {
  font-size: 11px;
  color: var(--blue-light);
}

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--black-3);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: var(--black-2);
}

.chat-input-field {
  flex: 1;
  background: var(--black-3);
  border: 1px solid var(--black-5);
  border-radius: var(--radius-xl);
  padding: 12px 18px;
  color: var(--white);
  font-size: 14px;
  resize: none;
  max-height: 120px;
  min-height: 44px;
  transition: var(--transition);
  font-family: var(--font-main);
}

.chat-input-field:focus {
  border-color: var(--blue);
  outline: none;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition-spring);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--blue-dark);
  transform: scale(1.05);
}

/* ===== ADMIN PANEL ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--black-2);
  border-right: 1px solid var(--black-3);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
}

.admin-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  min-height: 100vh;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.admin-header-title {
  font-size: 26px;
  font-weight: 800;
  flex: 1;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-2);
  border-bottom: 1px solid var(--black-3);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--black-3);
  color: var(--gray-4);
}

.data-table tr:hover td {
  background: var(--black-3);
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

/* ===== SEARCH SCREEN ===== */
.search-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--black-3);
  border: 1px solid var(--black-4);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-3);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover, .filter-chip.active {
  background: var(--blue-faint);
  border-color: rgba(26,108,240,0.3);
  color: var(--blue-light);
}

/* ===== LAWYER CARD ===== */
.lawyer-card {
  background: var(--black-2);
  border: 1px solid var(--black-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.lawyer-card:hover {
  border-color: var(--black-5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lawyer-card.premium-card {
  border-color: rgba(245,197,24,0.2);
  box-shadow: 0 0 0 1px rgba(245,197,24,0.08);
}

.lawyer-card-cover {
  height: 80px;
  background: linear-gradient(135deg, #0d1b3e, #1a2850);
  position: relative;
}

.lawyer-card-body {
  padding: 0 16px 16px;
  margin-top: -28px;
  position: relative;
}

.lawyer-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: 3px solid var(--black-2);
  margin-bottom: 10px;
  background: var(--black-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-3);
  overflow: hidden;
}

.lawyer-card-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lawyer-card-specialty {
  font-size: 12px;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.lawyer-card-location {
  font-size: 12px;
  color: var(--gray-3);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.lawyer-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  margin-bottom: 14px;
}

.star-rating {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}

/* ===== PAYMENT STATUS ===== */
.payment-status-card {
  background: var(--black-2);
  border: 1px solid var(--black-4);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.payment-status-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.payment-status-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.payment-status-desc {
  font-size: 14px;
  color: var(--gray-3);
  line-height: 1.6;
}

/* ===== PLAN TIMER ===== */
.plan-timer {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 20px 0;
}

.plan-timer-unit {
  text-align: center;
  background: var(--black-3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 64px;
}

.plan-timer-value {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
}

.plan-timer-label {
  font-size: 10px;
  color: var(--gray-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== ONBOARDING ===== */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.4s ease;
}

.onboarding-card {
  background: var(--black-2);
  border: 1px solid var(--black-4);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.5s ease;
}

.onboarding-step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--black-4);
  transition: var(--transition);
}

.onboarding-dot.active {
  background: var(--blue);
  width: 24px;
}

/* ===== REVIEWS ===== */
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--black-3);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-text {
  font-size: 14px;
  color: var(--gray-4);
  line-height: 1.6;
}

/* ===== RESPONSIVE EXTRAS ===== */
@media (max-width: 768px) {
  .auth-card { padding: 32px 24px; }
  .plan-card { padding: 28px; }
  .payment-card { padding: 32px 24px; }
  .welcome-top-bar { padding: 20px 24px; }
  .welcome-bottom { padding: 20px 24px; }
  .chat-list-panel { width: 100%; }
  .chat-window { display: none; }
  .chat-window.mobile-show { display: flex; position: fixed; inset: 0; z-index: 500; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; padding: 20px 16px; }
  .plans-grid { grid-template-columns: 1fr; }
}
