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

:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a28;
  --surface: #1e1e2e;
  --border: #2a2a3e;
  --text: #e4e4ef;
  --text2: #8888a8;
  --accent: #7c5cfc;
  --accent2: #a78bfa;
  --green: #34d399;
  --red: #f87171;
  --orange: #fb923c;
  --radius: 16px;
  --radius-sm: 10px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-text { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.accent { color: var(--accent2); }
.header-nav { display: flex; gap: 8px; align-items: center; }
.nav-btn {
  padding: 8px 14px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; font-size: 0.8rem;
  font-weight: 600; transition: all .2s; font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--surface); color: var(--text); border-color: var(--accent); }
.nav-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-btn.logout { color: var(--red); }
.nav-btn.login { color: var(--green); }
.section-header { margin-bottom: 20px; }
.section-header h2 { font-size: 1.3rem; font-weight: 700; }

/* Upload */
.upload-section { padding: 40px 0; }
.title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -1px; }
.subtitle { text-align: center; color: var(--text2); margin-bottom: 40px; font-size: 1rem; }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 30px;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  background: var(--bg2);
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(124, 92, 252, 0.05);
  box-shadow: 0 0 40px rgba(124, 92, 252, 0.1);
}
.upload-icon { font-size: 3rem; color: var(--accent2); margin-bottom: 16px; }
.upload-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.upload-hint { color: var(--text2); font-size: 0.85rem; margin-bottom: 20px; }
.formats { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.badge {
  padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
  background: var(--bg3); color: var(--text2); border: 1px solid var(--border);
}
.badge.out { background: rgba(124, 92, 252, 0.15); color: var(--accent2); border-color: var(--accent); }

/* Upload Options */
.upload-options { margin-top: 24px; }
.option-label {
  display: block; font-size: 0.85rem; color: var(--text2);
  margin-bottom: 10px; font-weight: 500;
}
.folder-selector { margin-bottom: 16px; }
.folder-buttons, .expiry-buttons {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.folder-btn, .expiry-btn {
  padding: 10px 22px; border-radius: var(--radius-sm);
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; font-size: 0.85rem;
  font-weight: 600; transition: all .2s; font-family: 'Inter', sans-serif;
}
.folder-btn:hover, .expiry-btn:hover { border-color: var(--accent); color: var(--text); }
.folder-btn.active {
  background: rgba(124, 92, 252, 0.15); border-color: var(--accent);
  color: var(--accent2); box-shadow: 0 0 20px rgba(124, 92, 252, 0.1);
}
.expiry-btn.active {
  background: rgba(52, 211, 153, 0.12); border-color: var(--green);
  color: var(--green);
}
.expiry-btn[data-expiry="7"].active {
  background: rgba(251, 146, 60, 0.12); border-color: var(--orange); color: var(--orange);
}
.expiry-btn[data-expiry="30"].active {
  background: rgba(248, 113, 113, 0.12); border-color: var(--red); color: var(--red);
}

/* Resize */
.resize-section { margin-top: 16px; }
.resize-toggle { margin-bottom: 12px; }
.resize-toggle input[type="checkbox"] {
  accent-color: var(--accent); width: 16px; height: 16px; vertical-align: middle; cursor: pointer;
}
.resize-options { animation: fadeIn .3s ease; }
.resize-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.preset-btn {
  padding: 6px 14px; border-radius: 8px; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text2); cursor: pointer;
  font-size: 0.75rem; font-weight: 600; transition: all .2s; font-family: 'Inter', sans-serif;
}
.preset-btn:hover { border-color: var(--accent); color: var(--text); }
.preset-btn.active { background: rgba(124,92,252,0.15); border-color: var(--accent); color: var(--accent2); }
.resize-inputs {
  display: flex; gap: 10px; align-items: center; margin-bottom: 14px;
}
.resize-field { flex: 1; }
.resize-field label { display: block; font-size: 0.75rem; color: var(--text2); margin-bottom: 4px; }
.resize-field input {
  width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.9rem; font-family: 'Inter', sans-serif;
  outline: none; transition: border .2s;
}
.resize-field input:focus { border-color: var(--accent); }
.lock-btn {
  width: 36px; height: 36px; border-radius: 8px; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text2); cursor: pointer;
  font-size: 1rem; margin-top: 16px; transition: all .2s; flex-shrink: 0;
}
.lock-btn.active { background: rgba(124,92,252,0.15); border-color: var(--accent); color: var(--accent2); }
.quality-row { display: flex; align-items: center; gap: 14px; }
.quality-row .option-label { white-space: nowrap; min-width: 130px; }
.quality-slider {
  flex: 1; -webkit-appearance: none; height: 6px; border-radius: 3px;
  background: var(--bg3); outline: none;
}
.quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--bg);
}
.quality-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--bg);
}

/* Progress */
.progress-wrap { text-align: center; padding: 40px; }
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pbar-wrap { width: 100%; height: 4px; background: var(--bg3); border-radius: 2px; margin-top: 16px; overflow: hidden; }
.pbar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0; transition: width .3s; border-radius: 2px; }

/* Results */
.results-title {
  font-size: 1.2rem; font-weight: 700; color: var(--green);
  margin: 30px 0 20px; display: flex; align-items: center; gap: 8px;
}
.result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.result-preview { display: flex; gap: 16px; align-items: flex-start; }
.result-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--bg3); flex-shrink: 0; cursor: pointer;
}
.result-info { flex: 1; min-width: 0; }
.result-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; word-break: break-all; }
.result-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.result-meta span { font-size: 0.75rem; color: var(--text2); }
.result-meta .saved { color: var(--green); font-weight: 600; }

.link-group { display: flex; gap: 8px; margin-bottom: 8px; }
.link-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; color: var(--text);
  font-size: 0.8rem; font-family: 'Inter', monospace; outline: none;
  min-width: 0;
}
.link-input:focus { border-color: var(--accent); }
.btn-copy, .btn-detail {
  padding: 8px 16px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; cursor: pointer; font-size: 0.8rem;
  font-weight: 600; white-space: nowrap; transition: all .2s;
}
.btn-copy:hover, .btn-detail:hover { background: var(--accent2); }
.btn-copy.copied { background: var(--green); }
.btn-detail { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.btn-detail:hover { border-color: var(--accent); color: var(--accent2); }

.btn-more {
  width: 100%; padding: 14px; background: var(--bg3); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); color: var(--text2); cursor: pointer;
  font-size: 0.9rem; font-weight: 600; transition: all .2s; margin-top: 8px;
}
.btn-more:hover { border-color: var(--accent); color: var(--accent2); background: rgba(124, 92, 252, 0.05); }

.folder-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 600; margin-left: 6px;
  background: rgba(124, 92, 252, 0.15); color: var(--accent2);
}

/* Gallery Tabs */
.gallery-tabs {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 18px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; font-size: 0.8rem;
  font-weight: 600; transition: all .2s; font-family: 'Inter', sans-serif;
}
.tab-btn:hover { border-color: var(--accent); color: var(--text); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Gallery */
.gallery-section { padding: 20px 0 60px; }
.gallery-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.btn-back {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); padding: 8px 16px; border-radius: 8px;
  cursor: pointer; font-size: 0.85rem; transition: all .2s; font-family: 'Inter', sans-serif;
}
.btn-back:hover { color: var(--text); border-color: var(--accent); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  aspect-ratio: 1; cursor: pointer; transition: all .3s;
}
.gallery-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124, 92, 252, 0.15); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item-actions {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex; gap: 6px; opacity: 0; transition: opacity .2s;
}
.gallery-item:hover .gallery-item-actions { opacity: 1; }
.gallery-item-actions button {
  flex: 1; padding: 6px; border-radius: 6px; border: none;
  font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: all .2s;
  font-family: 'Inter', sans-serif;
}
.ga-copy { background: var(--accent); color: #fff; }
.ga-detail { background: var(--surface); color: var(--text); }
.ga-del { background: var(--red); color: #fff; }
.gallery-folder-badge {
  position: absolute; top: 8px; left: 8px; padding: 3px 8px;
  border-radius: 5px; font-size: 0.65rem; font-weight: 700;
  background: rgba(0,0,0,0.7); color: var(--accent2);
  backdrop-filter: blur(4px); z-index: 1;
}

/* Detail Page */
.detail-section { padding: 20px 0 60px; }
.detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.detail-content { animation: fadeIn .4s ease; }
.detail-preview {
  text-align: center; margin-bottom: 24px;
}
.detail-preview img {
  max-width: 100%; max-height: 300px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg3);
}
.detail-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
.detail-table tr { border-bottom: 1px solid var(--border); }
.detail-table tr:last-child { border-bottom: none; }
.detail-table th {
  text-align: left; padding: 14px 20px; font-size: 0.85rem;
  font-weight: 600; color: var(--text2); width: 160px;
  background: var(--bg3); white-space: nowrap;
  vertical-align: top;
}
.detail-table td {
  padding: 14px 20px; font-size: 0.85rem; word-break: break-all;
}
.detail-table td a {
  color: var(--accent2); text-decoration: none;
}
.detail-table td a:hover { text-decoration: underline; }
.detail-qr { text-align: center; padding: 10px 0; }
.detail-qr img { border-radius: 8px; background: #fff; padding: 8px; }
.detail-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.detail-actions a, .detail-actions button {
  padding: 10px 24px; border-radius: 8px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: all .2s;
  text-decoration: none; border: none; font-family: 'Inter', sans-serif;
}
.act-download { background: var(--accent); color: #fff; }
.act-download:hover { background: var(--accent2); }
.act-copy { background: var(--bg3); color: var(--text); border: 1px solid var(--border) !important; }
.act-copy:hover { border-color: var(--accent) !important; color: var(--accent2); }
.act-delete { background: var(--red); color: #fff; }
.act-delete:hover { opacity: 0.8; }

.expiry-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600;
}
.expiry-badge.permanent { background: rgba(52,211,153,0.15); color: var(--green); }
.expiry-badge.warning { background: rgba(251,146,60,0.15); color: var(--orange); }
.expiry-badge.danger { background: rgba(248,113,113,0.15); color: var(--red); }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 20px; border-radius: var(--radius-sm); font-size: 0.85rem;
  font-weight: 500; animation: toastIn .3s ease; min-width: 200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.success { background: var(--green); color: #000; }
.toast.error { background: var(--red); color: #fff; }
.toast.info { background: var(--accent); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.empty-state { text-align: center; padding: 60px; color: var(--text2); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; position: relative; z-index: 1; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}

@media (max-width: 600px) {
  .title { font-size: 1.4rem; }
  .upload-zone { padding: 40px 20px; }
  .result-preview { flex-direction: column; }
  .result-thumb { width: 100%; height: 160px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .detail-table th { width: 110px; padding: 10px 12px; }
  .detail-table td { padding: 10px 12px; }
  .header-nav { gap: 4px; }
  .nav-btn { padding: 6px 10px; font-size: 0.7rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Admin Panel ============ */
.admin-section { padding: 20px 0 60px; }
.admin-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.admin-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--accent2); }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.stat-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; text-align: center;
}
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--accent2); margin-bottom: 4px; }
.stat-label { font-size: 0.75rem; color: var(--text2); font-weight: 500; }
.stats-folders { display: flex; gap: 12px; flex-wrap: wrap; }
.folder-stat {
  flex: 1; min-width: 120px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; text-align: center;
}
.folder-stat-name { font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.folder-stat-count { font-size: 0.75rem; color: var(--text2); }

/* API Keys */
.key-form { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.key-input {
  flex: 1; min-width: 150px; padding: 10px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-size: 0.85rem; font-family: 'Inter', sans-serif; outline: none;
}
.key-input:focus { border-color: var(--accent); }
.key-select {
  padding: 10px 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.85rem;
  font-family: 'Inter', sans-serif; outline: none; cursor: pointer;
}
.key-create-btn {
  padding: 10px 20px; background: var(--accent); color: #fff; border: none;
  border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
  font-family: 'Inter', sans-serif; transition: all .2s; white-space: nowrap;
}
.key-create-btn:hover { background: var(--accent2); }

.new-key-result {
  background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3);
  border-radius: 10px; padding: 14px; margin-bottom: 16px;
  font-family: 'Inter', monospace; font-size: 0.8rem; word-break: break-all;
  color: var(--green);
}

.keys-list { display: flex; flex-direction: column; gap: 8px; }
.key-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.8rem;
}
.key-item-name { font-weight: 600; flex: 1; }
.key-item-role {
  padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600;
}
.key-item-role.admin { background: rgba(248,113,113,0.15); color: var(--red); }
.key-item-role.user { background: rgba(124,92,252,0.15); color: var(--accent2); }
.key-item-prefix { color: var(--text2); font-family: monospace; font-size: 0.75rem; }
.key-item-usage { color: var(--text2); font-size: 0.75rem; }
.key-item-revoke {
  padding: 4px 10px; background: transparent; border: 1px solid var(--red);
  border-radius: 6px; color: var(--red); cursor: pointer; font-size: 0.7rem;
  font-weight: 600; transition: all .2s; font-family: 'Inter', sans-serif;
}
.key-item-revoke:hover { background: var(--red); color: #fff; }
.key-item.inactive { opacity: 0.4; }

/* Admin files grid */
.admin-files-list { max-height: 600px; overflow-y: auto; padding-right: 4px; }
.admin-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.admin-gallery-item {
  position: relative; border-radius: 8px; overflow: hidden;
  background: var(--bg3); aspect-ratio: 1; cursor: pointer;
  border: 1px solid var(--border); transition: transform .2s, box-shadow .2s;
}
.admin-gallery-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.admin-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease;
}
.admin-gallery-item:hover img { transform: scale(1.05); }
.agi-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 8px;
  opacity: 0; transition: opacity .2s ease;
}
.admin-gallery-item:hover .agi-overlay { opacity: 1; }
.agi-info { margin-top: auto; color: #fff; }
.agi-name { font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.agi-meta { font-size: 0.65rem; color: rgba(255,255,255,0.7); }
.agi-del {
  align-self: flex-end; width: 28px; height: 28px; border-radius: 6px;
  background: rgba(248,113,113,0.2); border: 1px solid rgba(248,113,113,0.5);
  color: #fff; cursor: pointer; font-size: 0.85rem; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.agi-del:hover { background: var(--red); border-color: var(--red); transform: scale(1.1); }
.agi-folder {
  position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff;
  padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5); pointer-events: none;
}

/* Modal & Cropper */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); z-index: 1000; display: flex;
  align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.modal-content.cropper-modal {
  background: var(--surface); width: 90%; max-width: 800px; max-height: 90vh;
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.modal-header h3 { margin: 0; font-size: 1.2rem; }
.close-btn {
  background: transparent; border: none; font-size: 1.5rem; color: var(--text2);
  cursor: pointer; transition: color .2s;
}
.close-btn:hover { color: var(--red); }
.cropper-container {
  flex: 1; min-height: 300px; max-height: 60vh; background: #000;
  border-radius: 8px; overflow: hidden; margin-bottom: 16px;
}
.cropper-container img { max-width: 100%; display: block; }
.cropper-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cropper-ratios { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-primary {
  padding: 10px 24px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 8px; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(124,92,252,0.3); }
