/* ===== THEME VARIABLES ===== */
    :root {
      --bg-primary: #ffffff;
      --bg-secondary: #f8fafc;
      --text-primary: #1e293b;
      --text-secondary: #64748b;
      --border: #e2e8f0;
      --blue-600: #2563eb;
      --blue-700: #1d4ed8;
      --blue-800: #1e40af;
      --blue-50: #eff6ff;
      --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    }

    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: #f1f5f9; }
    ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
    ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

    .card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: var(--shadow-sm);
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      background: var(--blue-600);
      color: #ffffff;
      font-weight: 600;
      font-size: 0.875rem;
      border: none;
      cursor: pointer;
      transition: background 0.2s;
    }
    .btn-primary:hover { background: var(--blue-700); }

    .btn-outline {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      background: transparent;
      color: var(--blue-800);
      font-weight: 600;
      font-size: 0.875rem;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.2s;
    }
    .btn-outline:hover { background: var(--blue-50); }

    .filter-btn {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #e2e8f0 !important;
      font-weight: 500;
      transition: all 0.2s ease;
    }
    .filter-btn:hover {
      background-color: #f1f5f9 !important;
      color: #1e293b !important;
    }
    .filter-btn.active {
      background-color: #2563eb !important;
      color: #ffffff !important;
      border-color: #2563eb !important;
      font-weight: 600;
    }

    .masonry {
      columns: 1;
      column-gap: 1.25rem;
    }
    @media (min-width: 640px) { .masonry { columns: 2; } }
    @media (min-width: 1024px) { .masonry { columns: 3; } }

    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .reveal.active { opacity: 1; transform: translateY(0); }

    @media (max-width: 640px) {
      #profileName { display: none; }
      #profileArea a { padding: 0.5rem; gap: 0; }
      #profileArea img { width: 2rem; height: 2rem; }
    }

    .upload-disabled {
      opacity: 0.5 !important;
      pointer-events: none !important;
      cursor: not-allowed !important;
      filter: grayscale(0.4);
    }
    html {
        min-height: 100%;
    }
    body {
        background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f4f0ff 35%, #e0f2fe 75%, #eef2ff 100%) !important;
        background-attachment: fixed !important;
        background-size: cover !important;
        min-height: 100vh !important;
    }

    /* ===== IMAGE PREVIEW LIGHTBOX ===== */
    #imagePreviewModal {
      opacity: 0;
      transform: scale(0.95);
      transition: opacity 0.3s ease, transform 0.3s ease;
      pointer-events: none;
    }
    #imagePreviewModal.is-open {
      opacity: 1;
      transform: scale(1);
      pointer-events: auto;
    }
    #previewImage {
      animation: lightboxZoomIn 0.3s ease forwards;
    }
    @keyframes lightboxZoomIn {
      from { transform: scale(0.9); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
