/* ============================================================
   VicTech Auth — Forms & Pages CSS
   ============================================================ */

/* ── Auth Page Layout ─────────────────────────────────────── */
.vtc-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 50%, #f0f4ff 100%);
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
  font-family: var(--vtc-font);
}

/* ── Decorative circles ───────────────────────────────────── */
.vtc-auth-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.vtc-decor-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  background: var(--vtc-primary);
}
.vtc-decor-circle-1 { width: 400px; height: 400px; top: -120px; right: -80px; }
.vtc-decor-circle-2 { width: 280px; height: 280px; bottom: -60px; left: -60px; }
.vtc-decor-circle-3 { width: 160px; height: 160px; top: 40%; left: 50%; opacity: .04; }

/* ── Auth Card ────────────────────────────────────────────── */
.vtc-auth-card {
  background: var(--vtc-surface);
  border-radius: var(--vtc-radius);
  box-shadow: var(--vtc-shadow-lg), 0 0 0 1px rgba(37,99,235,.05);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: vtc-card-in .4s cubic-bezier(.22,.68,0,1.2);
}
.vtc-auth-card-wide { max-width: 560px; }
@keyframes vtc-card-in {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ── Logo ─────────────────────────────────────────────────── */
.vtc-auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.vtc-auth-logo img { max-height: 52px; max-width: 200px; object-fit: contain; }
.vtc-auth-brand {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: var(--vtc-primary);
  letter-spacing: -.5px;
  padding: 8px 20px;
  background: var(--vtc-primary-light);
  border-radius: 8px;
}

/* ── Auth Headings ────────────────────────────────────────── */
.vtc-auth-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--vtc-text);
  text-align: center;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.vtc-auth-subtitle {
  font-size: 14px;
  color: var(--vtc-text-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ── Forms ────────────────────────────────────────────────── */
.vtc-form { display: flex; flex-direction: column; gap: 18px; }

.vtc-field { display: flex; flex-direction: column; gap: 6px; }
.vtc-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--vtc-text);
  display: block;
}
.vtc-label-row { display: flex; justify-content: space-between; align-items: center; }
.vtc-link-small { font-size: 13px; color: var(--vtc-primary); text-decoration: none; font-weight: 500; }
.vtc-link-small:hover { text-decoration: underline; }

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

/* ── Input ────────────────────────────────────────────────── */
.vtc-input-wrap { position: relative; display: block; }
.vtc-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--vtc-text-light);
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
}

.vtc-form input[type="text"],
.vtc-form input[type="email"],
.vtc-form input[type="password"],
.vtc-form input[type="tel"],
.vtc-form input[type="url"],
.vtc-form input[type="number"],
.vtc-form textarea,
.vtc-profile-form input[type="text"],
.vtc-profile-form input[type="email"],
.vtc-profile-form input[type="password"],
.vtc-profile-form input[type="tel"],
.vtc-profile-form input[type="url"],
.vtc-profile-form textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--vtc-font);
  color: var(--vtc-text);
  background: var(--vtc-surface);
  border: 1.5px solid var(--vtc-border);
  border-radius: var(--vtc-radius-sm);
  outline: none;
  transition: border-color var(--vtc-transition), box-shadow var(--vtc-transition);
  line-height: 1.5;
}
/* Inputs with a left icon */
.vtc-input-wrap input { padding-left: 44px; }

/* Inputs with a right toggle button — use :has() with fallback */
.vtc-input-wrap:has(.vtc-toggle-pass) input { padding-right: 46px; }

/* Fallback: password fields always need right padding when inside input-wrap */
.vtc-input-wrap input[type="password"] { padding-right: 46px; }

.vtc-form input:focus,
.vtc-profile-form input:focus,
.vtc-profile-form textarea:focus,
.vtc-form textarea:focus {
  border-color: var(--vtc-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.vtc-form input::placeholder,
.vtc-profile-form input::placeholder,
.vtc-profile-form textarea::placeholder { color: var(--vtc-text-light); }

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

/* ── Toggle Password ──────────────────────────────────────── */
.vtc-toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--vtc-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-radius: 4px;
  line-height: 1;
}
.vtc-toggle-pass svg {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
}
.vtc-toggle-pass:hover { color: var(--vtc-primary); }

/* ── Checkbox ─────────────────────────────────────────────── */
.vtc-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--vtc-text-muted);
  cursor: pointer;
  line-height: 1.5;
  user-select: none;
}
.vtc-checkbox input[type="checkbox"] { display: none; }
.vtc-checkmark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--vtc-border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--vtc-transition);
}
.vtc-checkbox input:checked + .vtc-checkmark {
  background: var(--vtc-primary);
  border-color: var(--vtc-primary);
}
.vtc-checkbox input:checked + .vtc-checkmark::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}
.vtc-checkbox a { color: var(--vtc-primary); text-decoration: none; }

/* ── Password Strength ────────────────────────────────────── */
.vtc-password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.vtc-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--vtc-border);
  border-radius: 4px;
  overflow: hidden;
}
.vtc-strength-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width .3s ease, background .3s ease;
}
.vtc-strength-label { font-size: 12px; font-weight: 600; min-width: 40px; }
.vtc-strength-weak   .vtc-strength-bar span { width: 25%; background: var(--vtc-danger); }
.vtc-strength-fair   .vtc-strength-bar span { width: 50%; background: var(--vtc-warning); }
.vtc-strength-good   .vtc-strength-bar span { width: 75%; background: #3b82f6; }
.vtc-strength-strong .vtc-strength-bar span { width: 100%; background: var(--vtc-success); }

/* ── Auth Footer ──────────────────────────────────────────── */
.vtc-auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--vtc-text-muted);
}
.vtc-auth-footer a { color: var(--vtc-primary); text-decoration: none; font-weight: 600; }
.vtc-auth-footer a:hover { text-decoration: underline; }

/* ── Dashboard ────────────────────────────────────────────── */
.vtc-dash-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--vtc-bg);
  font-family: var(--vtc-font);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.vtc-dash-sidebar {
  background: var(--vtc-surface);
  border-right: 1px solid var(--vtc-border);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.vtc-dash-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--vtc-border);
  margin-bottom: 24px;
  gap: 6px;
}
.vtc-dash-avatar {
  position: relative;
  margin-bottom: 8px;
}
.vtc-dash-avatar img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--vtc-primary-light);
}
.vtc-avatar-status {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 14px; height: 14px;
  background: var(--vtc-success);
  border: 2px solid var(--vtc-surface);
  border-radius: 50%;
}
.vtc-dash-name { font-size: 16px; font-weight: 700; color: var(--vtc-text); }
.vtc-dash-email { font-size: 12px; color: var(--vtc-text-muted); word-break: break-all; }
.vtc-dash-since { font-size: 11px; color: var(--vtc-text-light); }

.vtc-dash-nav { display: flex; flex-direction: column; gap: 2px; }
.vtc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--vtc-radius-xs);
  color: var(--vtc-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: all var(--vtc-transition);
}
.vtc-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.vtc-nav-item:hover { background: var(--vtc-bg); color: var(--vtc-text); }
.vtc-nav-item.active { background: var(--vtc-primary-light); color: var(--vtc-primary); font-weight: 600; }
.vtc-nav-logout { margin-top: auto; color: var(--vtc-danger); }
.vtc-nav-logout:hover { background: var(--vtc-danger-bg); }

/* ── Dash Main ────────────────────────────────────────────── */
.vtc-dash-main { padding: 32px; overflow-y: auto; }
.vtc-tab-panel { display: none; }
.vtc-tab-panel.active { display: block; animation: vtc-fadein .2s ease; }

.vtc-dash-header { margin-bottom: 28px; }
.vtc-dash-header h1 { font-size: 24px; font-weight: 800; color: var(--vtc-text); letter-spacing: -.4px; margin-bottom: 4px; }
.vtc-dash-header p { font-size: 14px; color: var(--vtc-text-muted); }

/* ── Stats ────────────────────────────────────────────────── */
.vtc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.vtc-stat-card {
  background: var(--vtc-surface);
  border: 1px solid var(--vtc-border);
  border-radius: var(--vtc-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--vtc-transition);
}
.vtc-stat-card:hover { box-shadow: var(--vtc-shadow); }
.vtc-stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--vtc-radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vtc-stat-icon svg { width: 22px; height: 22px; }
.vtc-stat-icon-blue   { background: #eff6ff; color: var(--vtc-primary); }
.vtc-stat-icon-green  { background: #f0fdf4; color: var(--vtc-success); }
.vtc-stat-icon-purple { background: #f5f3ff; color: #7c3aed; }
.vtc-stat-info { display: flex; flex-direction: column; gap: 2px; }
.vtc-stat-number { font-size: 22px; font-weight: 800; color: var(--vtc-text); letter-spacing: -.5px; }
.vtc-stat-label { font-size: 12px; color: var(--vtc-text-muted); font-weight: 500; }

/* ── Cards ────────────────────────────────────────────────── */
.vtc-dash-card {
  background: var(--vtc-surface);
  border: 1px solid var(--vtc-border);
  border-radius: var(--vtc-radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.vtc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--vtc-border);
}
.vtc-card-header h3 { font-size: 16px; font-weight: 700; color: var(--vtc-text); }

.vtc-profile-summary { padding: 8px 0; }
.vtc-profile-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 16px;
  border-bottom: 1px solid var(--vtc-bg);
  font-size: 14px;
}
.vtc-profile-row:last-child { border-bottom: none; }
.vtc-profile-row span { color: var(--vtc-text-muted); min-width: 100px; font-weight: 500; }
.vtc-profile-row strong { color: var(--vtc-text); }
.vtc-profile-row strong a { color: var(--vtc-primary); text-decoration: none; }

/* ── Activity ─────────────────────────────────────────────── */
.vtc-activity-list { padding: 8px 0; }
.vtc-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--vtc-bg);
  transition: background var(--vtc-transition);
}
.vtc-activity-item:last-child { border-bottom: none; }
.vtc-activity-item:hover { background: var(--vtc-bg); }
.vtc-activity-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--vtc-primary-light);
  color: var(--vtc-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vtc-activity-icon svg { width: 18px; height: 18px; }
.vtc-activity-body { flex: 1; }
.vtc-activity-body p { font-size: 14px; color: var(--vtc-text); margin-bottom: 4px; }
.vtc-activity-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--vtc-text-muted); }
.vtc-activity-meta a { color: var(--vtc-primary); text-decoration: none; }

/* ── Empty state ──────────────────────────────────────────── */
.vtc-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--vtc-text-muted);
}
.vtc-empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; display: block; opacity: .3; }
.vtc-empty-state p { font-size: 14px; }

/* ── Profile Page ─────────────────────────────────────────── */
.vtc-profile-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  font-family: var(--vtc-font);
}
.vtc-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.vtc-profile-header h1 { font-size: 24px; font-weight: 800; color: var(--vtc-text); letter-spacing: -.4px; }
.vtc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--vtc-text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--vtc-radius-xs);
  transition: all var(--vtc-transition);
}
.vtc-back-btn svg { width: 16px; height: 16px; }
.vtc-back-btn:hover { background: var(--vtc-bg); color: var(--vtc-text); }

.vtc-profile-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.vtc-profile-card {
  background: var(--vtc-surface);
  border: 1px solid var(--vtc-border);
  border-radius: var(--vtc-radius);
  padding: 24px;
  margin-bottom: 20px;
}
.vtc-profile-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--vtc-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vtc-border);
}
.vtc-optional { color: var(--vtc-text-light); font-weight: 400; font-size: 13px; }

/* ── Avatar Upload ────────────────────────────────────────── */
.vtc-avatar-upload-wrap {
  text-align: center;
  margin-bottom: 16px;
}
.vtc-avatar-preview {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin: 0 auto;
  border: 3px solid var(--vtc-border);
  transition: border-color var(--vtc-transition);
}
.vtc-avatar-preview:hover { border-color: var(--vtc-primary); }
.vtc-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.vtc-avatar-overlay {
  position: absolute; inset: 0;
  background: rgba(37,99,235,.75);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--vtc-transition);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.vtc-avatar-preview:hover .vtc-avatar-overlay { opacity: 1; }
.vtc-avatar-overlay svg { width: 20px; height: 20px; }
.vtc-avatar-info { text-align: center; margin-bottom: 10px; }
.vtc-avatar-info strong { display: block; font-size: 15px; color: var(--vtc-text); font-weight: 700; }
.vtc-avatar-info span { font-size: 13px; color: var(--vtc-text-muted); }
.vtc-avatar-hint { font-size: 11px; color: var(--vtc-text-light); text-align: center; margin-top: 8px; }

/* ── Profile Actions ──────────────────────────────────────── */
.vtc-profile-actions { display: flex; gap: 12px; }
.vtc-danger-card { border-color: #fecaca; }
.vtc-danger-title { color: var(--vtc-danger) !important; }
.vtc-danger-card p { font-size: 14px; color: var(--vtc-text-muted); margin-bottom: 16px; }

/* ── Comments ─────────────────────────────────────────────── */
.vtc-comments-wrap { margin-top: 48px; font-family: var(--vtc-font); }
.vtc-comments-title { font-size: 20px; font-weight: 700; color: var(--vtc-text); margin-bottom: 24px; }
.vtc-comment-form { background: var(--vtc-surface); border: 1px solid var(--vtc-border); border-radius: var(--vtc-radius); padding: 20px; margin-bottom: 28px; }
.vtc-comment-form textarea { width: 100%; }
.vtc-comment-form .vtc-btn { margin-top: 12px; }
.vtc-comment {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--vtc-border);
  animation: vtc-fadein .25s ease;
}
.vtc-comment-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vtc-comment-body { flex: 1; }
.vtc-comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.vtc-comment-meta strong { font-size: 14px; font-weight: 700; color: var(--vtc-text); }
.vtc-comment-meta span { font-size: 12px; color: var(--vtc-text-light); }
.vtc-comment-body p { font-size: 14px; color: var(--vtc-text); line-height: 1.6; margin-bottom: 8px; }
.vtc-reply-btn { background: none; border: none; font-size: 13px; color: var(--vtc-primary); cursor: pointer; padding: 0; font-weight: 600; }
.vtc-reply-form { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--vtc-primary-light); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .vtc-auth-card { padding: 32px 24px; }

  .vtc-dash-wrap { grid-template-columns: 1fr; }

  /* Fixed bottom nav bar */
  .vtc-dash-sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: auto; top: auto;
    flex-direction: row;
    padding: 6px 8px;
    /* iPhone safe area support */
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    border-right: none;
    border-top: 1px solid var(--vtc-border);
    background: var(--vtc-surface);
    z-index: 999;
    overflow-x: auto;
    gap: 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  }
  .vtc-dash-avatar-block { display: none; }
  .vtc-dash-nav {
    flex-direction: row;
    flex: 1;
    justify-content: space-around;
    gap: 0;
  }
  .vtc-nav-item {
    flex-direction: column;
    gap: 3px;
    padding: 6px 10px;
    font-size: 10px;
    text-align: center;
    border-radius: 8px;
    flex: 1;
  }
  .vtc-nav-item svg { width: 22px; height: 22px; }
  .vtc-nav-logout { margin-top: 0; }

  /* Push ALL main content above the fixed bar */
  /* 70px bar + 16px breathing room = 86px */
  .vtc-dash-main {
    padding: 20px 16px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  /* Profile page also needs clearance */
  .vtc-profile-wrap {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  /* Make sure cards at the bottom aren't clipped */
  .vtc-dash-card:last-child,
  .vtc-profile-card:last-child,
  .vtc-danger-card {
    margin-bottom: 0;
  }

  .vtc-profile-layout { grid-template-columns: 1fr; }
  .vtc-profile-avatar-col { order: -1; }
  .vtc-field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .vtc-auth-card { padding: 28px 16px; }
  .vtc-auth-title { font-size: 22px; }
  .vtc-stats-grid { grid-template-columns: 1fr 1fr; }

  /* Even more room on small phones */
  .vtc-dash-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Comment Login Prompt ─────────────────────────────────── */
.vtc-comment-login-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--vtc-primary-light);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--vtc-radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--vtc-text-muted);
}
.vtc-comment-login-prompt p { margin: 0; }
.vtc-comment-login-prompt a {
  color: var(--vtc-primary);
  font-weight: 700;
  text-decoration: none;
}
.vtc-comment-login-prompt a:hover { text-decoration: underline; }

/* ── Social Login Buttons ─────────────────────────────────── */
.vtc-social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.vtc-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--vtc-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--vtc-font);
  cursor: pointer;
  border: 1.5px solid var(--vtc-border);
  background: var(--vtc-surface);
  color: var(--vtc-text);
  transition: all var(--vtc-transition);
  position: relative;
  overflow: hidden;
}
.vtc-social-btn:hover {
  background: var(--vtc-bg);
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.vtc-social-btn:active { transform: none; box-shadow: none; }
.vtc-social-btn svg { flex-shrink: 0; }

/* Google specific */
.vtc-social-google:hover { border-color: #4285F4; }

/* Facebook specific */
.vtc-social-facebook:hover { border-color: #1877F2; }

/* Loading state */
.vtc-social-btn.vtc-loading {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}
.vtc-social-btn.vtc-loading::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: var(--vtc-primary);
  border-radius: 50%;
  animation: vtc-spin .7s linear infinite;
}

/* ── Divider ─────────────────────────────────────────────── */
.vtc-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
  color: var(--vtc-text-light);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.vtc-divider::before,
.vtc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--vtc-border);
}

/* ── Verified Badge ───────────────────────────────────────── */
.vtc-verified-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1;
}
.vtc-verified-badge svg {
  color: #2563eb;
  flex-shrink: 0;
  display: block;
}

/* ── Writer Application Section ───────────────────────────── */
.vtc-writer-apply {
  background: linear-gradient(135deg, #0f2d6b 0%, #1e3a8a 100%);
  border: 1.5px solid rgba(37,99,235,.4);
  border-radius: var(--vtc-radius-sm);
  padding: 16px;
  color: #fff;
}
.vtc-writer-apply .vtc-checkbox {
  color: #fff;
  font-size: 14px;
  align-items: center;
}
.vtc-writer-apply .vtc-checkbox strong {
  color: #fff;
  font-weight: 700;
}
.vtc-writer-apply .vtc-checkmark {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.1);
}
.vtc-writer-apply .vtc-checkbox input:checked + .vtc-checkmark {
  background: #2563eb;
  border-color: #2563eb;
}
.vtc-badge-preview {
  margin-left: 4px;
  vertical-align: middle;
}
.vtc-badge-preview svg { color: #60a5fa !important; }

.vtc-writer-apply-desc {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin: 6px 0 0 28px;
  line-height: 1.5;
}

.vtc-writer-reason-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.vtc-writer-reason-wrap label {
  color: rgba(255,255,255,.9) !important;
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.vtc-writer-reason-wrap textarea {
  width: 100%;
  background: rgba(255,255,255,.08) !important;
  border: 1.5px solid rgba(255,255,255,.2) !important;
  border-radius: var(--vtc-radius-sm);
  color: #fff !important;
  font-size: 13px;
  font-family: var(--vtc-font);
  padding: 10px 12px;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color var(--vtc-transition);
}
.vtc-writer-reason-wrap textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.25) !important;
}
.vtc-writer-reason-wrap textarea::placeholder {
  color: rgba(255,255,255,.35) !important;
}

/* ── Writer Pending Notice ────────────────────────────────── */
.vtc-writer-pending-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--vtc-radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
}
.vtc-writer-pending-notice strong {
  display: block;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 3px;
}
.vtc-writer-pending-notice p {
  margin: 0;
  color: #78350f;
}

/* ── Verified / Pending labels in profile ─────────────────── */
.vtc-verified-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 2px 10px;
  margin-top: 4px;
  letter-spacing: .3px;
}
.vtc-pending-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 2px 10px;
  margin-top: 4px;
}
