@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.ttf') format('truetype');
}

:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #8dc7b4;
  --success-light: #34d399;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(229, 231, 235, 0.8);

  --bg-body: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --bg-card: white;
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-500);
  --border-color: var(--gray-200);
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --gray-50: #1f2937;
  --gray-100: #374151;
  --gray-200: #4b5563;
  --gray-300: #6b7280;
  --gray-400: #9ca3af;
  --gray-500: #d1d5db;
  --gray-600: #e5e7eb;
  --gray-700: #f3f4f6;
  --gray-800: #f9fafb;
  --gray-900: #ffffff;
  --success: #10b981;
  --success-light: #34d399;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  --glass-bg: rgba(31, 41, 55, 0.8);
  --glass-border: rgba(75, 85, 99, 0.8);

  --bg-body: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --bg-card: #1f2937;
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-500);
  --border-color: var(--gray-200);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.main .container {
  padding: 40px 24px;
}

/* === TABLES === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 14px;
  min-width: 600px;
}

table th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-weight: 600;
  padding: 16px 12px;
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.025em;
}

table th:first-child {
  border-top-left-radius: var(--radius);
}

table th:last-child {
  border-top-right-radius: var(--radius);
}

table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.5;
}

table tbody tr:hover {
  background: var(--gray-50);
  transition: var(--transition);
}

table tbody tr:last-child td {
  border-bottom: none;
}

table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius);
}

table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius);
}

/* === TEXT SIZES === */
.h1 {
  font-size: 48px;
  font-weight: 600;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 24px;
}

.h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin-bottom: 20px;
}

.h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), var(--shadow-xl);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

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

.btn.btn-secondary {
  background: var(--glass-bg);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
}

.btn.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 36px;
}

.btn.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  min-height: 52px;
}

/* === FORM ELEMENTS === */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.form-input,
.form-textarea,
.form-select,
.form-file {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.form-select,
.form-file {
  cursor: pointer;
}

.form-file {
  position: relative;
  overflow: hidden;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.form-file:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), var(--shadow-md);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover,
.form-file:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.form-file::file-selector-button,
.form-file::-webkit-file-upload-button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  margin-right: 12px;
  margin-left: -4px;
  transition: var(--transition);
}

.form-file::file-selector-button:hover,
.form-file::-webkit-file-upload-button:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-1px);
}

.form-help {
  color: var(--gray-500);
  font-size: 12px;
  margin-top: 4px;
  display: block;
  line-height: 1.4;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
  font-size: 15px;
}

/* === BREADCRUMB === */
.breadcrumb {
  padding-bottom: 10px;
}

.breadcrumb ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
  flex-wrap: wrap;
  line-height: 1.4;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  word-break: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb li > span {
  word-break: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
  color: var(--gray-600);
}

/* === ALERT CLASSES === */
.highlight-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.alert svg {
  flex-shrink: 0;
}

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
}

.alert-success svg {
  color: var(--success);
}

.alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #7f1d1d;
}

.alert-error svg {
  color: #ef4444;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #78350f;
}

.alert-warning svg {
  color: #f59e0b;
}

.alert-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #1e3a8a;
}

.alert-info svg {
  color: var(--primary);
}

/* === HEADER === */
.header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hidden {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  text-decoration: none;
}

.logo:hover {
  transform: translateY(-1px);
}

.mobile-menu-toggle,
.language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle:focus,
.language-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.mobile-menu-toggle:hover,
.language-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav li {
  display: flex;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.nav-link-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* === LANGUAGE DROPDOWN === */
.language-dropdown {
  position: relative;
}

.language-btn .chevron {
  transition: transform var(--transition);
}

.language-btn.active .chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.95);
  transition: var(--transition);
  z-index: 100;
}

.language-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-menu ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.language-menu li {
  margin: 0;
}

.language-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.language-menu a:hover {
  background: var(--gray-50);
  color: var(--primary);
  transform: translateX(2px);
}

/* === MAIN === */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  position: relative;
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  transition: left var(--transition-slow);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar.closed {
  left: -220px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.sidebar-toggle-buttons {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.sidebar-toggle-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  background: var(--gray-50);
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.sidebar-toggle-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

.sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.3);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.5);
}

.sidebar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--gray-500);
  font-size: 14px;
  gap: 12px;
}

.sidebar-image-item,
.sidebar-album-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.sidebar-image-item:hover,
.sidebar-album-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.sidebar-image-link {
  flex: 1;
  text-decoration: none;
  color: inherit;
  display: block;
}

.sidebar-delete-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}

.sidebar-image-item:hover .sidebar-delete-btn,
.sidebar-album-item:hover .sidebar-delete-btn {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-delete-btn:hover {
  background: #fee;
  border-color: #fcc;
  color: #c00;
}

.sidebar-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sidebar-delete-btn.deleting {
  animation: spin-btn 1s linear infinite;
}

@keyframes spin-btn {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.sidebar-image-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.sidebar-image-info {
  padding: 8px 12px;
}

.sidebar-image-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 161px;
}

.sidebar-image-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gray-500);
}

.sidebar-image-size {
  font-weight: 500;
}

.sidebar-image-date {
  opacity: 0.8;
}

.sidebar-album-link {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

.sidebar-album-info {
  flex: 1;
  min-width: 0;
}

.sidebar-album-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-album-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.sidebar-album-count {
  font-weight: 500;
}

.sidebar-album-size {
  opacity: 0.8;
}

.sidebar-album-date {
  font-size: 11px;
  color: var(--gray-500);
  opacity: 0.8;
}

.sidebar-toggle {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(-100%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 12px 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-slow);
}

.sidebar-toggle.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-50%) translateX(0);
}

.sidebar-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
  font-size: 14px;
}

.sidebar-empty svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  margin-top: auto;
}

.sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.sidebar-stat-label {
  color: var(--gray-600);
  font-weight: 500;
}

.sidebar-stat-value {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 14px;
}

/* === HERO SECTION === */
.hero-section {
  text-align: center;
}

.hero-p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === VERIFIED REVIEWS BADGE === */
.verified-reviews-badge {
  width: 100%;
  padding: 12px 0;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.verified-reviews-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  font-size: 13px;
}

.verified-logo {
  color: var(--success);
  flex-shrink: 0;
}

.verified-text {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 12px;
}

.verified-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

.verified-rating {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 13px;
}

/* === UPLOAD ZONE === */
.upload-zone {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.upload-zone:hover {
  border-color: var(--primary-light);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(59, 130, 246, 0.02) 100%);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.upload-zone:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.upload-zone.success {
  border-color: var(--success-light);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.05) 100%);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.upload-content {
  color: var(--gray-600);
  transition: var(--transition);
}

.upload-zone:hover .upload-content {
  color: var(--primary);
}

.upload-content svg {
  margin-bottom: 12px;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.upload-zone:hover .upload-content svg {
  transform: translateY(-6px) scale(1.05);
}

.upload-content h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.upload-content p {
  font-size: 14px;
  margin-bottom: 0;
  opacity: 0.8;
}

.upload-zone.success .upload-content {
  color: var(--success);
}

/* === FEATURES SECTION === */
.features-section {
  margin-top: 80px;
  padding: 0;
  text-align: center;
}

.features-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.features-section .h2 {
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  margin-bottom: 16px;
  color: white;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* === FAQ SECTION === */
.faq-section {
  margin-top: 80px;
}

.faq-title {
  text-align: center;
  margin-bottom: 32px;
}

.faq-section .h2 {
  text-align: center;
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
}

.faq-question:hover,
.faq-question:focus {
  outline: none;
  color: var(--primary);
}

.faq-icon {
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 20px 20px;
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  text-align: center;
}

.footer p {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 400;
  margin-top: 12px;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links ul {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: var(--transition);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  transform: translateY(-1px);
}

/* === ALBUM COUNTER BUTTON === */
.album-counter-btn {
  display: none;
  gap: 6px;
  margin-right: 8px;
  transition: var(--transition);
}

.album-counter-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.album-counter-btn.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #d97706;
  color: white;
}

.album-counter-btn.warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* === THUMBNAIL CONTROLS === */
.thumbnail-controls {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-slow);
}

.thumbnail-controls.visible {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.thumbnail-controls-left,
.thumbnail-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === COPY LINKS MODAL === */
.copy-links-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.copy-links-modal.visible {
  opacity: 1;
  visibility: visible;
}

.copy-links-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition-slow);
}

.copy-links-modal.visible .copy-links-content {
  transform: scale(1);
}

.copy-links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.copy-links-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.copy-links-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.copy-links-body #links-textarea {
  min-height: 200px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.copy-links-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* === THUMBNAILS === */
.preview-thumbnails {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.thumbnail-item.preview {
  opacity: 0.6;
  transition: var(--transition);
}

.thumbnail-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  margin-bottom: 8px;
  transition: var(--transition);
}

.thumbnails-container {
  margin-top: 32px;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-slow);
}

.thumbnails-container.visible {
  display: grid;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.thumbnail-item {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.thumbnail-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.thumbnail-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.thumbnail-item a {
  display: block;
  text-decoration: none;
}

.loading-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 0 0 8px 8px;
  width: 0%;
  transition: width 1s ease-out;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.loading-bar.animate {
  width: 100%;
}

.loading-bar.error {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.thumbnail-info {
  font-size: 11px;
  color: var(--gray-600);
  margin-bottom: 8px;
  text-align: center;
  word-break: break-word;
}

.thumbnail-name {
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumbnail-size {
  opacity: 0.8;
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  opacity: 0;
  transform: scale(0.8);
}

.thumbnail-item:hover .remove-btn {
  opacity: 1;
  transform: scale(1);
}

.remove-btn:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1);
}

.remove-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* === PAGINATION === */
.pagination-section {
  max-width: 800px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-numbers li {
  margin: 0;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pagination-number:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.pagination-number.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pagination-number.active:hover {
  transform: none;
  cursor: default;
}

/* === ARTICLE SECTION === */
.article-section {
  padding-top: 10px;
  padding-bottom: 25px;
  margin-left: auto;
  margin-right: auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.article-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray-500);
}

.article-date {
  font-weight: 500;
}

.article-author {
  color: var(--primary);
  font-weight: 500;
}

.article-title {
  margin-bottom: 16px;
}

.article-title a {
  color: var(--gray-900);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  transition: var(--transition);
  display: block;
}

.article-title a:hover {
  color: var(--primary);
}

.article-description {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.tag-optimization {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag-tutorial {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  color: #1e3a8a;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-news {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
  color: #7f1d1d;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag-features {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
  color: #581c87;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.tag-security {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
  color: #78350f;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.tag-privacy {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
  color: #312e81;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.tag-guide {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
  color: #14532d;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-formats {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(219, 39, 119, 0.05) 100%);
  color: #831843;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.tag-api {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
  color: #164e63;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.tag-development {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.1) 0%, rgba(107, 114, 128, 0.05) 100%);
  color: #374151;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.tag-company {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
  color: #9a3412;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.tag-default {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(75, 85, 99, 0.05) 100%);
  color: #374151;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

/* === ARTICLE CONTENT === */
.article-content {
  line-height: 1.8;
  margin: 32px 0;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 32px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 24px 0 12px 0;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--gray-700);
}

.article-content ul,
.article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  color: var(--gray-700);
}

.article-content code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  color: var(--primary);
}

.article-content pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-meta-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-tags-full {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tags-full strong {
  margin-right: 4px;
}

.article-actions {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.no-articles {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
}

.pagination-dots {
  padding: 8px 12px;
  color: var(--gray-400);
}

/* === CONTENT PAGE === */
.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 48px;
  margin-top: 10px;
  box-shadow: var(--shadow);
  margin-left: auto;
  margin-right: auto;
}

.content-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.content-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.content-section li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.content-section strong {
  color: var(--gray-800);
  font-weight: 600;
}

.content-section h1,
.content-section .h1 {
  font-size: 36px;
}

/* === CODE BLOCKS === */
.code-block {
  background: var(--gray-900);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow-lg);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-header {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-600);
}

.code-language {
  color: var(--gray-300);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-copy {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.code-copy:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  background: transparent;
}

.code-block code {
  color: var(--gray-100);
  font-size: 13px;
  line-height: 1.6;
  font-family: inherit;
}

.code-block .comment { color: #6a9955; }
.code-block .keyword { color: #569cd6; }
.code-block .string { color: #ce9178; }
.code-block .number { color: #b5cea8; }
.code-block .function { color: #dcdcaa; }

/* === IMAGE VIEWER === */
.image-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-bottom: 32px;
}

.image-display {
  position: relative;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}

.main-image {
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.image-info {
  background: var(--gray-50);
  padding: 24px;
  border-top: 1px solid var(--gray-200);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.info-label {
  font-weight: 500;
  color: var(--gray-700);
  padding-right: 10px;
}

.info-value {
  color: var(--gray-900);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* === ALBUM PAGE === */
.album-header {
  margin-bottom: 32px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.album-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.album-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 15px;
}

.album-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.album-image-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.album-image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.album-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.album-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  background: var(--gray-100);
}

.album-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-image-info {
  padding: 16px;
}

.album-image-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.album-image-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.empty-album {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-secondary);
}

.empty-album svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* === ERROR PAGE === */
.error-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
}

.error-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 128px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 24px;
  animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.error-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.error-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* === ANIMATIONS === */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

#loading-indicator svg {
  animation: spin 1s linear infinite;
  color: var(--primary);
}

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  .container {
    padding: 0 12px;
  }

  .h1 {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .main {
    padding: 20px 0;
  }

  .hero-p {
    font-size: 14px;
    margin-bottom: 0;
  }

  .upload-zone {
    padding: 32px 16px;
  }

  .upload-content h2 {
    font-size: 18px;
  }

  .upload-content p {
    font-size: 12px;
  }

  .feature-card p {
    font-size: 12px;
  }

  .faq-question {
    font-size: 13px;
    padding: 16px;
  }

  .faq-answer p {
    font-size: 12px;
  }

  .footer-links ul {
    flex-direction: column;
    gap: 12px;
  }

  .footer p,
  .footer-links a {
    font-size: 11px;
  }

  .thumbnail-info {
    font-size: 10px;
  }

  .features-section {
    margin-top: 40px;
  }

  .features-section .h2 {
    margin-bottom: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .feature-card {
    padding: 16px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .form-input,
  .form-textarea,
  .form-select,
  .form-file {
    font-size: 14px;
    padding: 10px 12px;
  }

  .form-file::file-selector-button,
  .form-file::-webkit-file-upload-button {
    font-size: 12px;
    padding: 6px 10px;
  }

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

  .form-help {
    font-size: 10px;
  }

  .cf-turnstile {
    transform: scale(0.85);
    transform-origin: 0 0;
    margin-bottom: -10px;
  }

  .breadcrumb li > * {
    font-size: 12px;
  }

  .breadcrumb ul {
    gap: 4px;
  }

  .breadcrumb li:not(:last-child)::after {
    margin-left: 4px;
  }

  .breadcrumb a,
  .breadcrumb li > span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .breadcrumb li:last-child a,
  .breadcrumb li:last-child span {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .alert {
    padding: 10px 12px;
    font-size: 12px;
    gap: 8px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
  }

  .logo span {
    display: none;
  }

  .sidebar:not(.closed) {
    left: 0;
  }

  .sidebar-toggle {
    font-size: 12px;
    padding: 8px 4px;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-nav {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(10px);
  }

  .header-nav.active {
    max-height: 300px;
    box-shadow: var(--shadow-lg);
  }

  .header-nav ul {
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }

  .header-nav li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 13px;
  }

  .verified-reviews-badge {
    margin-bottom: 16px;
  }

  .verified-reviews-content {
    padding: 5px 10px;
    font-size: 11px;
    gap: 5px;
  }

  .verified-logo {
    width: 14px;
    height: 14px;
  }

  .verified-text {
    font-size: 10px;
  }

  .verified-stars svg {
    width: 11px;
    height: 11px;
  }

  .verified-rating {
    font-size: 11px;
  }

  .pagination-section {
    margin-top: 24px;
    padding: 0 12px;
  }

  .pagination-numbers {
    gap: 4px;
  }

  .pagination-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .thumbnail-controls {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .thumbnail-controls-left,
  .thumbnail-controls-right {
    width: 100%;
    justify-content: center;
  }

  .copy-links-content {
    width: 95%;
    margin: 16px;
  }

  .copy-links-header {
    padding: 12px 16px;
  }

  .copy-links-header h3 {
    font-size: 15px;
  }

  .copy-links-body {
    padding: 16px;
  }

  .article-section {
    padding: 24px 0;
    margin: 0;
  }

  .articles-grid {
    gap: 16px;
  }

  .article-card {
    padding: 16px;
  }

  .article-title a {
    font-size: 16px;
  }

  .article-description {
    font-size: 12px;
  }

  .article-meta {
    font-size: 11px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .article-meta-full {
    font-size: 12px;
  }

  .article-content h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .article-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .article-content {
    margin: 20px 0;
  }

  .article-content p,
  .article-content li {
    font-size: 12px;
  }

  .content-section {
    padding: 24px 16px;
    margin: 20px 0;
  }

  .content-section p,
  .content-section li {
    font-size: 12px;
  }

  .content-section h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .content-section h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .content-section h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .main .container {
    padding: 20px 12px;
  }

  .image-display {
    padding: 12px;
  }

  .main-image {
    max-height: 60vh;
  }

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

  .actions {
    flex-direction: column;
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .album-title {
    font-size: 20px;
  }

  .album-stats {
    gap: 12px;
    font-size: 12px;
  }

  .album-header {
    padding: 20px;
  }

  .error-code {
    font-size: 80px;
  }

  .error-title {
    font-size: 20px;
  }

  .error-description {
    font-size: 14px;
  }

  .error-actions {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  .container {
    padding: 0 10px;
  }

  .h1 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .h2 {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .btn {
    padding: 7px 14px;
    font-size: 12px;
  }

  .pagination-numbers {
    gap: 3px;
  }

  .pagination-number {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .preview-thumbnails {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
  }

  .preview-thumbnails .thumbnail-item.preview:nth-child(n+3) {
    display: none;
  }

  .thumbnail-placeholder {
    height: 90px;
  }

  .thumbnails-container {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .thumbnail-image {
    height: 90px;
  }

  .thumbnail-info {
    font-size: 10px;
  }

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

  .main .container {
    padding: 16px 10px;
  }

  .content-section {
    padding: 20px 12px;
    margin: 16px 0;
  }

  .article-section {
    padding: 20px 0;
  }
}
