/* fileup – Apple-inspired Modern UI
   Design System: Minimal, Clean, Spacious
   Colors: Soft dark backgrounds, subtle gradients, premium feel
   Font: SF Pro Display inspired (system fonts)
*/

:root {
  /* Apple-inspired Color Palette */
  --bg-page: #000000;
  --bg-page-gradient: none;
  --bg-card: rgba(28, 28, 30, 0.5);
  --bg-card-hover: rgba(44, 44, 46, 0.9);
  --bg-header: rgba(0, 0, 0, 0.8);
  --bg-header-blur: rgba(0, 0, 0, 0.6);
  
  /* Primary Colors */
  --primary: #007AFF;
  --primary-hover: #0051D5;
  --primary-light: rgba(0, 122, 255, 0.1);
  --primary-gradient: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
  
  /* Text Colors */
  --text: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  
  /* Borders & Dividers */
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --divider: rgba(255, 255, 255, 0.08);
  
  /* Spacing & Sizing - Apple Style: Larger, More Spacious */
  --radius: 24px;
  --radius-small: 16px;
  --radius-large: 32px;
  --header-height: 72px;
  --footer-height: 64px;
  --card-width: 720px;
  --card-padding: 64px;
  --section-spacing: 100px;
  
  /* Shadows - Apple Style */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: var(--bg-page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* ----- HEADER ----- */
.app-header {
  height: var(--header-height);
  min-height: 72px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 100;
}


.app-header-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.app-header a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #007AFF 0%, #0051D5 50%, #003D9E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  transition: all var(--transition);
}

.app-logo:hover {
  opacity: 0.9;
}

.app-header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.app-header-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  vertical-align: middle;
  line-height: 1;
}

.app-header-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.12) 0%, rgba(0, 122, 255, 0.06) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius-small);
}

.app-header-nav .nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.app-header-nav .nav-link:hover::before {
  opacity: 1;
}

.app-header-nav .nav-link.active {
  color: #4f8cff;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0%, rgba(0, 122, 255, 0.12) 100%);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* Giriş/Üye Ol butonları için özel stil */
.app-header-nav .nav-link-login {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0.1) 100%);
  color: var(--primary);
  font-weight: 600;
  margin-left: 8px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  box-shadow: var(--shadow-sm);
  padding: 12px 20px;
  min-height: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.app-header-nav .nav-link-login:hover {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.25) 0%, rgba(0, 122, 255, 0.2) 100%);
  color: #0051D5;
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 122, 255, 0.4);
}

.app-header-nav .nav-link-register {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 600;
  margin-left: 6px;
  border: none;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  padding: 12px 20px;
  min-height: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}


.app-header-nav .nav-link-register:hover {
  background: linear-gradient(135deg, #0051D5 0%, #003D9E 100%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

/* Üye paneli ve çıkış butonları */
.app-header-nav .nav-link-user {
  color: var(--text);
  font-weight: 600;
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.app-header-nav .nav-link-user:hover {
  background: rgba(0, 122, 255, 0.2);
  border-color: rgba(0, 122, 255, 0.3);
}

.app-header-nav .nav-link-logout {
  color: var(--text-secondary);
  opacity: 0.9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-header-nav .nav-link-logout:hover {
  color: #FF3B30;
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.3);
  opacity: 1;
}

.app-header-nav .nav-sep {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  margin: 0 8px;
  opacity: 0.6;
}

.app-header-nav .nav-lang {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  font-size: 0.85rem;
}
.app-header-nav .nav-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: #007AFF;
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.35);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-weight: 500;
  position: relative;
  height: 36px;
  line-height: 1;
  vertical-align: middle;
}
.app-header-nav .nav-lang-link:hover {
  color: #007AFF;
  background: rgba(0, 122, 255, 0.2);
  border-color: rgba(0, 122, 255, 0.5);
  text-decoration: none;
}
.app-header-nav .nav-lang-link.active {
  color: #fff;
  background: #007AFF;
  border-color: #007AFF;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.35);
  font-weight: 600;
  padding: 10px 14px;
}
.app-header-nav .nav-lang-link.active:hover {
  color: #fff;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: none;
}

/* Hamburger Menu Toggle */
.app-header-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  position: relative;
  gap: 5px;
}

.app-header-menu-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.app-header-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.app-header-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.app-header-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ----- MAIN ----- */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--section-spacing) 40px;
  padding-top: 60px;
  background: transparent;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  position: relative;
}

/* Ana sayfa: yükleme alanını dikey ve yatay ortalama */
.app-main:has(#singleUploader) {
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* İndirme sayfası: kartı dikey ve yatay ortalama */
.app-main:has(.page-card--download),
.app-main:has(.page-card--notfound),
.app-main:has(.page-card--delete) {
  justify-content: center;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Upload card - Clean minimal */
.upload-card {
  width: 100%;
  max-width: var(--card-width);
  min-height: 500px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: none;
  transition: none;
  position: relative;
  overflow: visible;
}


.upload-card .card-title {
  margin: 0 0 48px;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  text-align: center;
  line-height: 1.2;
}

/* ============================================
   ANASAYFA YÜKLEME BÖLÜMÜ - TAMAMEN YENİ TASARIM
   ============================================ */

/* Upload kartı - Tamamen şeffaf ve minimal */
#singleUploader {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

#singleUploader .upload-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  min-height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

#singleUploader .upload-card::before {
  display: none !important;
}

#singleUploader .upload-card .card-title {
  display: none !important;
}

/* Drop zone - Minimal Modern Design */
.drop-zone {
  width: 100%;
  min-height: 400px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-large);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}



/* Upload icon - Clean and minimal */
.drop-zone::before {
  content: '';
  display: block;
  width: 80px;
  height: 80px;
  margin-bottom: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.6)' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5'/%3E%3C/svg%3E") center no-repeat;
  background-size: 80px 80px;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 1;
}

/* Hover state - Subtle */
.drop-zone:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.drop-zone:hover::before {
  opacity: 0.7;
}




/* Drag over state - Clean feedback */
.drop-zone.is-dragover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.4);
  border-style: solid;
}

.drop-zone.is-dragover::before {
  opacity: 0.8;
}


/* Drop text - Clean typography */
.drop-zone .drop-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.5;
  text-align: center;
  padding: 0 40px;
  pointer-events: none;
  max-width: 560px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.drop-zone .drop-text strong {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
}

/* Upload size hint - Minimal */
.upload-max-size-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Beni destekle - below drop zone */
.support-me-wrap {
  margin-top: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.btn-support-me {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #007AFF;
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.35);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-support-me:hover {
  background: rgba(0, 122, 255, 0.2);
  border-color: rgba(0, 122, 255, 0.5);
  color: #007AFF;
  text-decoration: none;
}

/* File input wrapper - Full coverage */
.file-input-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
  border-radius: var(--radius-large);
}

.file-input-wrap input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 0;
}

/* File input wrap - Full coverage for click */
.file-input-wrap {
  pointer-events: all;
}

/* Dosya seç butonu - Ultra premium design */
#singleUploader .upload-card {
  align-items: center;
}

#singleUploader .upload-card .btn-select-files {
  min-height: 56px;
  padding: 0 48px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-small);
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  width: auto;
  max-width: none;
  border: none;
}

#singleUploader .upload-card .btn-select-files:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

#singleUploader .upload-card .btn-select-files:active {
  box-shadow: 0 1px 4px rgba(0, 122, 255, 0.2);
}

/* Butonlar: metin alt alta geçmesin */
.btn,
button.btn,
a.btn {
  white-space: nowrap;
}

/* Primary button - Apple Style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 44px;
  background: var(--primary-gradient);
  color: var(--text);
  border: none;
  border-radius: var(--radius-small);
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0051D5 0%, #003D9E 100%);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  box-shadow: var(--shadow-sm);
}

/* Progress (for upload) – keep selectors for sfs.min.js */
#singleUploader .progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 24px 0 12px;
  backdrop-filter: blur(10px);
}

.progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 24px 0 12px;
  backdrop-filter: blur(10px);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary-gradient);
  border-radius: inherit;
  transition: width var(--transition);
}

.progress .pct {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Upload progress card içindeki progress için özel stil yukarıda tanımlı */

/* Uploader: keep width so progress state has same card space */
.app-main #singleUploader {
  width: 100%;
  max-width: var(--card-width);
  min-width: 280px;
}

/* Hide progress/cancel/speed until script shows them */
#singleUploader .uploader-extra,
#singleUploader #uploadProgressCard {
  display: none;
}

/* Alttaki tekrarlayan "dosya seçin veya Sürükleyip Bırakın" metnini gösterme */
#singleUploader #uploadInfo {
  display: none !important;
}

/* Modern Upload Progress Card */
#uploadProgressCard {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem auto 0;
  max-width: 640px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.upload-file-info {
  margin-bottom: 1.5rem;
}

.upload-file-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  word-break: break-word;
  letter-spacing: -0.01em;
}

.upload-file-name .file-name-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-size {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.upload-file-size .file-size-text {
  color: var(--primary);
  font-weight: 600;
}

.progress-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.progress-info .pct {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0;
}

#uploadProgressCard .progress {
  margin: 0;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

#uploadProgressCard .progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: inherit;
  transition: none;
}

#uploadProgressCard .speedIndicator {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0;
}

#uploadProgressCard .speedIndicator span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#uploadProgressCard .speedIndicator .upload-speed::before {
  content: "\f0e7";
  font-family: FontAwesome;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

#uploadProgressCard .speedIndicator .upload-time::before {
  content: "\f017";
  font-family: FontAwesome;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

#uploadProgressCard .upload-actions {
  display: flex !important;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: stretch !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100%;
}

#uploadProgressCard .pauseUpload,
#uploadProgressCard .resumeUpload,
#uploadProgressCard .cancelUpload {
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: 1 1 0% !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  border-radius: 8px;
  padding: 12px 8px !important;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: auto;
  line-height: 1.4;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#uploadProgressCard .pauseUpload {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
  color: #FFC107;
}

#uploadProgressCard .pauseUpload:hover {
  background: rgba(255, 193, 7, 0.2);
  border-color: #FFC107;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

#uploadProgressCard .pauseUpload:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.2);
}

#uploadProgressCard .resumeUpload {
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
  color: #4CAF50;
}

#uploadProgressCard .resumeUpload:hover {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4CAF50;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

#uploadProgressCard .resumeUpload:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

#uploadProgressCard .cancelUpload {
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.3);
  color: #FF3B30;
}

#uploadProgressCard .cancelUpload:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: #FF3B30;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

#uploadProgressCard .cancelUpload:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.2);
}

/* Cancel upload button */
#singleUploader .cancelUpload {
  margin-top: 16px;
  width: 100%;
  max-width: 200px;
}

.cancelUpload {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius-small);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.cancelUpload:hover {
  border-color: #FF3B30;
  color: #FF3B30;
  background: rgba(255, 59, 48, 0.1);
  box-shadow: var(--shadow-sm);
}

#singleUploader .speedIndicator {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Success / result views – Apple Style (kompakt) */
.result-section {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(28, 28, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}


.result-section h1,
.result-section h2,
.result-section h3,
.result-section h4 {
  color: var(--text);
  font-weight: 600;
  margin-top: 0;
}

.result-section h1 {
  font-size: 1.625rem;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  row-gap: 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.result-section h1 .btn,
.result-section h1 .nob {
  min-height: 44px;
  padding: 0 24px;
  font-size: 0.9375rem;
  border-radius: var(--radius-small);
  font-weight: 600;
  flex-shrink: 0;
}
.result-section h2 { 
  font-size: 1.375rem; 
  margin-bottom: 20px; 
  font-weight: 600;
  letter-spacing: -0.02em;
}
.result-section h3 {
  font-size: 1.125rem;
  margin-bottom: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.result-section h3 .small { color: var(--text-secondary); font-weight: 500; font-size: 0.875rem; }
.result-section h3 .js-btn-add-file-description {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8125rem;
  border-radius: 8px;
}
.result-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  margin-top: 24px;
  color: var(--text-secondary);
}
.result-section h4:first-of-type { margin-top: 0; }
.result-section .col-xs-12 > h4:first-child { margin-top: 0; }

.result-section .form-control,
.result-section input[type="text"],
.result-section input[type="email"],
.result-section textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  min-height: 46px;
}
.result-section textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  padding-top: 12px;
}

.result-section .form-control:focus,
.result-section input:focus,
.result-section textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.result-section label {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

.result-section .btn {
  padding: 0 28px;
  min-height: 46px;
  border-radius: var(--radius-small);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}

.result-section .btn-primary,
.result-section .btn.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.result-section .btn-primary:hover,
.result-section .btn.btn-primary:hover {
  background: linear-gradient(135deg, #0051D5 0%, #003D9E 100%);
  box-shadow: var(--shadow-md);
}

.result-section .btn-danger,
.result-section .btn.btn-danger {
  background: #c0392b;
  color: var(--text);
}

.result-section .btn-danger:hover {
  background: #e74c3c;
}

.result-section small,
.result-section .text-muted {
  color: var(--text-secondary);
}

.result-section-link-expiry {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #007AFF;
}

.result-section .form-group {
  margin-bottom: 0.875rem;
}
.result-section .row {
  margin-bottom: 0.75rem;
}
.result-section .susFName,
.result-section .js-file-description-wrapper {
  margin-bottom: 0;
}
.result-section .js-file-description-wrapper {
  padding: 16px 0 8px;
}
.result-section .js-file-description-wrapper .input-group {
  margin-bottom: 0;
}

.result-section .form-group label {
  display: block;
  margin-bottom: 0.35rem;
}

.result-section .form-horizontal .form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.result-section .form-horizontal .control-label {
  flex: 0 0 80px;
  margin-bottom: 0;
}

.result-section .form-horizontal .col-xs-8,
.result-section .form-horizontal .col-sm-10 {
  flex: 1;
  min-width: 0;
}

.result-section .input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1rem;
  border-radius: var(--radius-small);
  overflow: visible;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.result-section .input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}
.result-section .col-xs-12 > .input-group:last-of-type { margin-bottom: 0; }
.result-section .input-group .form-control {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: var(--radius-small) 0 0 var(--radius-small);
  background: transparent;
  font-size: 0.9375rem;
  padding-left: 16px;
  padding-right: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 46px;
}

.result-section .input-group-btn {
  flex-shrink: 0;
  position: relative;
  display: flex;
}

.result-section .input-group-btn .btn {
  height: 100%;
  min-height: 46px;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 20px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.result-section .input-group-btn .btn:first-child {
  border-radius: 0;
}
.result-section .input-group-btn .btn:last-child {
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}
.result-section .input-group-btn .btn:hover {
  transform: none;
}
.result-section .input-group-btn .btn-primary:hover {
  background: linear-gradient(135deg, #0051D5 0%, #003D9E 100%) !important;
  filter: brightness(1.1);
}
.result-section .input-group-btn .btn-danger:hover {
  background: #c0392b !important;
  filter: brightness(1.1);
}

/* Şimdilik gizle: Linki aç butonları */
.result-section .input-group-btn .btndown,
.result-section .input-group-btn .btndel,
.result-section .input-group-btn .btngrp {
  display: none !important;
}
/* Şimdilik gizle: aşağı ok (dropdown) – göstermek için bu kuralı kaldırın */
.result-section .input-group-btn .js-dropdown-toggle,
.result-section .input-group-btn .dropdown-toggle {
  display: none !important;
}
.result-section .input-group-btn .dropdown-toggle {
  min-width: 36px;
  padding: 0 8px;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}
.result-section .input-group-btn .js-open-link-new-tab {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  min-width: 56px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.result-section .input-group-btn .js-open-link-new-tab:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}
.result-section .input-group-btn .js-copy-link-btn {
  min-width: 56px;
  padding: 0 18px;
  /* Sağ üst + sağ alt yuvarlak, sol taraf köşeli */
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Tekrardan dosya yükle / Dosya ekle – İndirme linki nin üstünde */
.result-section-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}
/* Tekrardan dosya yükle – şimdilik gizli */
.result-section-link-actions > a:first-child {
  display: none !important;
}

.result-section-link-actions .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.result-section .btn,
.result-section .btn-primary,
.result-section .btn-danger {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-small);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}
.result-section .btn-default {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-small);
  font-weight: 600;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
}
.result-section .btn-default:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 122, 255, 0.1);
}

.result-section .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 180px;
  background: var(--bg-header);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  list-style: none;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow: hidden;
}

.result-section .dropdown-menu.open {
  display: block;
}

.result-section-add-description-wrap {
  margin: 0 0 12px;
}
/* Şimdilik gizle: Açıklama ekle butonu – göstermek için bu kuralı kaldırın */
.result-section-add-description-wrap,
.result-section .js-btn-add-file-description,
.panel-heading .js-btn-add-file-description {
  display: none !important;
}

.result-section .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.result-section .dropdown-menu a:hover {
  background: var(--border);
}

.result-section .row {
  display: block;
  margin-bottom: 1rem;
}

.result-section .col-xs-12,
.result-section .col-md-6 {
  width: 100%;
  margin-bottom: 0.5rem;
}

@media (min-width: 560px) {
  .result-section .row .col-md-6 {
    display: inline-block;
    width: calc(50% - 0.5rem);
    vertical-align: top;
  }
}

/* Link gönder alanı – şimdilik gizli */
.result-section #sendLinkInfoForm,
.result-section #sendLinkInfoFormMulti {
  display: none !important;
}

/* Link gönder alanı – ayrı blok, ferah (gösterildiğinde) */
.result-section #sendLinkInfoForm,
.result-section #sendLinkInfoFormMulti {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.result-section #sendLinkInfoForm h4,
.result-section #sendLinkInfoFormMulti h3 {
  margin-bottom: 18px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}
.result-section #sendLinkInfoForm .form-group,
.result-section #sendLinkInfoFormMulti .form-group {
  margin-bottom: 1rem;
}
.result-section #sendLinkInfoForm .col-md-6,
.result-section #sendLinkInfoFormMulti .col-md-6 {
  margin-bottom: 1rem;
}
@media (min-width: 560px) {
  .result-section #sendLinkInfoForm .row .col-md-6,
  .result-section #sendLinkInfoFormMulti .row .col-md-6 {
    width: calc(50% - 0.5rem);
  }
}
.result-section #sendLinkInfoForm .control-label,
.result-section #sendLinkInfoFormMulti .control-label {
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 8px;
}
.result-section #sendLinkInfoForm .col-xs-8,
.result-section #sendLinkInfoForm .col-sm-10,
.result-section #sendLinkInfoFormMulti .col-xs-8,
.result-section #sendLinkInfoFormMulti .col-sm-10 {
  width: 100%;
  max-width: 100%;
}
.result-section #sendLinkInfoForm input[type="email"],
.result-section #sendLinkInfoFormMulti input[type="email"] {
  width: 100%;
  min-height: 46px;
}
.result-section #sendLinkInfoForm .col-xs-12 .form-group,
.result-section #sendLinkInfoFormMulti .col-xs-12 .form-group {
  margin-bottom: 1rem;
}
.result-section .agree-row {
  margin: 1rem 0 1.25rem;
  padding: 12px 0;
}
.result-section .agree-row label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.result-section .agree-row label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.result-section .agree-row label a:hover {
  text-decoration: underline;
}
.result-section .send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.result-section .send-actions .btn-primary {
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.875rem;
}
.result-section .send-actions .btn-default {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.875rem;
}

/* Kullanım koşulları: sadece popup’ta, sayfada asla görünmesin */
#terms-wrapper,
#terms {
  position: absolute !important;
  left: -9999px !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}
#terms-wrapper { display: none !important; }

/* Bootbox modal: sayfa ortasında overlay (Bootstrap yok, kendi konumumuz) */
.bootbox.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10000 !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background: rgba(0, 0, 0, 0.65) !important;
  -webkit-overflow-scrolling: touch;
}
.bootbox.modal.in {
  opacity: 1;
}
.bootbox .modal-dialog {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: auto !important;
  flex-shrink: 0;
}
.bootbox .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.bootbox .modal-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--bg-header);
  border-radius: 16px 16px 0 0;
}
.bootbox .modal-header .modal-title {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}
/* Modal başlığındaki çarpı kaldırıldı – kapatmak için İptal kullanılıyor */
.bootbox .modal-header .close {
  display: none !important;
}
/* Şifre input içindeki tarayıcı “temizle” ikonunu koyu temaya uydur / gizle */
.bootbox .modal-body input[type="password"]::-webkit-credentials-auto-fill-button,
.bootbox .modal-body input[type="password"]::-ms-clear,
.bootbox .modal-body input[type="password"]::-ms-reveal {
  visibility: hidden;
}
.bootbox .modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.bootbox .modal-body h3 {
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 12px;
}
.bootbox .modal-body p {
  margin-bottom: 1em;
}
.bootbox .modal-body p:last-child {
  margin-bottom: 0;
}

/* QR kodu modalı: görseli ortala */
.bootbox .modal-body .qr-modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  min-height: 120px;
}
.bootbox .modal-body .qr-modal-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Şifre modalı: input ve uyarı */
.bootbox .modal-body .pwdChecker {
  text-align: left;
}
.bootbox .modal-body .pwdChecker .alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.4);
  color: #FF3B30;
}
.bootbox .modal-body .pwdChecker input.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  margin: 0;
}
.bootbox .modal-body .pwdChecker input.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Şifre belirleme modalı (İndirme şifresi belirleyin): input ve uyarı */
.bootbox .modal-body .pwd-set-checker .alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.4);
  color: #FF3B30;
}
.bootbox .modal-body .pwd-set-checker .form-group {
  margin-bottom: 14px;
}
.bootbox .modal-body .pwd-set-checker .form-group:last-of-type {
  margin-bottom: 0;
}
.bootbox .modal-body .pwd-set-checker input.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  margin: 0;
  transition: border-color 0.2s ease;
}
.bootbox .modal-body .pwd-set-checker input.form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}
.bootbox .modal-body .pwd-set-checker input.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}
.bootbox .modal-body .pwd-set-checker input[type="password"]::-webkit-credentials-auto-fill-button,
.bootbox .modal-body .pwd-set-checker input[type="password"]::-ms-clear,
.bootbox .modal-body .pwd-set-checker input[type="password"]::-ms-reveal {
  visibility: hidden;
}

.bootbox .modal-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  background: var(--bg-header);
  border-radius: 0 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.bootbox .modal-footer .btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
}
.bootbox .modal-footer .btn-default {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border);
}
.bootbox .modal-footer .btn-default:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 122, 255, 0.1);
}
.bootbox .modal-footer .btn-primary {
  background: var(--primary);
  color: #fff;
}
.bootbox .modal-footer .btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* Şifre modalı açıkken arka planı gösterme, şifre girilene kadar gizle */
body.pwd-modal-open .app-header,
body.pwd-modal-open .app-main {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
body.pwd-modal-open .app-body {
  overflow: hidden;
}

/* Utility: hide when not active (no !important so jQuery fadeIn() can show success views) */
.js-hide {
  display: none;
}

/* Footer – şimdilik gizli */
.app-footer {
  display: none;
  height: var(--footer-height);
  flex-shrink: 0;
  border-top: 1px solid var(--divider);
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

.app-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.app-footer a {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  text-decoration: none;
  margin: 0;
  transition: all var(--transition);
  font-weight: 500;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* PNotify toast: sağ üst, koyu tema, profesyonel görünüm */
.ui-pnotify,
.ui-pnotify.stack-bottomleft,
.ui-pnotify.stack-topleft,
.ui-pnotify.stack-bottomright {
  top: 88px !important;
  right: 24px !important;
  left: auto !important;
  bottom: auto !important;
  position: fixed !important;
  z-index: 9999;
  max-width: calc(100vw - 48px);
}

.ui-pnotify-container {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  padding: 10px 14px !important;
  min-width: 200px;
  max-width: 320px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ui-pnotify-title {
  color: var(--text) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  margin-bottom: 4px !important;
}

.ui-pnotify-text {
  color: var(--text-secondary) !important;
  font-size: 0.8125rem !important;
}

.ui-pnotify-container.alert-success {
  border-left: 4px solid #27ae60 !important;
}

.ui-pnotify-container.alert-danger,
.ui-pnotify-container.alert-error {
  border-left: 4px solid #e74c3c !important;
}

.ui-pnotify-container.alert-info {
  border-left: 4px solid var(--primary) !important;
}

@media (max-width: 768px) {
  .ui-pnotify,
  .ui-pnotify.stack-bottomleft,
  .ui-pnotify.stack-topleft,
  .ui-pnotify.stack-bottomright {
    top: max(100px, calc(env(safe-area-inset-top) + 56px)) !important;
    right: 10px !important;
    left: auto !important;
    max-width: min(192px, calc(100vw - 20px)) !important;
    width: auto !important;
    margin: 0 !important;
  }
  .ui-pnotify-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 5px 8px !important;
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
    box-sizing: border-box;
    font-size: 0.625rem !important;
    line-height: 1.25 !important;
    min-width: 0 !important;
    background: rgb(28, 28, 30) !important;
    background: rgba(28, 28, 30, 0.98) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  }
  .ui-pnotify-title {
    display: block !important;
    margin-bottom: 1px !important;
    word-break: break-word;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
  }
  .ui-pnotify-text {
    display: block !important;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.625rem !important;
    line-height: 1.25 !important;
  }
  .ui-pnotify-text code {
    display: block;
    margin-top: 2px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    font-size: 0.5625rem;
    word-break: break-all;
    line-height: 1.2;
  }
}

/* ----- Sayfa kartı (İletişim, SSS) - Apple Style ----- */
.page-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(28, 28, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Dosya Bildir formu – biraz daha dar ve kompakt */
.page-card--abuse {
  max-width: 460px;
  padding: 26px 28px;
}
.page-card--abuse .page-card-title {
  font-size: 1.3125rem;
  margin-bottom: 6px;
}
.page-card--abuse .page-card-subtitle {
  font-size: 0.9375rem;
  margin-bottom: 18px;
}
.page-card--abuse p {
  font-size: 0.9375rem;
  margin-bottom: 20px;
}
.page-card--abuse .page-form .form-group {
  margin-bottom: 0.875rem;
}
.page-card--abuse .page-form .form-control {
  padding: 10px 14px;
  min-height: 42px;
  font-size: 0.875rem;
}
.page-card--abuse .page-form textarea.form-control {
  min-height: 88px;
}
.page-card--abuse .page-form .btn-primary {
  min-height: 42px;
  padding: 0 24px;
  font-size: 0.875rem;
}

.page-card-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.page-card-subtitle {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}

.page-form .form-group {
  margin-bottom: 1rem;
}

.page-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.page-form .form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  min-height: 46px;
}

.page-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

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

.page-form .btn-primary {
  min-height: 46px;
  padding: 0 28px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.page-form .form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wrapper-captcha {
  position: relative;
}

.wrapper-captcha .img-captcha {
  display: block;
  border-radius: var(--radius-small);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.wrapper-captcha .img-captcha:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.btn-captcha-refresh {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.btn-captcha-refresh:hover {
  color: var(--primary);
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
  transform: rotate(90deg);
}

.captcha-row .form-control {
  flex: 1;
  min-width: 140px;
}

/* FAQ accordion – okunabilirlik artırıldı */
.faq-list {
  margin-top: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-q {
  padding: 0;
}

.faq-q a {
  display: block;
  padding: 24px 28px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}

.faq-q a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-q a::after {
  content: '+';
  float: right;
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.7;
  transition: all var(--transition);
}

.faq-item.open .faq-q a::after {
  content: '−';
  opacity: 1;
}

.faq-a {
  display: none;
  padding: 0 28px 28px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
  max-width: 52em;
}

.faq-item.open .faq-a {
  display: block;
  padding-top: 18px;
}

.faq-a p {
  margin: 0 0 0.75em;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* ----- İndirme sayfası (paylaşım linki) ----- */
.page-card--download {
  /* Upload success kartı (.result-section) ile aynı oranlar */
  max-width: 560px;
  padding: 36px 40px;
}

.page-card--download .page-card-title {
  margin-bottom: 0;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.download-back {
  margin: 6px 0 18px;
}

.link-back {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-back:hover {
  color: var(--primary-hover);
  transform: translateX(-2px);
}

.link-back::before {
  content: '←';
  font-size: 1.125rem;
}

.download-message {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  backdrop-filter: blur(10px);
}

.download-file-block,
.download-preview-image {
  margin-bottom: 20px;
}

.download-filename {
  margin: 0;
  font-size: 1.125rem;
  margin-bottom: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.download-filesize {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-left: 0;
}

.download-preview-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.download-description {
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--divider);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.download-description strong {
  color: var(--text);
  font-weight: 600;
}

.download-meta {
  margin: 18px 0 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.download-meta strong {
  color: var(--text);
  font-weight: 600;
}

.meta-remaining {
  color: var(--primary);
  font-weight: 600;
}

.download-share {
  margin-bottom: 16px;
}

.download-share .social-likes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-share .social-likes > div {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.download-share .social-likes > div:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.download-report {
  margin: 0 0 24px;
  font-size: 0.875rem;
}

.link-report {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  font-weight: 500;
}

.link-report:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.download-button-wrapper {
  margin-top: 8px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  background: var(--primary-gradient);
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-small);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  box-shadow: var(--shadow-sm);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-download:hover {
  background: linear-gradient(135deg, #0051D5 0%, #003D9E 100%);
  box-shadow: var(--shadow-md);
  transform: none;
}

.btn-download:hover::before {
  left: 100%;
}

.btn-download:active {
  transform: none;
}

.btn-download.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.btn-download--wait {
  background: linear-gradient(135deg, #FF9500 0%, #FF7A00 100%);
}

.btn-download--wait:hover {
  background: linear-gradient(135deg, #FFAA33 0%, #FF9500 100%);
}

.btn-download .dwnin {
  display: inline-block;
}

.download-gallery-hint {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted, #666);
  text-align: center;
  line-height: 1.4;
}

.download-view-wrap {
  margin: 14px 0 0;
  text-align: center;
}

.page-card--download .btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-small);
  border: 1px solid var(--border);
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.page-card--download .btn-view:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* ----- 404 sayfası ----- */
.page-card--notfound {
  text-align: center;
}

.notfound-code {
  margin: 0 0 16px;
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  opacity: 0.5;
}

.notfound-icon {
  margin: 0 auto 20px;
  color: var(--text-tertiary);
  opacity: 0.6;
}

.notfound-icon svg {
  display: block;
  margin: 0 auto;
}

.page-card--notfound .page-card-title {
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.page-card--notfound .notfound-actions {
  margin: 0;
  padding-top: 8px;
}

.page-card--notfound .link-back::before {
  margin-right: 6px;
}

/* Sayfa kartı: başarı / uyarı mesajları */
.page-card .form-success,
.page-card .alert-success {
  padding: 20px 24px;
  margin-bottom: 1rem;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.35);
  border-radius: var(--radius-small);
  color: #34C759;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}
.page-card .alert-danger {
  padding: 20px 24px;
  margin-bottom: 1rem;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: var(--radius-small);
  color: #FF3B30;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

/* Silme sayfası */
.delete-confirm {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.delete-actions {
  margin: 1.25rem 0;
}
.form-actions,
.form-actions--danger {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.form-actions--danger .btn-danger {
  background: linear-gradient(135deg, #FF3B30 0%, #FF2D20 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-small);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.form-actions--danger .btn-danger:hover {
  background: linear-gradient(135deg, #FF4D40 0%, #FF3B30 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.form-actions--danger .btn-default {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-small);
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.form-actions--danger .btn-default:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Dosya grubu sayfası */
.page-card--filesgroup .filesgroup-download-zip {
  margin: 1rem 0;
}
.page-card--filesgroup .btn-download-zip {
  font-weight: 600;
}
.page-card--filesgroup .filesgroup-list {
  margin-top: 1rem;
}
.filesgroup-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.filesgroup-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
}

.filesgroup-item-head {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.filesgroup-fname {
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.filesgroup-item-body {
  padding: 16px 20px;
}
.filesgroup-item-body .input-group {
  max-width: 100%;
}
.filesgroup-item-body .form-control {
  font-size: 0.875rem;
}
.filesgroup-item-body .btn {
  min-height: 44px;
  white-space: nowrap;
}

/* Speed indicator (optional) */
.speedIndicator {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Landing info row – hide or minimal */
#landingInfoRow {
  display: none;
}

/* ========== Mobil / tablet: tam uyumlu görünüm ========== */
@media (max-width: 768px) {
  #uploadProgressCard {
    padding: 1.5rem;
    margin: 1.5rem auto 0;
  }
  
  .upload-file-name {
    font-size: 1rem;
  }
  
  .upload-file-size {
    font-size: 0.875rem;
  }
  
  .progress-info .pct {
    font-size: 0.9375rem;
  }
  
  #uploadProgressCard .speedIndicator {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  .app-header {
    min-height: 88px;
    height: auto;
    padding: 24px 24px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    overflow-x: hidden;
  }
  .app-header-inner {
    position: relative;
    gap: 20px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .app-logo {
    font-size: 2.25rem;
    flex-shrink: 0;
    order: 1;
  }
  /* Mobilde hamburger kaldırıldı – sadece dil seçeneği görünür */
  .app-header-menu-toggle {
    display: none !important;
  }
  .app-header-nav {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 8px;
    order: 2;
    margin-left: auto;
    min-width: 0;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }
  .app-header-nav .nav-link,
  .app-header-nav .nav-link-login,
  .app-header-nav .nav-link-register,
  .app-header-nav .nav-link-user,
  .app-header-nav .nav-link-logout {
    display: none !important;
  }
  .app-header-nav .nav-sep {
    display: none !important;
  }
  .app-header-nav .nav-lang {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    margin-top: 0;
    padding: 0;
    gap: 4px;
    font-size: 0.8125rem;
  }
  .app-header-nav .nav-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    font-size: 0.8125rem;
    height: 34px;
    min-height: 34px;
    line-height: 1;
  }
  .app-header-nav .nav-lang-link.active {
    padding: 8px 11px;
  }
  .admin-login-card {
    max-width: 100%;
    margin: 1rem auto;
  }
  .admin-login-card .panel {
    border-radius: var(--radius);
  }
  .admin-login-card .panel-heading {
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1.5rem;
  }
  .admin-login-card .panel-body {
    padding: 0 1.5rem 1rem;
  }
  .admin-login-card .panel-footer {
    padding: 1rem 1.5rem 1.5rem;
  }
  .admin-login-card .form-control {
    height: 48px;
  }
  .admin-login-card .btn-primary {
    height: 48px;
  }
  .app-main {
    padding: 48px 16px 48px;
    padding-top: max(48px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(48px, env(safe-area-inset-bottom));
    align-items: flex-start;
    min-height: 0;
  }
  .app-main:has(#singleUploader) {
    align-items: center;
    justify-content: center;
  }
  .app-main #singleUploader {
    min-width: 0;
    padding: 0 4px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .app-main #singleUploader .upload-card,
  .app-main #singleUploader .drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .upload-card {
    padding: 32px 24px 40px;
    min-height: 300px;
    border-radius: var(--radius);
  }
  .drop-zone {
    min-height: 240px;
    margin-bottom: 24px;
  }
  .drop-zone::before {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    background-size: 56px 56px;
  }
  .drop-zone .drop-text {
    font-size: 1rem;
    padding: 0 24px;
  }
  #singleUploader .upload-card .btn-select-files {
    min-height: 52px;
    padding: 0 32px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
  }
  .upload-max-size-hint {
    margin-top: 20px;
    font-size: 0.8125rem;
  }
  .result-section {
    padding: 32px 24px 40px;
    border-radius: var(--radius);
    margin: 0 8px;
    max-width: 100%;
  }
  .result-section h1 {
    font-size: 1.5rem;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .result-section h1 .btn,
  .result-section h1 .nob {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }
  .result-section h3 {
    padding: 20px 0;
    font-size: 1.125rem;
  }
  .result-section h4 {
    font-size: 0.9375rem;
  }
  .result-section .input-group {
    flex-wrap: wrap;
    border-radius: var(--radius-small);
    overflow: visible;
  }
  .result-section .input-group .form-control {
    min-height: 52px;
    font-size: 16px;
    border-radius: var(--radius-small) var(--radius-small) 0 0;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .result-section .input-group-btn {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-small) var(--radius-small);
    overflow: hidden;
  }
  .result-section .input-group-btn .btn {
    flex: 1;
    min-height: 52px;
    min-width: 44px;
    border-radius: 0 !important;
    border-left: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .result-section .input-group-btn .btn:first-child {
    border-left: none;
  }
  /* Mobilde görünen ilk buton (yan sayfada aç): sol alt köşe yuvarlak */
  .result-section .input-group-btn .js-open-link-new-tab {
    border-radius: 0 0 0 var(--radius-small) !important;
  }
  /* Mobilde görünen son buton (kopyala): sağ alt köşe yuvarlak */
  /* Kopyala: sadece sağ alt köşe yuvarlak, sol alt köşeli */
  .result-section .input-group-btn .js-copy-link-btn {
    border-radius: 0 0 var(--radius-small) 0 !important;
  }
  .result-section .input-group-btn .dropdown-toggle {
    min-width: 48px;
  }
  .result-section-link-actions {
    flex-direction: column;
    gap: 10px;
  }
  .result-section-link-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .result-section .btn,
  .result-section .btn-primary,
  .result-section .btn-default,
  .result-section .btn-danger {
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }
  .result-section .send-actions .btn-primary,
  .result-section .send-actions .btn-default {
    width: 100%;
    justify-content: center;
  }
  .result-section .dropdown-menu {
    min-width: 100%;
    left: 0;
    right: 0;
    border-radius: 10px;
  }
  .result-section .dropdown-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
  }
  #singleUploader .progress {
    margin: 16px 0 8px;
  }
  #singleUploader .cancelUpload {
    min-height: 48px;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .app-header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .app-logo {
    font-size: 1.25rem;
  }
  .upload-card {
    padding: 32px 24px 40px;
    min-height: 300px;
    border-radius: var(--radius);
  }
  .drop-zone {
    min-height: 160px;
  }
  .app-main:has(#singleUploader) {
    align-items: center;
    justify-content: center;
  }
  .app-main:has(.page-card--download),
  .app-main:has(.page-card--notfound),
  .app-main:has(.page-card--delete) {
    align-items: center;
    justify-content: center;
  }
  .app-main #singleUploader {
    margin-left: auto;
    margin-right: auto;
  }
  .result-section {
    padding: 20px 16px 28px;
    margin: 0;
  }
  .result-section .js-file-description-wrapper .input-group {
    flex-direction: column;
  }
  .result-section .js-file-description-wrapper .input-group .form-control {
    border-radius: 10px;
  }
  .result-section .js-file-description-wrapper .input-group-btn {
    width: 100%;
    border-radius: 0 0 10px 10px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .result-section .js-file-description-wrapper .input-group-btn .btn {
    border-radius: 0 0 10px 10px;
  }
}

/* Download sayfası mobil */
@media (max-width: 768px) {
  .app-main .page-card {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .app-main:has(.page-card--download),
  .app-main:has(.page-card--notfound),
  .app-main:has(.page-card--delete) {
    align-items: center;
    justify-content: center;
  }
  .page-card--download {
    /* .result-section (mobil/tablet) ile aynı ölçüler */
    padding: 32px 24px 40px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    margin: 0 8px;
    border-radius: var(--radius);
  }
  .page-card--download .page-card-title {
    font-size: 1.5rem;
  }
  .page-card--download .download-filename {
    padding: 20px 0;
    font-size: 1.125rem;
    word-break: break-word;
  }
  .page-card--download .download-button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .page-card--download .btn-download,
  .page-card--download .btn-view {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 0.9375rem;
  }
  .page-card--download .download-meta,
  .page-card--download .download-report {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  /* .result-section (küçük mobil) ile aynı kompakt ölçüler */
  .page-card--download {
    padding: 20px 16px 28px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    margin: 0;
  }
}

/* Mobil: input/textarea focus’ta tarayıcı yakınlaştırmasın (iOS Safari 16px altında zoom yapıyor) */
@media (max-width: 768px) {
  .result-section .form-control,
  .result-section input[type="text"],
  .result-section input[type="email"],
  .result-section input[type="password"],
  .result-section textarea,
  .result-section .input-group .form-control,
  .page-form .form-control,
  .page-form textarea.form-control,
  .page-form input[type="text"],
  .page-form input[type="email"],
  .page-form textarea,
  .bootbox .modal-body input.form-control,
  .bootbox .modal-body textarea.form-control,
  .filesgroup-item-body .form-control {
    font-size: 16px !important;
  }
}

/* ========== Yönetim paneli – modern koyu tema ========== */
/* Admin sayfalarında header ve içerik aynı sabit genişlikte (Üyeler sayfası gibi) */
body.page-admin .app-header-inner {
  max-width: 1200px;
}
body.page-admin .app-main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  min-height: 60vh;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  min-width: 0;
}
.admin-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}
.admin-title small {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-left: 0.35em;
}
.admin-version {
  font-size: 0.7rem;
  background: var(--border);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 2rem;
  padding: 0;
  min-width: 0;
}
.admin-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}
.admin-nav a:hover {
  color: var(--text);
  background: var(--bg-header);
  border-color: var(--border);
}
.admin-nav a.active {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.admin-nav-logout {
  margin-left: auto;
}
.admin-nav-logout:hover {
  border-color: rgba(255, 59, 48, 0.5);
  color: #FF3B30;
}
.admin-alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.admin-alert--danger {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.35);
  color: #FF3B30;
}
.admin-alert ul { padding-left: 1.25rem; margin: 0.5rem 0 0; }
.admin-alert h5 { margin: 0 0 0.5rem; font-size: 1rem; }

/* Giriş sayfası: uyarı + form tek blokta, taşma yok */
.app-main--login {
  padding-top: 40px;
  justify-content: flex-start;
  min-height: 0;
}
.login-page-wrap {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}
.login-alert {
  margin-bottom: 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.login-page-wrap .admin-login-card {
  margin: 0;
}

/* Admin: kartlar ve paneller */
.admin-wrap .panel,
.admin-wrap .panel-default {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  margin-bottom: 1.5rem;
}
.admin-wrap .panel-heading,
.admin-wrap .panel-default .panel-heading {
  background: var(--bg-header) !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.admin-wrap .panel-default .panel-title {
  color: var(--text);
  font-weight: 600;
}
.admin-wrap .panel-body {
  padding: 1.25rem 1.25rem;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.admin-wrap .panel-footer {
  background: var(--bg-header) !important;
  border-top: 1px solid var(--border) !important;
  padding: 1rem 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* Ayarlar: sol menü (list-group) */
.admin-wrap .row .panel .list-group {
  border: none;
  border-radius: 0;
}
.admin-wrap .list-group-item {
  background: transparent !important;
  border: none !important;
  border-left: 3px solid transparent !important;
  color: var(--text-secondary);
  padding: 12px 1rem;
  font-size: 0.9375rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.admin-wrap .list-group-item:hover {
  background: rgba(255,255,255,0.04) !important;
  color: var(--text);
}
.admin-wrap .list-group-item.active {
  background: rgba(0, 122, 255, 0.12) !important;
  border-left-color: var(--primary) !important;
  color: var(--text);
  font-weight: 600;
}
.admin-wrap .list-group-item .text-muted { color: var(--text-secondary) !important; }
.admin-wrap .list-group-item strong { color: var(--text); }

/* Well = kart görünümü */
.admin-wrap .well {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.admin-wrap .well h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--text);
}

/* Badge */
.admin-wrap .badge {
  background: var(--primary);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8125rem;
}

/* Alert renkleri */
.admin-wrap .alert-info { background: rgba(0, 122, 255, 0.12); border: 1px solid rgba(0, 122, 255, 0.25); color: var(--text); }
.admin-wrap .alert-warning { background: rgba(255, 149, 0, 0.12); border: 1px solid rgba(255, 149, 0, 0.35); color: #FF9500; }
.admin-wrap .alert-success { background: rgba(52, 199, 89, 0.12); border: 1px solid rgba(52, 199, 89, 0.35); color: #34C759; }
.admin-wrap .alert-danger { background: rgba(255, 59, 48, 0.12); border: 1px solid rgba(255, 59, 48, 0.35); color: #FF3B30; }
.admin-wrap .alert { border-radius: var(--radius-small); padding: 1.25rem 1.5rem; backdrop-filter: blur(10px); }

/* Form */
.admin-wrap .form-control {
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9375rem;
}
.admin-wrap .form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}
.admin-wrap .form-horizontal .control-label { color: var(--text-secondary); padding-top: 10px; }
.admin-wrap .input-group-addon {
  background: var(--bg-header);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 10px 14px;
}

/* Butonlar – taşma yok, hover’da hareket yok */
.admin-wrap .btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 16px;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.admin-wrap .btn:active { transform: scale(0.98); }
.admin-wrap .btn-default {
  background: var(--bg-header);
  border: 1px solid var(--border);
  color: var(--text);
}
.admin-wrap .btn-default:hover {
  background: var(--primary-hover);
  border-color: var(--border);
  color: var(--text);
}
.admin-wrap .btn-primary {
  background: var(--primary);
  border: none;
  color: var(--text);
}
.admin-wrap .btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.admin-wrap .btn-success { background: #27ae60; color: #fff; border: none; }
.admin-wrap .btn-success:hover { background: #2ecc71; }
.admin-wrap .btn-sm { padding: 6px 12px; font-size: 0.8125rem; }

/* Dosyalar tablosu – Tools sütunu: tüm ikonlar aynı boyutta */
.admin-wrap .admin-files-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.admin-wrap .admin-files-tools .admin-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
}
.admin-wrap .admin-files-tools .admin-tool-btn i {
  font-size: 1rem;
  line-height: 1;
  width: 1em;
  text-align: center;
}
.admin-wrap #filesDataTable th:last-child,
.admin-wrap #filesDataTable td:last-child {
  min-width: 220px;
  white-space: normal;
}

/* Tablolar (dashboard, dosyalar) */
.admin-wrap .table {
  color: var(--text);
  border-collapse: separate;
  border-spacing: 0;
}
.admin-wrap .table td,
.admin-wrap .table th {
  border-color: var(--border);
  padding: 12px 14px;
  vertical-align: middle;
  overflow-wrap: break-word;
  word-break: break-word;
}
.admin-wrap .table-bordered td,
.admin-wrap .table-bordered th {
  border: 1px solid var(--border);
}
.admin-wrap .table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(255,255,255,0.02);
}
.admin-wrap .table-hover > tbody > tr:hover {
  background: rgba(0, 122, 255, 0.08);
}
.admin-wrap .table thead th {
  background: var(--bg-header);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--border);
}
.admin-wrap .table-responsive {
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  max-width: 100%;
  min-width: 0;
}
.admin-wrap .table-responsive .table {
  margin-bottom: 0;
  min-width: 600px;
}
.admin-wrap #filesDataTable td:nth-child(2) {
  word-break: break-word;
  max-width: 1px;
  min-width: 120px;
}

/* Üyeler tablosu – İşlemler sütunu: butonlar hizalı ve eşit boyut */
.admin-wrap .admin-users-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.admin-wrap .admin-users-actions .admin-users-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
}
.admin-wrap .admin-users-actions .admin-users-action-btn i {
  font-size: 1rem;
  line-height: 1;
  width: 1em;
  text-align: center;
}

/* DataTables (Dosyalar sayfası) */
.admin-wrap .dataTables_wrapper {
  color: var(--text);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.admin-wrap .dataTables_wrapper .dataTables_length select,
.admin-wrap .dataTables_wrapper .dataTables_filter input {
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  max-width: 100%;
  box-sizing: border-box;
}
.admin-wrap .dataTables_wrapper .dataTables_info,
.admin-wrap .dataTables_wrapper .dataTables_paginate { color: var(--text-secondary); font-size: 0.875rem; }
/* Bootstrap pagination - yatay, bullet point yok */
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
  align-items: center;
  min-width: 0;
}
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li {
  list-style: none;
  display: inline-block;
  margin: 0;
}
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li a,
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li span {
  display: inline-block;
  padding: 6px 12px;
  line-height: 1.42857143;
  text-decoration: none;
  background: var(--bg-header);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  min-width: 36px;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
}
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li a:hover {
  background: var(--primary-hover);
  border-color: var(--border);
  color: var(--text);
}
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li.active a,
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li.active span {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
}
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li.disabled a,
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li.disabled span {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li.prev,
.admin-wrap .dataTables_wrapper .dataTables_paginate .pagination li.next {
  margin: 0 2px;
}
.admin-wrap .dataTables_wrapper .dataTables_paginate .paginate_button {
  background: var(--bg-header) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  border-radius: 6px !important;
  margin: 0 2px;
}
.admin-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.admin-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--primary-hover) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* Genel */
.admin-wrap .text-muted { color: var(--text-secondary) !important; }
.admin-wrap .dl-horizontal dt { color: var(--text-secondary); width: 140px; }
.admin-wrap .dl-horizontal dd { color: var(--text); margin-left: 160px; overflow-wrap: break-word; word-break: break-word; min-width: 0; }
.admin-wrap .dl-horizontal dd + dt,
.admin-wrap .dl-horizontal dd + dd { margin-top: 6px; }
.admin-wrap a { color: var(--primary); }
.admin-wrap a:hover { color: var(--primary-hover); }
.admin-wrap h3, .admin-wrap h4 { color: var(--text); margin-top: 0; overflow-wrap: break-word; word-break: break-word; }
.admin-wrap .nav-tabs { border-color: var(--border); }
.admin-wrap .nav-tabs > li > a { color: var(--text-secondary); border-radius: 8px 8px 0 0; }
.admin-wrap .nav-tabs > li.active > a {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
  border-bottom-color: transparent;
}

/* Ayarlar içerik alanı */
.admin-wrap .col-lg-9.col-sm-8 { min-height: 200px; }
/* ========== Ayarlar sayfası (as=settings) ========== */
.admin-wrap .alert-error {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #FF3B30;
  border-radius: var(--radius-small);
  padding: 1rem 1.25rem;
}
.admin-wrap form[id^="fConfig"],
.admin-wrap #fConfigUpload,
.admin-wrap #fConfigDownload,
.admin-wrap #fConfigTimezone {
  max-width: 100%;
  min-width: 0;
}
.admin-wrap .panel-sfs-settings {
  margin-bottom: 1.5rem;
}
.admin-wrap .panel-sfs-settings .panel-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-wrap .panel-sfs-settings .panel-heading .pull-right {
  margin-left: auto;
}
.admin-wrap .panel-sfs-settings .panel-body {
  padding: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.admin-wrap .panel-sfs-settings .panel-body h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.admin-wrap .panel-sfs-settings .panel-body h4:first-child {
  margin-top: 0;
}
.admin-wrap .save-status-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.admin-wrap .save-status-block .btn,
.admin-wrap .save-status-block strong {
  flex-shrink: 0;
}
.admin-wrap .btn-blocks.row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  min-width: 0;
}
.admin-wrap .btn-blocks .col-xs-12 h3 {
  margin-bottom: 1rem;
  color: var(--text);
}
.admin-wrap .btn-blocks .btn-block {
  height: auto;
  min-height: 100px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-header);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  white-space: normal;
}
.admin-wrap .btn-blocks .btn-block:hover {
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.35);
  color: var(--text);
}
.admin-wrap .btn-blocks .btn-block i.fa-3x {
  font-size: 2rem;
  opacity: 0.9;
}
.admin-wrap .panel-sfs-settings .form-horizontal .form-group {
  margin-left: 0;
  margin-right: 0;
}
.admin-wrap .panel-sfs-settings .input-group .form-control,
.admin-wrap .panel-sfs-settings .input-group-addon {
  max-width: 100%;
  box-sizing: border-box;
}
.admin-wrap .panel-sfs-settings code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}
.admin-wrap .panel-sfs-settings .alert-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.admin-wrap #fConfigUpload .panel-sfs-settings { margin-bottom: 1.5rem; }
.admin-wrap #fConfigUpload .panel-sfs-settings .panel-body { padding: 1.25rem; }

/* Giriş kartı - Apple Style */
.admin-login-card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.admin-login-card .panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}
.admin-login-card .panel-heading {
  padding: 1.5rem 2rem 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: none;
  text-align: center;
  letter-spacing: -0.04em;
}
.admin-login-card .panel-body {
  padding: 0 2rem 1rem;
}
.admin-login-card .form-group { 
  margin-bottom: 1.25rem; 
}
.admin-login-card .form-group:last-of-type { 
  margin-bottom: 0; 
}
.admin-login-card .form-control {
  height: 48px;
  font-size: 0.9375rem;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 18px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}
.admin-login-card .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}
.admin-login-card .form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}
.admin-login-card .panel-footer {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-login-card .btn-primary {
  width: 100%;
  height: 48px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-small);
  background: var(--primary-gradient);
  border: none;
  color: white;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  letter-spacing: -0.01em;
}
.admin-login-card .btn-primary:hover {
  background: linear-gradient(135deg, #0051D5 0%, #003D9E 100%);
  box-shadow: var(--shadow-lg);
}
.admin-login-card .btn-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px;
  text-align: center;
  transition: all var(--transition);
}
.admin-login-card .btn-link:hover {
  color: #0051D5;
  text-decoration: none;
}

/* Login sayfası için özel düzenlemeler */
.app-main:has(.admin-login-card) {
  padding-top: 40px !important;
  justify-content: flex-start !important;
}

/* ========== Üye Paneli (UCP) Modern Tasarım ========== */
.ucp-main {
  padding: 2rem 24px 4rem;
  align-items: flex-start;
  justify-content: center;
}

.ucp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ucp-header {
  background: var(--bg-card);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: 2.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-light);
  position: relative;
  overflow: hidden;
}

.ucp-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.ucp-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.ucp-header-left {
  flex: 1;
  min-width: 200px;
}

.ucp-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ucp-welcome {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.ucp-email {
  color: var(--text);
  font-weight: 600;
}

.ucp-header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ucp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.ucp-btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.ucp-btn-primary:hover {
  background: linear-gradient(135deg, #0051D5 0%, #003D9E 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ucp-btn-secondary {
  background: rgba(0, 122, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.ucp-btn-secondary:hover {
  background: rgba(0, 122, 255, 0.2);
  color: #0051D5;
  border-color: rgba(0, 122, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ucp-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.ucp-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ucp-content {
  background: var(--bg-card);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: 2.75rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-light);
  position: relative;
  overflow: hidden;
}

.ucp-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.ucp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ucp-section-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ucp-section-title i {
  color: var(--primary);
}

.ucp-file-count {
  color: var(--text-secondary);
  font-size: 0.875rem;
  background: rgba(0, 122, 255, 0.12);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.ucp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.ucp-toolbar-perpage,
.ucp-toolbar-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}
.ucp-toolbar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ucp-toolbar-select,
.ucp-toolbar-input {
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  min-width: 120px;
}
.ucp-toolbar-input {
  min-width: 220px;
}
.ucp-toolbar-search {
  flex: 1;
  min-width: 200px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}
.ucp-toolbar-search .ucp-toolbar-input {
  flex: 1;
  min-width: 180px;
}
.ucp-toolbar-btn {
  flex-shrink: 0;
}

.ucp-pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ucp-pagination-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.ucp-pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ucp-pagination-list a,
.ucp-pagination-list .ucp-pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.ucp-pagination-list a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.ucp-pagination-list a:hover {
  background: rgba(0, 122, 255, 0.15);
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--primary);
}
.ucp-pagination-current {
  background: var(--primary);
  color: white;
  border: 1px solid transparent;
}
.ucp-pagination-ellipsis {
  padding: 0.35rem 0.5rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.ucp-empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.ucp-empty-icon {
  font-size: 4rem;
  color: var(--text-secondary);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.ucp-empty-state h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.ucp-empty-state p {
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.ucp-files-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ucp-file-card {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 2rem 2.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
}

.ucp-file-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.ucp-file-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 122, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ucp-file-card:hover::before {
  opacity: 1;
}

.ucp-file-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 122, 255, 0.12);
  border-radius: var(--radius-small);
  color: var(--primary);
  font-size: 1.75rem;
  transition: all var(--transition);
}

.ucp-file-card:hover .ucp-file-icon {
  background: rgba(0, 122, 255, 0.2);
  transform: scale(1.05);
}

.ucp-file-info {
  flex: 1;
  min-width: 0;
  padding-right: 1.5rem;
}

.ucp-file-name {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.ucp-file-name strong {
  font-size: 1.0625rem;
  color: var(--text);
  word-break: break-word;
  line-height: 1.5;
}

.ucp-file-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ucp-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.ucp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.ucp-meta-item i {
  opacity: 0.6;
}

.ucp-days-left {
  color: var(--text-secondary);
  opacity: 0.8;
}

.ucp-expired {
  color: #FF3B30 !important;
}

.ucp-expiring-soon {
  color: #FF9500 !important;
}

.ucp-file-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  align-items: center;
}

.ucp-action-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 1.125rem;
}

.ucp-action-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-sm);
}

.ucp-action-share {
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  border-color: rgba(0, 122, 255, 0.2);
}

.ucp-action-share:hover {
  background: rgba(0, 122, 255, 0.25);
  color: #0051D5;
  border-color: rgba(0, 122, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.ucp-action-download:hover {
  background: rgba(0, 122, 255, 0.2);
  color: var(--primary);
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.ucp-action-delete:hover {
  background: rgba(255, 59, 48, 0.2);
  color: #FF3B30;
  border-color: rgba(255, 59, 48, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

/* Üye Paneli Mobil */
@media (max-width: 768px) {
  .ucp-main {
    padding: 1rem 16px 3rem;
  }
  .ucp-header {
    padding: 1.5rem;
  }
  .ucp-header-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .ucp-title {
    font-size: 1.5rem;
  }
  .ucp-header-actions {
    width: 100%;
  }
  .ucp-btn {
    flex: 1;
    justify-content: center;
  }
  .ucp-content {
    padding: 1.5rem;
  }
  .ucp-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .ucp-file-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }
  .ucp-file-info {
    padding-right: 0;
  }
  .ucp-file-name {
    margin-bottom: 1rem;
  }
  .ucp-file-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  .ucp-file-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  .ucp-file-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }
  .ucp-action-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  .ucp-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .ucp-toolbar-search {
    flex-direction: column;
    min-width: 0;
  }
  .ucp-toolbar-search .ucp-toolbar-input {
    min-width: 0;
  }
  .ucp-pagination {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ucp-pagination-list {
    justify-content: center;
  }
}

/* Admin mobil */
@media (max-width: 768px) {
  .admin-wrap { padding: 0 1rem 3rem; overflow-x: hidden; }
  .admin-nav { gap: 6px 8px; margin-bottom: 1.5rem; min-width: 0; }
  .admin-nav a { padding: 10px 14px; font-size: 0.85rem; }
  .admin-nav-logout { margin-left: 0; width: 100%; justify-content: center; }
  .admin-wrap .panel-body,
  .admin-wrap .panel-heading { padding: 1rem; }
  .admin-wrap .list-group-item { padding: 12px 1rem; }
  .admin-wrap .table-responsive {
    margin: 0 0 1rem;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .admin-wrap .table-responsive .table { min-width: 520px; }
  .admin-wrap .table td,
  .admin-wrap .table th { padding: 10px 8px; font-size: 0.875rem; }
  .admin-wrap .col-lg-3.col-sm-4 { margin-bottom: 1rem; }
  .admin-wrap .row { margin-left: -0.5rem; margin-right: -0.5rem; }
  .admin-wrap .row [class*="col-"] { padding-left: 0.5rem; padding-right: 0.5rem; min-width: 0; }
  .admin-wrap .dataTables_wrapper .dataTables_length,
  .admin-wrap .dataTables_wrapper .dataTables_filter { margin-bottom: 0.75rem; }
  .admin-wrap .dataTables_wrapper .dataTables_length select,
  .admin-wrap .dataTables_wrapper .dataTables_filter input { min-height: 38px; max-width: 100%; }
  .admin-wrap .btn { max-width: 100%; }
  .admin-wrap .dl-horizontal dd { margin-left: 0; margin-top: 4px; }
  .admin-wrap .dl-horizontal dt { float: none; width: 100%; }
}

/* ========== Mobil: site geneli uyumluluk ========== */
@media (max-width: 768px) {
  .page-card {
    max-width: 100%;
    padding: 24px 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    margin-left: 8px;
    margin-right: 8px;
  }
  .page-card-title { font-size: 1.375rem; }
  .page-card-subtitle { font-size: 0.9375rem; margin-bottom: 20px; }
  .page-form .form-control,
  .page-form textarea.form-control {
    min-height: 48px;
    font-size: 16px; /* iOS zoom önleme */
  }
  .page-form .btn-primary { min-height: 48px; }
  .app-footer {
    padding: 20px 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    font-size: 0.875rem;
    text-align: center;
  }
  .app-footer .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .ucp-main {
    padding: 1rem 12px 2rem;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .ucp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ucp-header-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ucp-header-actions .ucp-btn {
    min-height: 44px;
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
  .ucp-file-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }
  .ucp-file-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .ucp-action-btn {
    min-height: 48px;
    min-width: 48px;
  }
}

@media (max-width: 480px) {
  .app-header {
    min-height: 92px;
    padding: 26px 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .app-logo {
    font-size: 2.5rem;
  }
  .app-header-nav .nav-lang-link {
    padding: 6px 10px;
    font-size: 0.75rem;
    height: 30px;
    min-height: 30px;
    line-height: 1;
  }
  .app-header-nav .nav-lang-link.active {
    padding: 6px 10px;
  }
}
  .page-card {
    margin-left: 0;
    margin-right: 0;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    border-radius: var(--radius-small);
  }
  .app-main {
    padding: 40px 12px 32px;
    padding-top: max(40px, env(safe-area-inset-top));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .app-main:has(#singleUploader) {
    padding-top: 48px;
    padding-bottom: 24px;
    align-items: center;
    justify-content: center;
  }
  .app-main #singleUploader {
    margin-left: auto;
    margin-right: auto;
  }
  #uploadProgressCard {
    padding: 1.25rem;
    margin-left: 0;
    margin-right: 0;
  }
  .drop-zone {
    min-height: 200px;
    padding: 24px 16px;
  }
  .drop-zone .drop-text {
    font-size: 0.9375rem;
    padding: 0 12px;
  }
  .btn-primary,
  .cancelUpload,
  .result-section .btn,
  .page-form .btn-primary {
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }
}
