/* ============================================
   ADMIN PANEL — STYLES
   ============================================ */

:root {
  --color-bg: #06060e;
  --color-bg-alt: #0c0c1a;
  --color-surface: #111127;
  --color-surface-hover: #181840;
  --color-border: rgba(139, 92, 246, 0.12);
  --color-border-hover: rgba(139, 92, 246, 0.3);

  --color-primary: #8b5cf6;
  --color-primary-light: #a78bfa;
  --color-secondary: #06b6d4;
  --color-accent: #ec4899;
  --color-danger: #ef4444;
  --color-success: #10b981;

  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);

  --color-text: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #475569;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.4s var(--ease-out);

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

  --sidebar-width: 260px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; outline: none; }
ul, ol { list-style: none; }
.hidden { display: none !important; }

/* --- Logo --- */
.logo-bracket { color: var(--color-primary); font-family: var(--font-mono); font-weight: 400; font-size: 1.3rem; }
.logo-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: var(--font-display); font-weight: 700; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition-fast); cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(139,92,246,0.5); transform: translateY(-1px); }
.btn-outline { color: var(--color-text-secondary); border: 1px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-text); background: rgba(139,92,246,0.08); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139,92,246,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6,182,212,0.06) 0%, transparent 50%),
    var(--color-bg);
}

.login-card {
  width: 100%; max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  box-shadow: var(--shadow-card);
}

.login-header { text-align: center; margin-bottom: 36px; }
.login-logo { font-size: 1.5rem; margin-bottom: 24px; display: inline-block; }
.login-header h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.login-header p { color: var(--color-text-secondary); font-size: 0.92rem; }

.login-form { display: flex; flex-direction: column; gap: 20px; }

.login-error {
  text-align: center; color: var(--color-danger);
  font-size: 0.85rem; padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.1);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--color-text-secondary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(139,92,246,0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-muted); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  background: rgba(139,92,246,0.08);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--color-surface); color: var(--color-text); }

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

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--color-text-muted); pointer-events: none; }
.input-icon-wrap input { padding-left: 44px; }

.checkbox-group {
  display: flex; gap: 20px; align-items: center; flex-direction: row !important;
  padding-top: 26px;
}

.checkbox-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 0.9rem !important; color: var(--color-text) !important;
}

.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--color-primary); cursor: pointer;
}

.range-input {
  width: 100%; height: 6px;
  -webkit-appearance: none; appearance: none;
  background: var(--color-border);
  border-radius: 3px; outline: none;
  border: none !important; padding: 0 !important;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%; background: var(--color-primary);
  cursor: pointer; box-shadow: 0 0 10px rgba(139,92,246,0.4);
}

.form-section-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--color-primary-light);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.form-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

/* ============================================
   UPLOAD ZONE
   ============================================ */
.upload-zone {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-primary);
  background: rgba(139,92,246,0.06);
}

.upload-zone.compact { min-height: 100px; padding: 24px; }

.upload-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--color-text-muted);
}

.upload-placeholder svg { width: 32px; height: 32px; color: var(--color-primary); opacity: 0.6; }
.upload-placeholder small { font-size: 0.78rem; opacity: 0.7; }

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

.upload-previews {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px;
}

.upload-preview-item {
  position: relative;
  width: 90px; height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.upload-preview-remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%; background: rgba(239,68,68,0.9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem;
  cursor: pointer; transition: transform var(--transition-fast);
}

.upload-preview-remove:hover { transform: scale(1.15); }

.upload-preview {
  position: absolute; inset: 0;
  z-index: 2;
}

.upload-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }

/* ============================================
   ADMIN DASHBOARD LAYOUT
   ============================================ */
.admin-dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-base);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo { font-size: 1.2rem; display: inline-block; }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  width: 100%; text-align: left;
}

.sidebar-link svg { width: 20px; height: 20px; flex-shrink: 0; }

.sidebar-link:hover {
  background: rgba(139,92,246,0.08);
  color: var(--color-text);
}

.sidebar-link.active {
  background: rgba(139,92,246,0.12);
  color: var(--color-primary-light);
}

.sidebar-link.danger { color: var(--color-danger); }
.sidebar-link.danger:hover { background: rgba(239,68,68,0.1); }

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 4px;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* Topbar */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(6,6,14,0.8);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}

.sidebar-toggle {
  display: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.sidebar-toggle:hover { background: rgba(139,92,246,0.1); }
.sidebar-toggle svg { width: 22px; height: 22px; }

.topbar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  flex: 1;
}

.topbar-user {
  font-size: 0.85rem; color: var(--color-text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(139,92,246,0.08);
  border: 1px solid var(--color-border);
}

/* Page Container */
.page-container {
  padding: 32px;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s var(--ease-out); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.page-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}

.page-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
}

.empty-text {
  color: var(--color-text-muted);
  text-align: center;
  padding: 40px;
  font-size: 0.92rem;
}

/* ============================================
   DASHBOARD STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.stat-card:hover { border-color: var(--color-border-hover); transform: translateY(-2px); }

.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon svg { width: 24px; height: 24px; }

.stat-card-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  line-height: 1;
}

.stat-card-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.dashboard-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 16px;
}

.recent-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.recent-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.recent-card:hover { border-color: var(--color-border-hover); }

.recent-card-thumb {
  width: 56px; height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden; background: var(--color-bg);
  flex-shrink: 0;
}

.recent-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.recent-card-info { flex: 1; min-width: 0; }
.recent-card-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-card-cat { font-size: 0.78rem; color: var(--color-text-muted); }

/* ============================================
   DATA TABLE
   ============================================ */
.projects-table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(139,92,246,0.06);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(139,92,246,0.04);
}

.table-thumb {
  width: 56px; height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden; background: var(--color-bg);
}

.table-thumb img { width: 100%; height: 100%; object-fit: cover; }

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

.table-action-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
}

.table-action-btn:hover { background: rgba(139,92,246,0.12); color: var(--color-text); }
.table-action-btn.delete:hover { background: rgba(239,68,68,0.12); color: var(--color-danger); }
.table-action-btn svg { width: 16px; height: 16px; }

.badge-featured {
  display: inline-flex; padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600;
}

.badge-yes { background: rgba(16,185,129,0.12); color: var(--color-success); }
.badge-no { background: rgba(100,116,139,0.12); color: var(--color-text-muted); }

/* ============================================
   SKILLS MANAGER GRID
   ============================================ */
.skills-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.skill-manage-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.skill-manage-card:hover { border-color: var(--color-border-hover); }

.skill-manage-icon { font-size: 1.6rem; flex-shrink: 0; }

.skill-manage-info { flex: 1; min-width: 0; }
.skill-manage-name { font-weight: 600; font-size: 0.92rem; }
.skill-manage-bar { width: 100%; height: 4px; border-radius: 2px; background: var(--color-border); margin-top: 6px; }
.skill-manage-bar-fill { height: 100%; border-radius: 2px; background: var(--gradient-primary); }

.skill-manage-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============================================
   MESSAGES
   ============================================ */
.messages-list {
  display: flex; flex-direction: column; gap: 12px;
}

.message-card {
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.message-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}

.message-sender { font-weight: 600; font-size: 0.95rem; }
.message-email { font-size: 0.82rem; color: var(--color-primary-light); }
.message-date { font-size: 0.78rem; color: var(--color-text-muted); }
.message-subject { font-weight: 500; margin-bottom: 8px; font-size: 0.92rem; }
.message-body { color: var(--color-text-secondary); font-size: 0.9rem; line-height: 1.7; }

.message-actions {
  display: flex; gap: 8px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   ADMIN MODALS
   ============================================ */
.admin-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,6,14,0.9);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s var(--ease-out);
}

.admin-modal {
  width: 100%; max-width: 720px; max-height: 90vh;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}

.admin-modal.small { max-width: 480px; }

.admin-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-border);
}

.admin-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
}

.modal-close-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
}

.modal-close-btn:hover { background: rgba(239,68,68,0.12); color: var(--color-danger); }
.modal-close-btn svg { width: 20px; height: 20px; }

.admin-modal-body {
  padding: 28px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
}

/* ============================================
   TOAST
   ============================================ */
#toastContainer {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 3000;
  display: flex; flex-direction: column; gap: 8px;
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.88rem; font-weight: 500;
  animation: slideInRight 0.4s var(--ease-out);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: flex; align-items: center; gap: 10px;
}

.toast.success { background: #059669; color: #fff; }
.toast.error { background: #dc2626; color: #fff; }
.toast.info { background: var(--color-primary); color: #fff; }

.toast.removing { animation: slideOutRight 0.3s var(--ease-out) forwards; }

@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

/* ============================================
   PROGRESS BAR (for uploads)
   ============================================ */
.upload-progress {
  width: 100%; height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  margin-top: 8px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s;
  width: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open { transform: translateX(0); }

  .main-content { margin-left: 0; }

  .sidebar-toggle { display: flex; }

  .topbar { padding: 12px 16px; }
  .page-container { padding: 20px 16px; }

  .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .admin-modal { margin: 12px; }
  .admin-modal-body { padding: 20px; }

  .data-table th, .data-table td { padding: 10px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .skills-manager-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  display: none;
}

.sidebar-overlay.active { display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

.admin-modal-body::-webkit-scrollbar { width: 4px; }

/* ============================================
   NEW: Category Filter Tabs
   ============================================ */
.project-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: var(--color-text);
  background: rgba(139, 92, 246, 0.08);
}

.filter-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.filter-tab svg { width: 16px; height: 16px; }

/* ============================================
   NEW: Category Badges
   ============================================ */
.badge-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-design {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.badge-video {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

/* ============================================
   NEW: Accent Button
   ============================================ */
.btn-accent {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  border: none;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* ============================================
   NEW: Page Header Actions
   ============================================ */
.page-header-actions {
  display: flex;
  gap: 10px;
}

.page-header-desc {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ============================================
   NEW: Modal Header Badge
   ============================================ */
.modal-header-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 12px;
}

.modal-header-badge.badge-design {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.modal-header-badge.badge-video {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

/* ============================================
   NEW: Profile Section Cards
   ============================================ */
.profile-section-card {
  background: rgba(139, 92, 246, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.profile-section-card .form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.profile-section-card .form-section-title svg {
  width: 18px;
  height: 18px;
}

.btn-save-profile {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 8px;
}

/* ============================================
   NEW: Upload Preview Thumbnail Badge
   ============================================ */
.upload-preview-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 8px;
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ============================================
   NEW: Form Help Text
   ============================================ */
.form-help {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ============================================
   NEW: Category color in recent cards
   ============================================ */
.recent-card-cat.cat-design { color: #a78bfa; }
.recent-card-cat.cat-video { color: #22d3ee; }

/* ============================================
   NEW: Skill percent
   ============================================ */
.skill-manage-percent {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ============================================
   Responsive for new elements
   ============================================ */
@media (max-width: 768px) {
  .page-header-actions {
    flex-direction: column;
    width: 100%;
  }

  .page-header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .project-filter-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .filter-tab span { display: none; }
}

/* ============================================
   VIDEO UPLOAD STYLES
   ============================================ */

/* Tab switcher between Upload / URL */
.video-option-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: fit-content;
}

.video-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.video-tab:first-child {
  border-right: 1px solid var(--color-border);
}

.video-tab:hover {
  background: rgba(6, 182, 212, 0.06);
  color: var(--color-text);
}

.video-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.1));
  color: #22d3ee;
  font-weight: 600;
}

.video-tab svg { width: 15px; height: 15px; }

/* Tab content visibility */
.video-tab-content {
  display: none !important;
}

.video-tab-content.active {
  display: block !important;
}

/* Video upload zone — distinct from image zone */
.video-upload-zone {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.03);
}

.video-upload-zone:hover {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.06);
}

.video-upload-zone .upload-placeholder i {
  color: #22d3ee;
}

/* Video file preview card */
.video-upload-preview {
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(6, 182, 212, 0.06);
}

.video-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-file-info > svg {
  width: 28px;
  height: 28px;
  color: #22d3ee;
  flex-shrink: 0;
}

.video-file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.video-file-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-file-size {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.video-remove-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.video-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.video-remove-btn svg {
  width: 16px;
  height: 16px;
}

/* Upload progress bar */
.video-upload-progress {
  margin-top: 10px;
  height: 4px;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.video-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Info toast style */
.toast.info {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
}

/* Hidden utility */
.hidden {
  display: none !important;
}
