:root{
  --bg:#111827;
  --fg:#ffffff;
  --muted:#9ca3af;
  --border:#1f2937;
  --primary:#BF9BFF; /* matches varilka primary-500 */
  --primary-button:#B482FC; /* lighter color for buttons only — updated per request */
  --primary-600:#A388FF; /* varilka primary-600 */
  --primary-700:#876FFF; /* hover */
}

.context-menu {
  position: fixed;
  z-index: 10000;
  min-width: 180px;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 6px 0;
  display: none;
}

.context-menu.visible {
  display: block;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--fg);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.context-menu-item:hover,
.context-menu-item:focus {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.context-menu-item[disabled],
.context-menu-item[disabled]:hover {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
}

.drop-target-active,
.file-thumbnail.folder.drop-target-active {
  outline: 2px dashed var(--primary);
  outline-offset: -4px;
  background: rgba(191, 155, 255, 0.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background-color:var(--bg);
  background-image:
    radial-gradient(135% 110% at 18% 8%, rgba(191,155,255,0.16) 0%, rgba(17,24,39,0) 58%),
    radial-gradient(120% 120% at 80% 0%, rgba(102,126,234,0.18) 0%, rgba(17,24,39,0) 62%),
    linear-gradient(180deg, #0b0f1d 0%, #04060e 100%);
  background-repeat:no-repeat;
  background-attachment:fixed;
  color:var(--fg);
  font-family:Inter,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{display:block;max-width:100%}
.container{max-width:1080px;margin:0 auto;padding:0 20px}
@media (max-width: 600px) {
  .container{padding:0 12px}
}
.header{padding:14px 0;border-bottom:1px solid var(--border);position:sticky;top:0;background:#000;z-index:10}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;position:relative}
.brand a {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand img{height:32px;width:auto}
.beta-badge{position:absolute;left:-8px;top:-8px;width:34px;height:auto;z-index:5;pointer-events:none}
.nav > a{color:var(--muted);text-decoration:none;margin-left:16px}
.nav > a:hover{color:#fff}
.files-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.filters{display:flex;gap:8px;align-items:center}
.filter-select{
  background:#1f2937;
  border:none;
  color:var(--fg);
  padding:8px 24px 8px 12px;
  border-radius:0;
  font-size:14px;
  min-width:120px;
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
}

/* New Drag and Drop Upload Area Styles */
.drag-drop-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px; /* Increased height for additional text */
  border: 2px dashed #555;
  border-radius: 8px;
  background: rgba(0, 123, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 20px;
  margin: 0;
  width: 100%; /* Full width like the files area */
}

.drag-drop-upload-area:hover {
  border-color: #b382fa; /* Purple hover border */
  background: rgba(179, 130, 250, 0.15);
  transform: translateY(-1px);
}

.drag-drop-upload-area.drag-active {
  border-color: #b382fa; /* Purple active border */
  background: rgba(179, 130, 250, 0.2);
  transform: scale(1.02);
}

.drag-drop-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.drag-drop-upload-icon {
  font-size: 24px;
  opacity: 0.9;
}

.drag-drop-upload-area span {
  color: #e0e0e0;
  font-weight: 500;
  font-size: 14px;
}

.drag-drop-upload-hint {
  color: #b0b0b0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.drag-drop-upload-info {
  color: #b482fb !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  text-align: center;
  margin-top: 4px;
}

.drag-drop-upload-info span {
  color: #b482fb !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* Keep original drag-drop-zone for files list area */
.drag-drop-zone {
  display: none;
  border: 2px dashed #555;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  margin: 20px 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.drag-drop-zone.drag-active {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.1);
  transform: scale(1.02);
}

.drag-drop-zone:hover {
  border-color: #666;
  background: rgba(255, 255, 255, 0.05);
}

.drag-drop-content {
  pointer-events: none;
}

.drag-drop-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.drag-drop-zone h3 {
  color: #e0e0e0;
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 500;
}

.drag-drop-zone p {
  color: #b0b0b0;
  margin: 0 0 16px 0;
  font-size: 14px;
}

.drag-drop-zone.drag-active h3 {
  color: var(--primary);
}

.drag-drop-zone.drag-active p {
  color: var(--primary);
}

/* Breadcrumb navigation styles */
.breadcrumb-nav {
  margin-bottom: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-btn {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 12px;
  transition: background-color 0.2s;
}

.breadcrumb-btn:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
}

.current-path {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* Folder item styles */
.folder-item {
  cursor: pointer;
  transition: background-color 0.2s;
}

.folder-item:hover {
  background-color: rgba(191, 155, 255, 0.1);
}

/* Homepage summary text color */
.summary-callout {
  color: #bf9bff;
}

/* Smaller text for feature badges */
.badge {
  font-size: 14px;
}

.filter-select {
  background-position: right 8px center;
  background-size: 16px;
}
.filter-select:focus{
  outline:none;
  border:none;
}
.nav-actions{display:flex;align-items:center;gap:16px}
.nav-actions .btn.secondary {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid #374151;
  color: #f3f4f6;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-actions .btn.secondary:hover {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-color: #4b5563;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-btn {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid #374151;
  color: #f3f4f6;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-btn:hover {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-color: #4b5563;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.user-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1f2937;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-width: 180px;
  z-index: 1000;
  margin-top: 4px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}

.user-option {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-option span {
  display: block;
  padding: 12px 16px;
  color: #f3f4f6;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.user-option:hover span {
  background: #374151;
}

.user-option:first-child span {
  border-radius: 0;
}

.user-option:last-child span {
  border-radius: 0;
}
.lang-menu{position:relative;display:inline-block}
.lang-btn{display:flex;align-items:center;gap:8px;background:#0b0b0b;color:#fff;border:1px solid #2d2d2d;padding:8px 10px;border-radius:10px;font-weight:600;cursor:pointer}
.lang-btn:focus{outline:none;border-color:#3a3a3a}
.lang-btn img{width:20px;height:14px;object-fit:cover;border-radius:2px}
.lang-list{position:absolute;right:0;margin-top:8px;background:#1f2937;border:none;border-radius:0;list-style:none;padding:6px;min-width:160px;box-shadow:none;z-index:1000}
.lang-option{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:0;cursor:pointer;color:#fff}
.lang-option:hover{background:#111317}
.lang-option[aria-selected="true"]{background:#111317}
.lang-option img{width:20px;height:14px;object-fit:cover;border-radius:2px}
.lang-select{
  display:none;
  border-radius:10px;
  font-weight:600;
}
.lang-select:focus{outline:none;border-color:#3a3a3a}
.lang-select option{background:#0b0b0b;color:#fff}
.hero{padding:28px 0 20px}
.site-title{margin:0 0 8px;font-size:28px;line-height:1.2;font-weight:800;color:#fff}
.hero h1{font-size:40px;line-height:1.1;margin:57px 0 12px}
.hero p.lead{color:var(--hero-lead-color, #fff);font-size:18px;max-width:760px}
.hero-bullets{margin:16px 0 0;padding-left:96px;color:#bf9bff;font-size:20px;line-height:1.65;font-weight:600;opacity:0;transform:translateY(12px);transition:opacity .5s ease-out,transform .5s ease-out}
.hero-bullets li{margin-bottom:8px;opacity:0;transform:translateY(8px)}
.hero-bullets li::marker{color:#bf9bff}
.hero-bullets.in{opacity:1;transform:translateY(0)}
.hero-bullets.in li{animation:heroBulletFade .4s ease forwards}
.hero-bullets.in li:nth-child(1){animation-delay:.1s}
.hero-bullets.in li:nth-child(2){animation-delay:.22s}
.hero-bullets.in li:nth-child(3){animation-delay:.34s}
.hero-bullets.in li:nth-child(4){animation-delay:.46s}

@keyframes heroBulletFade{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}
/* Value proposition strip */
.value-kicker{
  position:relative;
  margin:0 0 24px;
  font-weight:900;
  font-size:42px;
  line-height:1.05;
  letter-spacing:1px;
  text-transform:uppercase;
  text-align:center;
  display:block;
  color:#f7f3ff;
  text-shadow:0 18px 36px rgba(112,72,209,0.45);
}
#value-kicker-prefix{
  background:linear-gradient(115deg,#ffffff 0%,#e1ceff 38%,#b995ff 65%,#8f72ff 100%);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  text-shadow:inherit;
  display:inline-block;
}
.value-kicker .rotating-text{
  display:inline-grid;
  grid-auto-flow:row;
  position:relative;
  overflow:hidden;
  min-height:1em;
  margin-left:6px;
  align-items:center;
  justify-items:start;
  vertical-align:baseline;
  text-align:left;
  background:none !important;
  background-color:transparent !important;
  background-image:none !important;
  -webkit-background-clip:initial;
  background-clip:initial;
}
.value-kicker .rotating-word-measure{
  visibility:hidden;
  white-space:nowrap;
  pointer-events:none;
  grid-area:1 / 1 / 2 / 2;
  font:inherit;
  color:transparent;
}
.value-kicker .rotating-word{
  grid-area:1 / 1 / 2 / 2;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  opacity:0;
  transform:translateY(110%);
  transition:transform 0.75s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.75s ease;
  white-space:nowrap;
  background:none !important;
  background-color:transparent !important;
  background-image:none !important;
  -webkit-background-clip:initial;
  background-clip:initial;
  color:#9575fc;
  -webkit-text-fill-color:#9575fc;
  text-shadow:none;
}
.value-kicker .rotating-word.is-visible{
  opacity:1;
  transform:translateY(0);
}
.value-kicker .rotating-word.is-leaving{
  opacity:0;
  transform:translateY(-120%);
}
@media (prefers-reduced-motion: reduce){
  .value-kicker .rotating-word{
    transition:none;
    transform:none !important;
    opacity:1 !important;
  }
}
.value-kicker::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-18px;
  transform:translateX(-50%);
  width:220px;
  height:14px;
  background:radial-gradient(circle at center, rgba(191,155,255,0.55) 0%, rgba(191,155,255,0) 70%);
  filter:blur(2px);
  opacity:0.85;
}
.value-strip{
  position:relative;
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  justify-content:space-evenly;
  gap:16px;
  padding:26px 32px;
  margin:6px 0 20px;
  border-radius:22px;
  border:1px solid rgba(147,135,255,0.22);
  background:linear-gradient(135deg, rgba(22,21,34,0.96) 0%, rgba(13,12,26,0.96) 60%, rgba(8,8,18,0.92) 100%);
  box-shadow:0 20px 36px rgba(7,6,20,0.58);
  overflow:hidden;
  isolation:isolate;
}
.value-strip::before{content:none}
.value-strip::after{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:8px;
  height:48px;
  background:radial-gradient(ellipse at center, rgba(132,98,255,0.45) 0%, rgba(37,28,74,0.22) 60%, rgba(9,7,20,0) 100%);
  filter:blur(22px);
  opacity:0.7;
  pointer-events:none;
}
.value-item{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:22px 20px 24px;
  min-width:168px;
  max-width:205px;
  background:linear-gradient(150deg, rgba(37,34,58,0.72) 0%, rgba(18,16,34,0.82) 55%, rgba(12,12,24,0.68) 100%);
  border-radius:18px;
  border:1px solid rgba(118,104,255,0.35);
  box-shadow:0 18px 34px rgba(8,7,20,0.45);
  overflow:hidden;
  isolation:isolate;
  text-align:center;
  transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.value-item--price{flex:0 1 158px}
.value-item--storage{flex:0 1 146px}
.value-item--privacy{flex:0 1 170px}
.value-item--commitment{flex:0 1 204px;max-width:210px}
.value-item--europe{flex:0 1 210px;max-width:214px}
.value-item::before{
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  top:14px;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg, rgba(191,155,255,0.65) 0%, rgba(135,111,255,0.45) 52%, rgba(94,157,255,0.4) 100%);
  opacity:0.85;
}
.value-item::after{
  content:"";
  position:absolute;
  top:-60%;
  left:-120%;
  width:220%;
  height:220%;
  background:linear-gradient(120deg, rgba(255,255,255,0) 12%, rgba(255,255,255,0.42) 48%, rgba(255,255,255,0) 82%);
  transform:rotate(24deg) translate3d(-70%,0,0);
  opacity:0;
  mix-blend-mode:screen;
  pointer-events:none;
}
.value-item.highlighting,
.value-item:hover{
  border-color:rgba(118,104,255,0.35);
  box-shadow:0 18px 34px rgba(8,7,20,0.45);
  transition:box-shadow 0.3s ease;
}
.value-item.highlighting::after,
.value-item:hover::after{
  animation:cardShine 0.7s ease-in-out forwards;
}
.price-now strong,
.value-item strong{
  font-size:19px;
  line-height:1;
  color:#fdfbff;
  text-shadow:0 10px 24px rgba(118,104,255,0.55);
}
.value-item span{
  font-size:11px;
  color:rgba(212,216,245,0.86);
  text-transform:uppercase;
  letter-spacing:0.8px;
  line-height:1.45;
}
.price-now strong{display:block}
.highlighting-text{
  color:#ff8282 !important;
  text-shadow:0 0 12px rgba(255,120,140,0.36),0 10px 22px rgba(16,12,38,0.36);
  transition:color 0.25s ease, text-shadow 0.35s ease, opacity 0.3s ease;
  opacity:1;
}
#price-amount.highlighting-text,
#storage-amount.highlighting-text,
#privacy-title.highlighting-text,
#commitment-title.highlighting-text,
#europe-title.highlighting-text{opacity:1}
#price-amount,
#storage-amount,
#privacy-title,
#commitment-title,
#europe-title{opacity:0.85}
@keyframes cardShine{
  0%{opacity:0;transform:rotate(24deg) translate3d(-75%,0,0)}
  10%{opacity:.25}
  35%{opacity:.6;transform:rotate(24deg) translate3d(40%,0,0)}
  55%{opacity:.2}
  75%{opacity:0;transform:rotate(24deg) translate3d(75%,0,0)}
  100%{opacity:0;transform:rotate(24deg) translate3d(75%,0,0)}
}
#price-amount,
#storage-amount,
#privacy-title,
#commitment-title,
#europe-title{
  transition:color 0.25s ease, text-shadow 0.25s ease;
}
.price-note{
  display:inline-block;
  font-size:11px;
  text-transform:none;
  letter-spacing:0.4px;
  color:rgba(191,155,255,0.85);
}
.divider{
  width:1px;
  height:auto;
  background:linear-gradient(180deg, rgba(191,155,255,0) 0%, rgba(191,155,255,0.35) 50%, rgba(191,155,255,0) 100%);
  opacity:0.6;
}
@media (max-width:960px){
  .value-strip{flex-wrap:wrap;justify-content:center;padding:20px;gap:14px}
  .divider{display:none}
  .value-item{min-width:46%;align-items:center;text-align:center}
  .value-item--storage,.value-item--price,.value-item--privacy,.value-item--commitment,.value-item--europe{flex-basis:auto}
  .value-item::before{left:22px;right:22px}
  .value-item span{letter-spacing:0.8px}
}
@media (max-width:640px){
  .value-kicker{font-size:32px;letter-spacing:0.8px}
  .value-strip{padding:18px;border-radius:18px}
  .value-item{min-width:100%;max-width:none}
}
.cta{margin-top:28px;display:flex;gap:12px;flex-wrap:wrap;justify-content:center;position:relative}
.btn{display:inline-block;padding:12px 32px;border-radius:12px;text-decoration:none;font-weight:600;border:1px solid transparent;font-size:20px}
.btn.primary{background:var(--primary-button);color:#000}
.btn.primary:hover{background:var(--primary-700)}
/* Homepage CTA: override primary button color only for the hero Sign up button */
.cta .btn.primary{
  background: linear-gradient(135deg, #c8a9ff 0%, #a977ff 100%);
  padding: 14px 46px;
  font-size: 20px;
  border-radius: 12px;
  color: #0b0b12;
  position: relative;
  z-index: 1;
  isolation: isolate;
  box-shadow: 0 12px 26px rgba(158, 105, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cta .btn.primary::before{
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(222, 206, 255, 0.55) 0%, rgba(163, 123, 250, 0.4) 42%, rgba(108, 70, 210, 0.22) 60%, rgba(28, 12, 72, 0) 78%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}
.cta .btn.primary:hover{
  background: linear-gradient(135deg, #d1b7ff 0%, #b27dff 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(158, 105, 255, 0.28);
}
.cta .btn.primary:active{
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(158, 105, 255, 0.2);
}

@media (max-width: 640px){
  .cta .btn.primary{
    width: 100%;
    padding: 12px 26px;
    font-size: 18px;
  }
  .cta .btn.primary::before{
    inset: -8px;
    filter: blur(5px);
  }
}
.btn.ghost{border-color:#2d2d2d;color:#fff}
.btn.ghost:hover{border-color:#3a3a3a;background:#0a0a0a}
/* CTA load animation */
@keyframes ctaPopIn{
  0%{transform:translateY(10px) scale(.96);opacity:0}
  60%{transform:translateY(0) scale(1.02);opacity:1}
  100%{transform:translateY(0) scale(1);opacity:1}
}
/* CTA pulse animation for looping */
@keyframes ctaPulse{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,223,0,0)}
  50%{transform:scale(1.05);box-shadow:0 8px 26px rgba(0,0,0,.28),0 0 0 10px rgba(255,223,0,.18)}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,223,0,0)}
}
.btn.primary.cta-animate{
  animation:ctaPopIn .6s cubic-bezier(.2,.8,.2,1) both;
  will-change:transform,box-shadow,opacity;
}
.btn.primary.cta-pulse{
  animation:ctaPulse 1.2s ease-out;
  will-change:transform,box-shadow;
}
/* Badge animation */
@keyframes badgePop{
  0%{transform:translateY(4px) scale(.96);opacity:0}
  60%{transform:translateY(0) scale(1.04);opacity:1}
  100%{transform:translateY(0) scale(1);opacity:1}
}
@keyframes badgeGlow{
  0%{box-shadow:0 0 0 0 rgba(163,136,255,0)}
  50%{box-shadow:0 6px 18px rgba(0,0,0,.25),0 0 0 8px rgba(163,136,255,.18)}
  100%{box-shadow:0 0 0 0 rgba(163,136,255,0)}
}
.badge.badge-animate{animation:badgePop .5s cubic-bezier(.2,.8,.2,1) both}
.badge.badge-animate .badge-icon{animation:badgePop .5s cubic-bezier(.2,.8,.2,1) both}
/* Hero load-in animations */
@keyframes heroPopIn{
  0%{transform:translateY(8px) scale(.98);opacity:0}
  70%{transform:translateY(0) scale(1.02);opacity:1}
  100%{transform:translateY(0) scale(1);opacity:1}
}
@keyframes heroFadeUp{
  0%{transform:translateY(8px);opacity:0}
  100%{transform:translateY(0);opacity:1}
}
#value-kicker.kick-animate{animation:heroPopIn .7s cubic-bezier(.2,.8,.2,1) both}
#i-hero-title.title-animate{animation:heroFadeUp .7s ease-out .1s both}
#i-hero-lead.lead-animate{animation:heroFadeUp .7s ease-out .18s both}
#value-strip.strip-animate{animation:heroPopIn .7s cubic-bezier(.2,.8,.2,1) .06s both}
#value-strip.strip-animate .value-item{animation:heroFadeUp .5s ease-out both}
#value-strip.strip-animate .value-item:nth-of-type(1){animation-delay:.06s}
#value-strip.strip-animate .value-item:nth-of-type(2){animation-delay:.12s}
#value-strip.strip-animate .value-item:nth-of-type(3){animation-delay:.18s}
#value-strip.strip-animate .value-item:nth-of-type(4){animation-delay:.24s}
#value-strip.strip-animate .value-item:nth-of-type(5){animation-delay:.30s}
/* Summary emphasis */
.summary-callout{
  background:linear-gradient(180deg,#0c0c10 0%,#0a0a0d 100%);
  border:1px solid #1a1f2a;
  border-left:4px solid var(--primary);
  border-radius:12px;
  padding:14px 16px;
  font-size:24px;
  line-height:1.2;
  font-weight:400;
  text-align:center;
  color:#a06ff1 !important;
}

/* Override alignment for the summary lead paragraph */
#p-summary-lead {
  text-align: left;
  line-height: 1.1;
  color: #bf9bff !important;
}

/* Auth pages styles */
.auth-section {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.auth-card {
  background: #0a0a0d;
  border: 1px solid #1a1f2a;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.auth-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Utilities for subtle text and small size (used by reset-password hint) */
.muted { color: var(--muted); }
.small { font-size: 12px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #4b5563;
  border-radius: 6px;
  background: #1f2937;
  color: #fff;
  font-size: 13px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: #6b7280;
}

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 8px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #1a1f2a;
}

.auth-footer p { margin: 6px 0; }

.auth-footer p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  color: var(--primary-700);
}

/* Forgot password panel buttons: align sizes consistently */
.form-actions-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px; /* ensure small size applied even if class order varies */
  font-size: 14px;
  border-radius: 8px; /* compact buttons in panel */
}

/* Ensure ghost button has visible border and transparent background */
.btn.ghost {
  background: transparent;
  border: 1px solid #2d2d2d;
  color: #fff;
}

/* Console styles */
.console-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 120px);
}

.console-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.console-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.storage-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.storage-bar {
  width: 200px;
  height: 8px;
  background: #111827;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #374151;
}

.storage-used {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
  transition: width 0.3s ease;
  border-radius: 5px;
}

.storage-text {
  font-size: 14px;
  color: #f3f4f6;
  font-weight: 500;
}

.console-actions {
  margin-bottom: 20px;
  text-align: center;
}

.upload-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-section .btn.primary {
  padding: 8px 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 400px;
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.upload-section .btn.primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  transform: translateY(-1px);
}

.upload-info {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 4px;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6b7280;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.webdav-status {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.webdav-warning {
  color: #ff0000 !important;
  font-size: 10px !important;
  font-weight: 400 !important;
}

/* View toggle styles */
.files-title-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  margin-left: 20px;
}

.view-btn {
  background: #1f2937;
  border: none;
  padding: 6px 8px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.view-btn:hover {
  background: #374151;
  color: var(--fg);
}

.view-btn.active {
  background: #374151;
  color: var(--fg);
}

.view-btn svg {
  width: 16px;
  height: 16px;
}

/* Carousel view styles */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  min-height: 500px;
}

.carousel-content {
  flex: 1;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  position: relative;
}

.carousel-image-container {
  min-height: 600px;
  min-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.carousel-image {
  max-width: 900px;
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

.carousel-loading {
  font-size: 18px;
  color: var(--muted);
  padding: 60px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}

.carousel-icon {
  font-size: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(31, 41, 55, 0.5);
  border-radius: 12px;
}

.carousel-info {
  text-align: center;
  color: var(--fg);
}

.carousel-info-compact {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(31, 41, 55, 0.6);
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 3;
}

.carousel-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--fg);
  word-break: break-word;
}

.carousel-info-compact .carousel-title {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 4px 0;
}

.carousel-size,
.carousel-type {
  font-size: 16px;
  color: var(--muted);
  margin: 5px 0;
}

.carousel-info-compact .carousel-size,
.carousel-info-compact .carousel-type {
  font-size: 11px;
  margin: 2px 0;
}

.carousel-counter {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 0 0;
}

.carousel-info-compact .carousel-counter {
  font-size: 11px;
  margin: 2px 0;
}

.carousel-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.carousel-actions .btn {
  padding: 10px 20px;
  font-size: 16px;
}

.carousel-download-compact {
  padding: 6px 14px !important;
  font-size: 12px !important;
  margin-top: 6px !important;
}

.carousel-nav {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.carousel-nav:hover:not(:disabled) {
  background: rgba(55, 65, 81, 0.9);
  transform: scale(1.1);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav svg {
  width: 24px;
  height: 24px;
}

/* Carousel Thumbnail Ribbon */
.carousel-thumbnail-ribbon {
  width: 100%;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
}

.carousel-thumbnail-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px;
  scroll-behavior: smooth;
}

.carousel-thumbnail-container::-webkit-scrollbar {
  height: 6px;
}

.carousel-thumbnail-container::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 3px;
}

.carousel-thumbnail-container::-webkit-scrollbar-thumb {
  background: rgba(191, 155, 255, 0.5);
  border-radius: 3px;
}

.carousel-thumbnail-container::-webkit-scrollbar-thumb:hover {
  background: rgba(191, 155, 255, 0.7);
}

.carousel-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(31, 41, 55, 0.8);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-thumb:hover {
  border-color: rgba(191, 155, 255, 0.5);
  transform: scale(1.05);
}

.carousel-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(191, 155, 255, 0.4);
}

.carousel-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-thumb-icon {
  font-size: 32px;
}

/* Image Modal Styles */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

.image-modal-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
  gap: 20px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close:hover {
  background: rgba(55, 65, 81, 0.9);
  transform: scale(1.1);
}

.image-modal-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
}

.image-modal-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.image-modal-loading {
  position: absolute;
  font-size: 18px;
  color: var(--muted);
  display: none;
}

.image-modal-nav {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.image-modal-nav:hover:not(:disabled) {
  background: rgba(55, 65, 81, 0.9);
  transform: scale(1.1);
}

.image-modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.image-modal-nav svg {
  width: 28px;
  height: 28px;
}

.image-modal-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--fg);
  background: rgba(31, 41, 55, 0.6);
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 3;
}

.image-modal-info h3 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 500;
}

.image-modal-info p {
  margin: 2px 0;
  font-size: 11px;
  color: var(--muted);
}

.modal-download-compact {
  padding: 6px 14px !important;
  font-size: 12px !important;
  margin-top: 6px !important;
}

/* Slideshow Styles */
.slideshow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.slideshow-image {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.slideshow-status {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(31, 41, 55, 0.8);
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10001;
}

.slideshow-status.show {
  opacity: 1;
}

/* PDF Modal Styles */
.pdf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.pdf-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

.pdf-modal-content {
  position: relative;
  z-index: 2;
  width: 90vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  background: #1f2937;
  border-radius: 8px;
  overflow: hidden;
}

.pdf-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-modal-close:hover {
  background: rgba(55, 65, 81, 0.9);
  transform: scale(1.1);
}

.pdf-modal-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(31, 41, 55, 0.9);
  border-bottom: 1px solid var(--border);
}

.pdf-modal-info h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  flex: 1;
}

.pdf-viewer {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}

/* Thumbnail view styles */
.files-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  padding: 6px 0;
}

.file-thumbnail.folder {
  background: rgba(31, 41, 55, 0.35);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 12px;
  padding: 12px 12px 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.thumbnail-name {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 4px;
  word-break: break-word;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

.thumbnail-size {
  font-size: 11px;
  color: var(--muted);
}

.thumbnail-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.thumbnail-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
}

/* Modern Modal System - Clean, Efficient, Compact */
.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.profile-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.profile-modal-content {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  max-width: 620px;
  width: 100%;
  min-height: fit-content;
  max-height: none;
  overflow: visible;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  animation: modalSlideIn 0.2s ease-out;
  display: flex;
  flex-direction: column;
  margin: auto 0;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.profile-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-header h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.btn-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.1);
}

.profile-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

.profile-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
}

.profile-card:hover {
  border-color: color-mix(in srgb, var(--primary) 70%, transparent);
  border-style: dashed;
  box-shadow: 0 4px 12px rgba(191, 155, 255, 0.25);
}

.profile-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Invoices Modal Specific Styles */
.invoices-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  max-height: 70vh;
}

.loading-message,
.no-invoices-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invoices-list {
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
}

.invoice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.invoice-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
}

.invoice-item:hover {
  border-color: color-mix(in srgb, var(--primary) 70%, transparent);
  border-style: dashed;
  box-shadow: 0 4px 12px rgba(191, 155, 255, 0.25);
  transform: translateY(-1px);
}

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

.invoice-number {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  font-size: 14px;
}

.invoice-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.invoice-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0 16px;
  gap: 4px;
}

.invoice-amount {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.invoice-date {
  color: var(--muted);
  font-size: 12px;
}

.invoice-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-paid {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-open {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-draft {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.invoice-actions {
  flex-shrink: 0;
}

.btn-view-invoice {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-invoice:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

/* Modern Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.form-group input,
.form-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 70%, transparent);
  border-style: dashed;
  box-shadow: 0 0 0 3px rgba(191, 155, 255, 0.25);
  background: #1a202c;
}

/* Payment and Special Card Styles */
.current-card {
  padding: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
}

.current-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#payment-form {
  margin: 16px 0;
  padding: 16px;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 300px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

#payment-element {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.payment-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.payment-actions .btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Danger Zone Styles */
.danger-zone {
  border-color: #dc2626 !important;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(153, 27, 27, 0.05) 100%);
}

.danger-zone::before {
  background: linear-gradient(90deg, #dc2626, #b91c1c) !important;
}

.danger-zone h3 {
  color: #fca5a5;
}

.btn.danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn.danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #374151;
  transition: 0.3s;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Setting Header Layout */
.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.setting-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Status Text Styles */
.webdav-status,
.mfa-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.webdav-warning {
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 12px;
}

/* Color Input Styles */
.color-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.color-input {
  width: 50px;
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-input:hover {
  border-color: color-mix(in srgb, var(--primary) 70%, transparent);
  border-style: dashed;
}

/* Logo Upload Styles */
.logo-upload-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.logo-preview {
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.logo-preview img {
  max-width: 80px;
  max-height: 20px;
  border-radius: 4px;
}

.form-help {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.form-error {
  margin-top: 4px;
  font-size: 11px;
  color: #fca5a5;
  line-height: 1.4;
}

.files-section {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #374151;
}

.files-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.files-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-input {
  width: 100%;
  max-width: 360px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #111827;
  color: #e5e7eb;
}

.search-input::placeholder {
  color: #9ca3af;
}

.files-actions {
  display: flex;
  gap: 12px;
}

/* Path navigation (Up button + breadcrumb) */
.path-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
}

.path-nav .btn.secondary {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid #374151;
  color: #f3f4f6;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.path-nav .btn.secondary:hover {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-color: #4b5563;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.path-nav .btn.secondary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn.tertiary.small {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #2d2d2d;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.btn.tertiary.small:hover {
  color: #ffffff;
  border-color: #3a3a3a;
  background: #0a0a0a;
}

.breadcrumb-current {
  color: #e5e7eb;
  font-weight: 600;
}

.folder-item {
  cursor: pointer;
}

/* Files table styles - compact original design */
.files-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: 14px;
}

.files-table th {
  background: #1f2937;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.files-table td {
  padding: 4px 12px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.3);
  vertical-align: middle;
  height: 32px;
}

.file-row {
  transition: background-color 0.2s;
}

.file-row:hover {
  background: rgba(55, 65, 81, 0.3);
}

.checkbox-col {
  width: 30px;
  text-align: center;
  padding: 4px;
}

.icon-col {
  width: 30px;
  text-align: center;
  font-size: 14px;
  padding: 4px;
}

.name-col {
  min-width: 200px;
  font-weight: 400;
  padding: 4px 8px;
}

.file-name-main {
  font-weight: 500;
}

.file-share-info {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.shared-label {
  font-weight: bold;
  color: #b282fa;
}

.size-col {
  width: 80px;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 6px;
}

.date-col {
  width: 80px;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 6px;
}

.time-col {
  width: 80px;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 6px;
}

.actions-col {
  width: 100px;
  text-align: right;
  padding: 4px 8px;
  white-space: nowrap;
}

.actions-col .btn {
  display: inline-block;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  margin: 0 1px;
  font-size: 12px;
  border-radius: 2px;
  transition: all 0.2s;
  vertical-align: middle;
  line-height: 1;
}

.actions-col .btn:hover {
  background: rgba(55, 65, 81, 0.5);
  color: var(--fg);
}

@media (max-width: 640px) {
  .files-table thead {
    display: none;
  }

  .files-table,
  .files-table tbody,
  .files-table tr,
  .files-table td {
    display: block;
    width: 100%;
  }

  .files-table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(55,65,81,0.4);
    border-radius: 12px;
    padding: 8px 10px;
    background: rgba(17, 24, 39, 0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .files-table td {
    border-bottom: none;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .files-table td::before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .name-col {
    font-size: 14px;
    padding: 0;
  }

  .name-col .file-name-main {
    font-size: 15px;
    font-weight: 600;
  }

  .actions-col {
    text-align: left;
    padding: 8px 0 0;
  }

  .actions-col::before {
    align-self: flex-start;
    margin-top: 4px;
  }

  .actions-col .btn {
    margin-right: 6px;
  }

  .files-list {
    margin: 0;
    width: 100%;
    gap: 8px;
  }

  /* Thumbnail view responsive for mobile */
  .files-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 8px 0 !important;
  }

  .file-thumbnail {
    padding: 6px !important;
  }

  .thumbnail-image,
  .thumbnail-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .thumbnail-name {
    font-size: 10px !important;
    line-height: 1.2 !important;
    max-height: 2.4em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  .thumbnail-size {
    font-size: 9px !important;
  }

  .thumbnail-download-btn {
    width: 28px !important;
    height: 28px !important;
    bottom: 4px !important;
    right: 4px !important;
  }

  .thumbnail-download-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Always show download button on mobile */
  .file-thumbnail .thumbnail-download-btn {
    opacity: 0.8 !important;
  }
}

.file-clickable {
  cursor: pointer;
}

.file-clickable:hover {
  color: var(--primary);
}

/* Thumbnail view styles */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.files-section {
  width: 100%;
}

.files-header,
.files-actions,
.files-search,
.path-nav {
  max-width: 100%;
  overflow-x: auto;
}

.files-header::-webkit-scrollbar,
.files-actions::-webkit-scrollbar,
.files-search::-webkit-scrollbar,
.path-nav::-webkit-scrollbar {
  display: none;
}

.files-header,
.files-actions,
.files-search,
.path-nav {
  scrollbar-width: none;
}

.files-list.thumbnail-view {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 8px 0;
}

.files-list.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  padding: 6px 0;
}

/* Thumbnail card styles */
.file-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1f2937;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.file-thumbnail:hover {
  background: #374151;
}

.thumbnail-download-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  z-index: 2;
}

.file-thumbnail:hover .thumbnail-download-btn {
  opacity: 1;
}

.thumbnail-download-btn:hover {
  background: rgba(55, 65, 81, 0.95);
  transform: scale(1.1);
}

.thumbnail-download-btn svg {
  width: 16px;
  height: 16px;
}

.thumbnail-actions {
  display: flex;
  gap: 1px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnail-actions .btn {
  display: inline-block;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  margin: 0 1px;
  font-size: 12px;
  border-radius: 2px;
  transition: all 0.2s;
  vertical-align: middle;
  line-height: 1;
  min-width: auto;
}

.thumbnail-actions .btn:hover {
  background: rgba(55, 65, 81, 0.5);
  color: var(--fg);
}

.thumbnail-icon {
  font-size: 32px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.thumbnail-image {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  border-radius: 2px;
  margin: 0;
  flex-shrink: 0;
}

.thumbnail-name {
  font-size: 11px;
  text-align: center;
  word-break: break-word;
  margin: 2px 0;
  line-height: 1.1;
}

.thumbnail-size {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
}

.thumbnail-share-info {
  font-size: 8px;
  color: var(--muted);
  text-align: center;
  margin-top: 1px;
  line-height: 1.0;
}

.thumbnail-share-info .shared-label {
  font-weight: bold;
  color: #b282fa;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  transition: all 0.2s ease;
  border-radius: 6px;
  min-height: 32px;
}

.file-item:hover {
  background: #374151;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.file-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-details h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Shared info (status + expiry) under file name */
.share-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  line-height: 1.2;
  color: #9ca3af;
  margin-top: 2px;
}

/* Ensure the badge inside share-info is small and compact */
.share-info .badge {
  font-size: 10px;
  padding: 1px 6px;
  gap: 6px;
}

.share-info .share-exp {
  font-size: 10px;
}

.file-meta {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.file-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.file-actions .btn-action {
  padding: 4px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
}

.file-actions .btn-action:hover {
  background: #4b5563;
  color: #fff;
  transform: scale(1.1);
}

.btn-action {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  color: #9ca3af;
}

.btn-action:hover {
  background: #374151;
  color: #fff;
  transform: scale(1.1);
}

.btn.secondary.small {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-action:hover {
  background: #1f2937;
}

.btn-action.delete:hover {
  background: #dc2626;
}

.no-files {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  background: #111827;
  border: 2px dashed #374151;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 16px;
  font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
  .console-section {
    padding: 16px;
    width: 100%;
  }
  
  .console-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    align-items: center;
  }
  
  .header-content {
    align-items: center;
    text-align: center;
  }
  
  .console-header h1 {
    font-size: 24px;
  }
  
  .storage-info {
    align-items: center;
  }
  
  .storage-bar {
    width: 180px;
  }
  
  .files-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .file-item {
    padding: 6px 8px;
  }
  
  .file-info {
    gap: 8px;
  }
  
  .file-actions {
    gap: 2px;
  }
  
  .upload-section .btn.primary {
    max-width: none;
  }
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.upload-progress {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0a0a0d;
  border: 1px solid #1a1f2a;
  border-radius: 12px;
  padding: 20px;
  min-width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-header h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

.btn-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  color: #fff;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #1f2937;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
  transition: width 0.3s ease;
}

.progress-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-text {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.progress-filename {
  text-align: center;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
}

.user-info {
  color: var(--muted);
  font-size: 14px;
}

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

#refresh-btn {
  background: none !important;
}

.file-clickable {
  cursor: pointer;
}

.file-clickable:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* Image Preview Modal */
.image-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Layout for image with EXIF */
.modal-content.image-with-exif {
  max-width: 95vw;
  display: flex;
  flex-direction: column;
}

.modal-content.image-with-exif .modal-body {
  display: flex;
  gap: 20px;
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-width: 0;
  position: relative;
}
.exif-panel {
  width: 300px;
  background: #2a2a2a;
  border-left: 1px solid #374151;
  padding: 18px;
  overflow-y: auto;
  max-height: 80vh;
}

.exif-map-container {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.exif-map {
  width: 100%;
  height: 180px;
}

.exif-category {
  margin-bottom: 20px;
}

.exif-category h5 {
  margin: 0 0 8px 0;
  color: #BF9BFF;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact page */
.contact-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.contact-page .contact-hero {
  padding: 36px 0 24px;
  text-align: center;
}
.contact-page .contact-hero.contact-container {
  max-width: none;
  width: 100%;
}
.contact-page .contact-hero h1,
.contact-page .contact-hero .lead {
  white-space: normal;
  display: block;
  width: 100%;
}

.contact-page #contact-title {
  font-size: 36px;
  margin: 0 0 16px;
  white-space: normal;
}

.contact-page #contact-intro {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  white-space: normal;
}

.contact-form-section {
  display: flex;
  justify-content: center;
  padding-bottom: 60px;
}

.contact-form-card,
.contact-info-card {
  background: rgba(14, 16, 21, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.contact-form-card {
  width: 100%;
}

.contact-form-card h2,
.contact-info-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
}

.contact-helper {
  margin-top: 0;
  margin-bottom: 24px;
  color: #94a3b8;
  font-size: 14px;
}

.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
  font-size: 14px;
  color: #cbd5e1;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #101623;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(191, 155, 255, 0.8);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(191, 155, 255, 0.2);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.char-count {
  align-self: flex-end;
  font-size: 12px;
  color: var(--muted);
}

.captcha-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.captcha-image {
  width: 180px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0f172a;
  object-fit: cover;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}

.captcha-image.loading {
  opacity: 0.6;
}

.captcha-question {
  font-weight: 600;
  font-size: 15px;
}

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

#captchaAnswer {
  flex: 1;
}

#captcha-refresh {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.9);
  color: var(--fg);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#captcha-refresh:hover {
  background: rgba(46, 64, 87, 0.9);
  transform: translateY(-1px);
}

.form-alert {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}

.form-alert[data-state="success"] {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.form-alert[data-state="error"] {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.contact-info-card .contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14px;
}

.contact-info-card .contact-list strong {
  display: block;
  margin-bottom: 4px;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 12px;
}

.contact-info-card a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

.exif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.exif-table tr {
  border-bottom: 1px solid #374151;
}

.exif-table tr:last-child {
  border-bottom: none;
}

.exif-label {
  padding: 4px 8px 4px 0;
  color: #9ca3af;
  font-weight: 500;
  vertical-align: top;
  width: 40%;
}

.exif-value {
  padding: 4px 0;
  color: #fff;
  font-weight: normal;
  word-break: break-word;
}

.exif-loading {
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
  padding: 20px;
}

.no-exif {
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
  margin: 20px 0;
}

/* Zoom functionality styles */
.zoom-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: zoom-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-out;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transform-origin: center center;
}

.preview-image {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.preview-image:hover {
  opacity: 0.9;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #374151;
}

.modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.modal-body {
  padding: 20px;
  text-align: center;
}

.image-loading {
  color: var(--muted);
  padding: 40px;
}

.preview-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  z-index: 1001;
  animation: toastSlideIn 0.3s ease;
}

.toast-success {
  background: #059669;
  border: 1px solid #10b981;
}

.toast-error {
  background: #dc2626;
  border: 1px solid #ef4444;
}

.toast-info {
  background: #1f2937;
  border: 1px solid #374151;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
#p-summary-lead.summary-animate{animation:heroPopIn .7s cubic-bezier(.2,.8,.2,1) .12s both}
.section{padding:28px 0;border-top:1px solid var(--border)}
.section h2{font-size:24px;margin:0 0 12px}
.section p,.section li{color:var(--muted);line-height:1.75}
.list{margin:0;padding-left:18px}
.list li{margin:6px 0}
.badges-container{display:flex;flex-direction:column;align-items:flex-start;gap:-4px;margin-top:28px;margin-bottom:22px;width:90%;margin-left:auto;margin-right:auto}
.badge{position:relative;display:inline-flex;align-items:center;gap:12px;background:transparent;border:none;color:var(--primary);padding:2px 16px;border-radius:999px;font-size:18px;font-weight:700;text-align:center}
.badge-europe .badge-icon{width:56px;height:38px}
.badge-icon{position:static;left:auto;top:auto;transform:none;z-index:auto;width:20px;height:20px;object-fit:contain;border-radius:2px;pointer-events:none;filter:hue-rotate(0deg) saturate(2) brightness(1.2) sepia(1) hue-rotate(350deg)}
.hero .badge{margin-bottom:0;font-size:18px}
.hero .badge-icon{width:20px;height:20px}
.badges-container .badge{text-align:left}

/* Vertical promo carousel (below value strip) */
.v-carousel{width:90%;margin:12px auto 8px;border-radius:16px}
.v-carousel-viewport{overflow:hidden}
.v-carousel-track{display:flex;flex-direction:column;will-change:transform;transition:transform .9s cubic-bezier(.4,0,.2,1)}
.v-slide{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:14px;padding:12px 16px}
.v-slide-logo{width:224px;height:auto;opacity:0;animation:vFadeIn .33s ease both;max-width:45vw}
.v-slide-title{margin:0 0 4px;font-size:20px;line-height:1.2;color:#fff}
.v-slide-text{margin:0;color:var(--muted);font-size:14px;line-height:1.4}
@keyframes vFadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:768px){
  .v-slide-title{font-size:21px}
  .v-slide-text{font-size:15px}
  .v-slide-logo{width:240px;max-width:25vw}
}
/* Force white text for the three homepage badges only */
#i-badge-large-files, #i-badge-security, #i-badge-pricing { color: #fff; }
/* Highlight specific words in badges: white + underline (no red) */
#i-badge-large-files .hl-red, #i-badge-security .hl-red, #i-badge-pricing .hl-red { color: #fff; text-decoration: underline; }
.cards{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:768px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.card{background:linear-gradient(180deg,#0c0c10 0%,#0a0a0d 100%);border:1px solid #1a1f2a;border-radius:14px;padding:22px 22px 18px;box-shadow:0 1px 0 rgba(255,255,255,0.03) inset,0 10px 30px rgba(0,0,0,0.35);transition:none;display:flex;flex-direction:column;min-height:100%}
.card:hover{border-color:#1a1f2a;transform:none;box-shadow:0 1px 0 rgba(255,255,255,0.03) inset,0 10px 30px rgba(0,0,0,0.35)}
.card h3{margin:12px 0 6px;font-size:22px;line-height:1.25;color:#fff}
  .card .list{padding-left:0}
  .card .list li{margin:8px 0;color:var(--muted)}
  .card .small{margin-top:0;color:#d1d5db;font-size:18px;line-height:1.5}
  /* Smaller + muted color for the long supporting paragraphs */
  #p-security-small, #p-simplicity-small, #p-performance-small, #p-benefits-small, #p-whitelabel-small, #p-massive-files-small{font-size:16px;color:var(--muted)}
  .card-icon{width:50px;height:50px;border-radius:10px;background:transparent;display:grid;place-items:center;font-size:36px;box-shadow:none}
.card-icon img{width:38px;height:38px;object-fit:contain;display:block}
  /* Two-column layout for security card */
  .card-two-col{width:100%;border-collapse:collapse;border-spacing:0;margin:0 0 4px}
  .card-two-col .cell-image{width:115px;vertical-align:middle;padding-right:8px}
  .card-two-col .cell-text{vertical-align:middle;text-align:left}
  .card-two-col img{width:115px;height:115px;object-fit:contain;display:block}
.checklist{list-style:none;padding-left:0;margin:10px 0 8px}
.checklist li{display:flex;align-items:flex-start;gap:10px;color:#d1d5db;margin:12px 0}
.checklist li::before{content:"";display:inline-block;flex:0 0 18px;width:18px;height:18px;margin-top:2px;background-color:#b482fc;-webkit-mask-image:url('/check.png');-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;mask-image:url('/check.png');mask-size:contain;mask-repeat:no-repeat;mask-position:center}
/* Smaller bullets for Security, Europe, and Performance */
#list-security-1,#list-security-2,#list-security-3,#list-security-4,
#list-simplicity-1,#list-simplicity-2,#list-simplicity-3,#list-simplicity-4,#list-simplicity-5,
#list-performance-1,#list-performance-2,#list-performance-3,#list-performance-4,
#list-benefits-1,#list-benefits-2,#list-benefits-3,#list-benefits-4{font-size:15px;line-height:1.6}
.grid{display:grid;gap:18px}
@media(min-width:768px){.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Reveal on scroll animations */
.reveal{opacity:0;transform:translateY(10px);transition:opacity .45s ease-out,transform .45s ease-out}
.reveal.in{opacity:1;transform:none}
.card .small.reveal{opacity:0;transform:translateY(10px);transition:opacity .45s ease-out,transform .45s ease-out}
.card .small.reveal.in{opacity:1;transform:none}
.card-icon.reveal{opacity:0;transform:translateY(10px);transition:opacity .45s ease-out,transform .45s ease-out}
.card-icon.reveal.in{opacity:1;transform:none}
.card .list.reveal{opacity:0;transform:translateY(10px);transition:opacity .45s ease-out,transform .45s ease-out}
.card .list.reveal.in{opacity:1;transform:none}
.card .list li.reveal{opacity:0;transform:translateY(10px);transition:opacity .45s ease-out,transform .45s ease-out}
.card .list li.reveal.in{opacity:1;transform:none}
/* Footer main (3 columns) */
.footer-main{padding:40px 0;border-top:1px solid var(--border)}
.footer-grid{display:grid;gap:24px;grid-template-columns:1fr}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.footer-col h4{margin:0 0 12px;font-size:18px;color:#fff}
.footer-col p{margin:0 0 8px;color:#d1d5db;line-height:1.7;font-size:14px}
.footer-links{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:14px}
.footer-col a{color:#d1d5db;text-decoration:none}
.footer-col a:hover{color:#fff;text-decoration:underline}
.footer{padding:32px 0;color:var(--muted);text-align:center;font-size:12px}
code{background:#111217;border:1px solid #1f2430;padding:2px 6px;border-radius:6px;color:#e5e7eb}
.small{font-size:14px;color:var(--muted)}
.card-more{margin-top:auto;align-self:flex-end;color:var(--muted);text-decoration:none;font-weight:600}
.card-more:hover{color:var(--muted);text-decoration:none}

/* Modal styles for upload options */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.modal-content h3 {
  margin: 0 0 16px 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn.primary:hover {
  background: var(--primary-700);
}

.btn.secondary {
  background: var(--border);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: #4b5563;
  border-color: #4b5563;
}

.btn.tertiary {
  background: transparent;
  color: #888;
  border: 1px solid #555;
}

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

/* Responsive Modal Styles */
@media (max-width: 640px) {
  .profile-modal {
    padding: 8px;
  }
  
  .profile-modal-content {
    max-width: 100%;
    border-radius: 8px;
  }
  
  .profile-header {
    padding: 16px 20px;
  }
  
  .profile-header h2 {
    font-size: 18px;
  }
  
  .profile-content,
  .invoices-content {
    padding: 20px;
  }
  
  .invoices-content {
    max-height: 80vh;
  }
  
  .invoices-list {
    max-height: 70vh;
  }
  
  .profile-card {
    padding: 14px;
  }
  
  .invoice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }
  
  .invoice-details {
    margin: 0;
    align-items: flex-start;
    width: 100%;
  }
  
  .invoice-actions {
    width: 100%;
  }
  
  .btn-view-invoice {
    width: 100%;
    justify-content: center;
  }
}

/* MCP Announcement Banner */
.mcp-banner {
  position: fixed;
  top: 100px;
  right: -190px;
  width: 170px;
  background: linear-gradient(180deg, rgba(37,34,58,0.98) 0%, rgba(18,16,34,0.98) 100%);
  border: 1px solid rgba(191,155,255,0.5);
  border-radius: 20px;
  padding: 24px 14px;
  box-shadow: 0 0 40px 8px rgba(0, 0, 0, 0.9), 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(191,155,255,0.1) inset;
  z-index: 9999;
  transition: right 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(16px);
}

.mcp-banner.show {
  right: 10px;
}

.mcp-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: all 0.2s ease;
  border-radius: 4px;
  z-index: 10;
}

.mcp-banner-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.mcp-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.mcp-banner-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 71, 87, 0.6);
  }
}

.mcp-banner-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(191,155,255,0.2) 0%, rgba(135,111,255,0.2) 100%);
  border-radius: 16px;
  border: 1px solid rgba(191,155,255,0.3);
  color: var(--primary);
  animation: iconFloat 3s ease-in-out infinite;
}

.mcp-banner-icon svg {
  width: 36px;
  height: 36px;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.mcp-banner-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mcp-banner-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.mcp-banner-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  line-height: 1.3;
}

.mcp-banner-description {
  font-size: 11px;
  color: rgba(191, 155, 255, 0.9);
  line-height: 1.4;
  margin-top: 2px;
}

.mcp-banner-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #876FFF 100%);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(191, 155, 255, 0.3);
  margin-top: 6px;
}

.mcp-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(191, 155, 255, 0.5);
  background: linear-gradient(135deg, #c8a9ff 0%, #9575fc 100%);
}

.mcp-banner-arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.mcp-banner-cta:hover .mcp-banner-arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .mcp-banner {
    width: 160px;
    right: -170px;
    top: 80px;
    padding: 20px 12px;
  }
  
  .mcp-banner.show {
    right: 10px;
  }
  
  .mcp-banner-icon {
    width: 52px;
    height: 52px;
  }
  
  .mcp-banner-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .mcp-banner-title {
    font-size: 18px;
  }
  
  .mcp-banner-subtitle {
    font-size: 12px;
  }
  
  .mcp-banner-description {
    font-size: 10px;
  }
  
  .mcp-banner-cta {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-height: 700px) {
  .profile-modal {
    padding: 10px 16px;
  }
  
  .profile-header {
    padding: 12px 20px;
  }
  
  .profile-content,
  .invoices-content {
    padding: 16px 20px;
  }
  
  .invoices-content {
    max-height: 60vh;
  }
  
  .invoices-list {
    max-height: 50vh;
  }
}
