@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

/* ════════════════════════════════
   BASE
════════════════════════════════ */
body {
  background: #f5f4f0;
  min-height: 100vh;
}

.section { background: #f5f4f0; min-height: 100vh; }

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.app-navbar {
  background: #fff;
  border-bottom: 1px solid #e0deda;
  padding: 0 2rem;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  text-decoration: none;
  justify-self: center;
  display: flex;
  align-items: center;
}

.navbar-brand span {
  display: inline-block;
  width: 7px; height: 7px;
  background: #1a1a1a;
  border-radius: 50%;
  margin-left: 2px;
  position: relative;
  top: -1px;
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.navbar-email { font-size: 0.8rem; color: #aaa; }

.navbar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* ════════════════════════════════
   LAYOUT PAGE
════════════════════════════════ */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 0.2rem;
}

/* ════════════════════════════════
   BOUTONS
════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary:hover { background: #333; color: #fff; }

.btn-cancel {
  font-size: 0.85rem;
  font-weight: 500;
  color: #aaa;
  text-decoration: none;
  transition: color 0.15s;
}

.btn-cancel:hover { color: #555; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #bbb;
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover { color: #555; }

/* ════════════════════════════════
   SIDEBAR
════════════════════════════════ */
.sidebar-a { padding: 0.25rem 0; }

.sidebar-a .box-owner { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.sidebar-a .box-owner-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sidebar-a .box-owner-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #bbb; display: block; margin-bottom: 0.15rem; }
.sidebar-a .box-owner-name { font-size: 0.875rem; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sidebar-a .divider { border: none; border-top: 1px solid #dddbd6; margin: 1.1rem 0; }
.sidebar-a .box-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #bbb; display: block; margin-bottom: 0.3rem; }
.sidebar-a .box-title { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; line-height: 1.3; }
.sidebar-a .box-desc { font-size: 0.82rem; color: #888; line-height: 1.65; }
.sidebar-a .box-stats { display: flex; gap: 1.5rem; }
.sidebar-a .stat-value { font-size: 1rem; font-weight: 700; color: #1a1a1a; display: block; }
.sidebar-a .stat-label { font-size: 0.68rem; color: #bbb; text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar-a .comments-heading { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: #bbb; margin-bottom: 0.5rem; }
.sidebar-a .comments-empty { font-size: 0.8rem; color: #ccc; font-style: italic; }

/* ════════════════════════════════
   CONTENT SURFACE
════════════════════════════════ */
.content-surface {
  background: #fff;
  border: 1px solid #e0deda;
  border-radius: 12px;
  overflow: hidden;
}

.content-section { padding: 1.4rem 1.5rem; }
.content-section + .content-section { border-top: 1px solid #f0efeb; }

.content-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  margin-bottom: 1rem;
}

/* ════════════════════════════════
   FILE ITEMS
════════════════════════════════ */
.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 7px;
  background: #faf9f7;
  border: 1px solid #f0efeb;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 0.4rem;
}

.file-item:last-child { margin-bottom: 0; }
.file-item:hover { background: #f5f4f0; border-color: #dddbd6; }

.file-icon {
  width: 28px; height: 28px;
  border-radius: 5px;
  background: #eeedea;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #aaa;
}

.file-mimetype {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
  background: #eeedea;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.file-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta { font-size: 0.78rem; color: #bbb; flex-shrink: 0; }

.file-arrow {
  color: #ccc;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.file-item:hover .file-arrow { color: #999; transform: translateX(2px); }

/* ════════════════════════════════
   DROPZONE
════════════════════════════════ */
.dropzone-area {
  border: 1.5px dashed #ccc;
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  color: #aaa;
  font-size: 0.875rem;
  background: #faf9f7;
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone-area:hover { border-color: #999; background: #f5f4f0; color: #666; }
.dropzone-area svg { margin-bottom: 0.4rem; opacity: 0.35; display: block; margin-inline: auto; }

.notify-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #888;
  cursor: pointer;
}

/* ════════════════════════════════
   BOXES GRID (index)
════════════════════════════════ */
.search-bar { position: relative; margin-bottom: 1.5rem; }

.search-bar svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  pointer-events: none;
}

.search-input {
  width: 100%;
  max-width: 340px;
  padding: 0.6rem 0.9rem 0.6rem 2.5rem;
  font-size: 0.875rem;
  border: 1px solid #e0deda;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.search-input:focus { border-color: #aaa; }
.search-input::placeholder { color: #ccc; }

.boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.box-card {
  background: #fff;
  border: 1px solid #e0deda;
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.box-card:hover {
  border-color: #ccc;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}

.box-card.hidden { display: none; }

.box-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.box-card-name { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; line-height: 1.3; }

.box-card-desc {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.box-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #f0efeb;
}

.box-card-stats { display: flex; gap: 1rem; }

.box-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #bbb;
}

.box-card-lock { display: flex; align-items: center; color: #ccc; }

.box-card-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: #f0efeb;
  color: #aaa;
  flex-shrink: 0;
}

.box-card-badge.active { background: #edf7f0; color: #3aac5d; }

.section-heading { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-heading-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #bbb; white-space: nowrap; }
.section-heading-line { flex: 1; height: 1px; background: #e8e7e3; }

.uploads-surface { background: #fff; border: 1px solid #e0deda; border-radius: 12px; overflow: hidden; }

.upload-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #f0efeb;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.upload-item:last-child { border-bottom: none; }
.upload-item:hover { background: #faf9f7; }

.upload-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: #f0efeb;
  display: flex; align-items: center; justify-content: center;
  color: #bbb;
  flex-shrink: 0;
}

.upload-filename { flex: 1; font-size: 0.875rem; font-weight: 500; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-box-name { font-size: 0.75rem; color: #bbb; white-space: nowrap; flex-shrink: 0; }
.upload-date { font-size: 0.75rem; color: #ccc; white-space: nowrap; flex-shrink: 0; min-width: 80px; text-align: right; }
.upload-mimetype { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.15rem 0.4rem; border-radius: 4px; background: #f0efeb; color: #bbb; flex-shrink: 0; }

/* ════════════════════════════════
   FORMULAIRES
════════════════════════════════ */
.form-surface {
  background: #fff;
  border: 1px solid #e0deda;
  border-radius: 12px;
  overflow: hidden;
  max-width: 560px;
}

.form-section { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-section + .form-section { border-top: 1px solid #f0efeb; }

.form-section-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #bbb; }

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }

.form-field .field-label {
  display: block;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
}

.field-hint { font-size: 0.75rem; color: #bbb; margin-top: -0.2rem; }

.field-input {
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid #e0deda;
  border-radius: 8px;
  background: #faf9f7;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  resize: vertical;
  width: 100%;
}

.field-input:focus { border-color: #aaa; background: #fff; }
.field-input::placeholder { color: #ccc; }

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0efeb;
}

.toggle-field:last-of-type { border-bottom: none; }
.toggle-field-body { display: flex; flex-direction: column; gap: 0.2rem; }
.toggle-field-title { font-size: 0.875rem; font-weight: 600; color: #333; }
.toggle-field-hint { font-size: 0.75rem; color: #bbb; line-height: 1.4; }
.toggle-input { display: none; }

.toggle-track {
  width: 36px; height: 20px;
  border-radius: 99px;
  background: #e0deda;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s;
}

.toggle-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-input:checked + .toggle-track { background: #1a1a1a; }
.toggle-input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #f0efeb;
  background: #faf9f7;
}

/* ════════════════════════════════
   FLASH
════════════════════════════════ */
.flash-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  animation: flash-in 0.2s ease;
}

.flash-notice { background: #f2faf5; border-color: #b8e6c8; color: #1e6b3c; }
.flash-notice svg { color: #3aac5d; flex-shrink: 0; }
.flash-alert { background: #fdf2f0; border-color: #f5c6c0; color: #c0392b; }
.flash-alert svg { color: #c0392b; flex-shrink: 0; }

.flash-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.1rem;
  color: inherit;
  opacity: 0.4;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.flash-close:hover { opacity: 0.8; }

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════
   PASSWORD GATE
════════════════════════════════ */
.password-gate {
  min-height: 100vh;
  background: #f5f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.password-gate-card {
  background: #fff;
  border: 1px solid #e0deda;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

.password-gate-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #f0efeb;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  margin-bottom: 1.25rem;
}

.password-gate-title { font-size: 1.05rem; font-weight: 700; color: #1a1a1a; margin-bottom: 0.4rem; line-height: 1.3; }
.password-gate-sub { font-size: 0.82rem; color: #aaa; margin-bottom: 1.75rem; }

.password-gate-alert {
  font-size: 0.82rem;
  color: #c0392b;
  background: #fdf2f0;
  border: 1px solid #f5c6c0;
  border-radius: 7px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.25rem;
}

.password-gate-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  border: 1px solid #e0deda;
  border-radius: 8px;
  background: #faf9f7;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 0.85rem;
  font-family: inherit;
}

.password-gate-input:focus { border-color: #aaa; background: #fff; }
.password-gate-input::placeholder { color: #ccc; }

.password-gate-submit {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.password-gate-submit:hover { background: #333; }

.app-navbar .navbar-brand {
  align-items: center;
}

.auth-links {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.auth-links a {
  font-size: 0.8rem;
  color: #aaa;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-links a:hover { color: #555; }

/* ════════════════════════════════
   UPLOAD PROGRESS
════════════════════════════════ */
#uploads .card {
  background: #faf9f7;
  border: 1px solid #e0deda;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

#uploads .flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

#uploads .flex-between span {
  font-size: 0.82rem;
  font-weight: 500;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.progress-container { display: flex; flex-direction: column; gap: 0.35rem; }

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label span {
  font-size: 0.72rem;
  color: #bbb;
}

.progress {
  height: 4px;
  background: #e8e7e3;
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #1a1a1a;
  border-radius: 99px;
  transition: width 0.15s ease;
  width: 0%;
}

.progress-success .progress-bar { background: #3aac5d; }
.progress-success .progress-label span { color: #3aac5d; }

.progress-error .progress-bar { background: #c0392b; }
.progress-error .progress-label span { color: #c0392b; }

.btn-outline {
  font-size: 0.72rem;
  font-weight: 600;
  color: #bbb;
  background: none;
  border: 1px solid #e0deda;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
  font-family: inherit;
}

.btn-outline:hover { color: #c0392b; border-color: #f5c6c0; }


.auth-omniauth-btn {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #e0deda;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  text-align: center;
}

.auth-omniauth-btn:hover { border-color: #aaa; background: #faf9f7; }

.auth-errors {
  background: #fdf2f0;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.auth-errors-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0392b;
  margin-bottom: 0.4rem;
}

.auth-errors-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.auth-errors-list li {
  font-size: 0.8rem;
  color: #c0392b;
  padding-left: 0.75rem;
  position: relative;
}

.auth-errors-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.navbar-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.user-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: #fff;
  border: 1px solid #e0deda;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 180px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}

.user-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.navbar-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #333 !important;
  text-decoration: none !important;
  transition: background 0.12s !important;
  width: 100% !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-align: left !important;
  box-shadow: none !important;
}

.navbar-dropdown-item:hover {
  background: #faf9f7 !important;
  color: #333 !important;
}

.navbar-dropdown-item + .navbar-dropdown-item {
  border-top: 1px solid #f0efeb !important;
}

.navbar-dropdown-signout {
  color: #c0392b !important;
}

.navbar-dropdown-signout:hover {
  background: #fdf2f0 !important;
  color: #c0392b !important;
}

/* ════════════════════════════════
   DANGER ZONE
════════════════════════════════ */
.danger-zone {
  max-width: 560px;
  border: 1px solid #f5c6c0;
  border-radius: 12px;
  overflow: hidden;
}

.danger-zone-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f5c6c0;
  background: #fdf2f0;
}

.danger-zone-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 0.3rem;
}

.danger-zone-desc {
  font-size: 0.8rem;
  color: #e07060;
  line-height: 1.5;
}

.btn-danger {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #c0392b !important;
  background: #fff !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  font-family: inherit !important;
  width: 100% !important;
  text-align: left !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.btn-danger:hover {
  background: #fdf2f0 !important;
  color: #c0392b !important;
}

.file-item {
  position: relative;
}

.file-delete-btn {
  position: absolute !important;
  right: 0.6rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ccc !important;
  opacity: 0 !important;
  transition: opacity 0.15s, background 0.15s, color 0.15s !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.file-item:hover .file-delete-btn {
  opacity: 1 !important;
}

.file-delete-btn:hover {
  background: #fdf2f0 !important;
  color: #c0392b !important;
}

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.6rem 1.5rem;
  background: var(--tc-light);
  border-bottom: 1px solid var(--tc-border);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8b3a22;
  white-space: nowrap;
}

.trust-item svg {
  color: var(--tc);
  flex-shrink: 0;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 2rem;
  background: #fff;
  border: 1.5px dashed #e0deda;
  border-radius: 12px;
  gap: 0.75rem;
}

.empty-state-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--tc-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--tc);
  margin-bottom: 0.25rem;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.empty-state-desc {
  font-size: 0.82rem;
  color: #aaa;
  line-height: 1.65;
  max-width: 380px;
}

.expectation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #f0efeb;
  background: #faf9f7;
  margin-bottom: 0.4rem;
  transition: border-color 0.15s;
}

.expectation-fulfilled {
  background: #f2faf5;
  border-color: #b8e6c8;
}

.expectation-pending:hover {
  border-color: var(--tc-border);
}

.expectation-uploading {
  opacity: 0.5;
  pointer-events: none;
}

.expectation-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e0deda;
  flex-shrink: 0;
}

.expectation-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #3aac5d;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.expectation-label {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}

.expectation-upload-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tc);
  background: var(--tc-light);
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  flex-shrink: 0;
}

.expectation-upload-btn:hover {
  background: var(--tc-border);
}

.expectation-admin-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.expectation-dot-done {
  background: #3aac5d;
}

.expectation-delete-btn {
  margin-left: auto;
  background: none !important;
  border: none !important;
  padding: 0.2rem !important;
  cursor: pointer !important;
  color: #ccc !important;
  display: flex !important;
  align-items: center !important;
  transition: color 0.15s !important;
  box-shadow: none !important;
}

.expectation-delete-btn:hover {
  color: #c0392b !important;
}

.btn-add-expectation {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tc);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0;
  font-family: inherit;
  margin-top: 0.4rem;
  transition: color 0.15s;
}

.btn-add-expectation:hover {
  color: #b85c3e;
}

/* ════════════════════════════════
   PRICING
════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
  max-width: 900px;
}

.pricing-card {
  background: #fff;
  border: 1px solid #e0deda;
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-card-current {
  border-color: var(--tc-border);
  background: var(--tc-light);
}

.pricing-card-featured {
  border-color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
}

.pricing-plan-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 0.82rem;
  color: #bbb;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.pricing-feature-included { color: #333; }
.pricing-feature-included svg { color: #3aac5d; flex-shrink: 0; }

.pricing-feature-excluded { color: #ccc; }
.pricing-feature-excluded svg { color: #ddd; flex-shrink: 0; }

.pricing-action { margin-top: 0.5rem; }

.pricing-current-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tc);
}

/* ── Stat storage ── */
.stat-storage { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-storage-header { display: flex; align-items: baseline; gap: 0.35rem; }
.stat-storage-bar {
  height: 4px;
  background: #f0efeb;
  border-radius: 99px;
  overflow: hidden;
  width: 100%;
}
.stat-storage-fill {
  height: 100%;
  background: var(--pk);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.stat-storage-fill-warn  { background: #c49a3c; }
.stat-storage-fill-danger { background: #c0392b; }
.stat-storage-alert {
  font-size: 0.68rem;
  color: #c0392b;
  font-weight: 600;
}

/* ── Pod explainer ── */
.pod-explainer {
  background: var(--pk-light);
  border-bottom: 1px solid var(--pk-border);
  padding: 1.25rem 2rem;
}
.pod-explainer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.pod-explainer-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  padding: 0 1.25rem;
}
.pod-explainer-step:first-child { padding-left: 0; }
.pod-explainer-step:last-child  { padding-right: 0; }
.pod-explainer-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--pk-border);
  color: var(--pk-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pod-explainer-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pod-explainer-text strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}
.pod-explainer-text span {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.5;
}
.pod-explainer-divider {
  width: 1px;
  height: 48px;
  background: var(--pk-border);
  flex-shrink: 0;
}

.expectation-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.expectation-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.expectation-progress-bar {
  flex: 1;
  height: 4px;
  background: #f0efeb;
  border-radius: 99px;
  overflow: hidden;
}

.expectation-progress-fill {
  height: 100%;
  background: var(--pk);
  border-radius: 99px;
  transition: width 0.1s ease;
}

.expectation-progress-pct {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pk);
  min-width: 2rem;
  text-align: right;
}

.pod-share {
  margin-top: 0.75rem;
}

.pod-share-url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pk-light);
  border: 1px solid var(--pk-border);
  border-radius: 7px;
  padding: 0.45rem 0.6rem;
  gap: 0.5rem;
}

.pod-share-slug {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--pk);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pod-share-copy {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--pk);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.1s, color 0.1s;
  font-family: inherit;
}

.pod-share-copy:hover {
  background: var(--pk-border);
}

.pod-share-copy.copied {
  color: #3aac5d;
}

/* ── Subscription page ── */
.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  max-width: 860px;
}

.sub-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.sub-plan-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  display: block;
  margin-bottom: 0.3rem;
}

.sub-plan-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.02em;
}

.sub-plan-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
}

.badge-free {
  background: #f5f4f0;
  color: #aaa;
}

.badge-paid {
  background: #f2faf5;
  color: #3aac5d;
  border: 1px solid #b8e6c8;
}

.sub-renewal {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 1.25rem;
}

.sub-limits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid #f0efeb;
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}

.sub-limit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.sub-limit-label { color: #888; }
.sub-limit-value { font-weight: 600; color: #1a1a1a; }

.sub-actions {
  border-top: 1px solid #f0efeb;
  padding-top: 1.25rem;
}

/* Storage card */
.sub-storage-amounts {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.sub-storage-used {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a1a;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.02em;
}

.sub-storage-max {
  font-size: 0.85rem;
  color: #bbb;
}

.sub-storage-bar {
  height: 6px;
  background: #f0efeb;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.sub-storage-fill {
  height: 100%;
  background: var(--pk);
  border-radius: 99px;
  transition: width 0.4s ease;
  min-width: 3px;
}

.fill-warn    { background: var(--pk-amber); }
.fill-danger  { background: #c0392b; }

.sub-storage-detail {
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 1.25rem;
}

.sub-storage-breakdown {
  border-top: 1px solid #f0efeb;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sub-storage-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.sub-storage-box-name {
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.sub-storage-box-size {
  font-weight: 600;
  color: #1a1a1a;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sub-grid { grid-template-columns: 1fr; }
}