:root{
  --gc-bg:#070B20;
  --gc-panel:rgba(255,255,255,0.06);
  --gc-panel2:rgba(255,255,255,0.04);
  --gc-border:rgba(255,255,255,0.10);
  --gc-text:#EAF0FF;
  /* brighter tones for all secondary text */
  --gc-muted:rgba(255,255,255,0.86);
  --gc-muted2:rgba(255,255,255,0.78);
  --gc-muted3:rgba(255,255,255,0.70);
  --gc-accent:#22d3ee;
  --gc-accent2:#a855f7;
  --gc-danger:#fb7185;
  --gc-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(168,85,247,0.22), transparent 60%),
    radial-gradient(700px 450px at 85% 15%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(800px 600px at 50% 90%, rgba(245,158,11,0.10), transparent 60%),
    var(--gc-bg);
  color:var(--gc-text);
}

a{ color:inherit; text-decoration:none; }
.hidden{ display:none !important; }
.center{ text-align:center; }
.right{ text-align:right; }
.small{ font-size:12px; }
.muted{ color: var(--gc-muted); }
.pad{ padding:18px; }
.h1{ font-size:28px; font-weight:700; letter-spacing:-0.02em; }
.h2{ font-size:18px; font-weight:650; letter-spacing:-0.01em; }

.page{ padding: 18px 18px 34px; }

.topnav{
  position: sticky; top:0; z-index:20;
  backdrop-filter: blur(12px);
  background: rgba(7,11,32,0.55);
  border-bottom: 1px solid var(--gc-border);
}
.topnav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 10px;
  display:flex;
  align-items:center;
  gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; }
.brand-icon{ display:inline-flex; width:34px; height:34px; border-radius:10px;
  align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(34,211,238,0.25), rgba(168,85,247,0.25));
  border: 1px solid var(--gc-border);
}
.brand-text{ letter-spacing:-0.02em; }

.topnav-links{ display:flex; align-items:center; gap:18px; margin-left: 18px; }
.topnav-links a{
  color: rgba(234,240,255,0.82);
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
}
.topnav-links a:hover{ background: rgba(255,255,255,0.05); }
.topnav-links a.active{ background: rgba(255,255,255,0.07); color: var(--gc-text); }

.topnav-right{ margin-left:auto; display:flex; align-items:center; gap:10px; }

.userpill{
  display:flex; align-items:center; gap:10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gc-border);
  border-radius: 999px;
}
.avatar{
  width:28px; height:28px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(34,211,238,0.16);
  border: 1px solid rgba(34,211,238,0.25);
  font-weight:800;
}
.username{ font-size:13px; max-width: 220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.btn{
  border:1px solid var(--gc-border);
  background: rgba(255,255,255,0.05);
  color: var(--gc-text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,0.07); }
.btn:disabled{ opacity:0.55; cursor:not-allowed; }

.btn.primary{
  border:1px solid rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.12);
}
.btn.ghost{ background: rgba(255,255,255,0.03); }
.btn.gradient{
  border:none;
  background: linear-gradient(90deg, var(--gc-accent), var(--gc-accent2));
  color: var(--gc-text);
}
.btn.gradient:hover{ filter: brightness(1.05); }

.flash-wrap{ max-width: 1200px; margin: 0 auto 14px; }
.flash{
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid var(--gc-border);
  background: rgba(255,255,255,0.06);
}

.footer{ border-top:1px solid var(--gc-border); background: rgba(7,11,32,0.35); }
.footer-inner{ max-width:1200px; margin:0 auto; padding:18px 10px; color:var(--gc-muted); font-size:13px; }

.card{
  background: var(--gc-panel);
  border: 1px solid var(--gc-border);
  border-radius: 18px;
  box-shadow: var(--gc-shadow);
  padding: 18px;
}

.app-shell{
  max-width: 1200px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.sidebar{
  position: sticky;
  top: 78px;
  align-self:start;
  height: calc(100vh - 96px);
  display:flex;
  flex-direction:column;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gc-border);
}

.sidebar-brand{ display:flex; align-items:center; gap:10px; padding:6px 6px 2px; }
.brand-mark{
  width:40px; height:40px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(34,211,238,0.12);
  border:1px solid rgba(34,211,238,0.25);
}
.brand-name{ font-weight:850; letter-spacing:-0.02em; }

.sidebar-nav{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.nav-item{
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(234,240,255,0.85);
  font-weight:650;
  border:1px solid transparent;
}
.nav-item:hover{ background: rgba(255,255,255,0.05); }
.nav-item.active{
  background: rgba(34,211,238,0.10);
  border-color: rgba(34,211,238,0.28);
  color: var(--gc-text);
}
.nav-item.disabled{ opacity:0.55; pointer-events:none; }

.sidebar-card{
  margin-top:auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gc-border);
}
.usage-big{ font-size:22px; font-weight:800; margin: 6px 0 10px; }

.main{ display:flex; flex-direction:column; gap: 18px; }
.main-top{
  display:flex; align-items:center; justify-content:space-between;
  padding: 2px 4px;
}
.crumbs{ display:flex; align-items:center; gap:10px; font-size:13px; }
.crumb-strong{ font-weight:750; }

.hero-card{ padding: 18px; }
.hero-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom: 14px; }
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.25);
  background: rgba(34,211,238,0.10);
  font-weight:750;
  font-size:12px;
}

.dropzone{
  border: 2px dashed rgba(34,211,238,0.28);
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 26px 16px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
  outline: none;
}
.dropzone.drag{ background: rgba(34,211,238,0.06); border-color: rgba(34,211,238,0.5); }
.dz-icon{ font-size:28px; opacity:0.9; }
.dz-title{ font-weight:800; letter-spacing:-0.01em; }

.upload-row{
  display:flex; align-items:center; gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.filehint{ color: rgba(234,240,255,0.82); font-weight:600; }
.upload-progress{
  /* user wants it aligned left */
  margin-left:0;
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 240px;
}

/* inside upload card */
.in-card-space{ height: 10px; }
.controls-in-card{ margin-top: 14px; }
.card-inner{ margin-top: 12px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.card-info{ margin-top: 14px; }

/* Promo banner */
.promo-banner { padding: 0 !important; overflow: hidden; }
.promo-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: linear-gradient(135deg, rgba(167,139,250,0.1) 0%, rgba(96,165,250,0.07) 100%);
  border-radius: inherit;
}
.promo-banner-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  background: rgba(167,139,250,0.2); color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.3); border-radius: 20px; padding: 2px 9px;
  margin-bottom: .4rem;
}
.promo-banner-title { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.promo-banner-sub { font-size: .82rem; color: rgba(255,255,255,0.55); max-width: 460px; }
.promo-banner-btn {
  flex-shrink: 0; white-space: nowrap;
  padding: 8px 18px; border-radius: 10px; font-size: .85rem; font-weight: 600;
  background: rgba(167,139,250,0.15); color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.3); text-decoration: none;
  transition: background .2s, border-color .2s;
}
.promo-banner-btn:hover { background: rgba(167,139,250,0.25); border-color: rgba(167,139,250,0.5); color: #c4b5fd; }

/* Grid view */
[data-view="grid"] .table-wrap { background: transparent; border: none; padding: 0; }
[data-view="grid"] .table { display: none; }
[data-view="grid"] #filesGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
[data-view="list"] #filesGrid { display: none; }
#filesGrid { display: none; }
.grid-item {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 14px 12px 10px; text-align: center;
  cursor: default; transition: border-color .2s, transform .15s;
  position: relative;
}
.grid-item:hover { border-color: rgba(167,139,250,0.3); transform: translateY(-2px); }
.grid-item .gi-ico { font-size: 2rem; margin-bottom: 6px; display: block; }
.grid-item .gi-name { font-size: .78rem; word-break: break-all; color: rgba(255,255,255,0.85); line-height: 1.3; }
.grid-item .gi-size { font-size: .7rem; color: rgba(255,255,255,0.4); margin-top: 4px; }
.grid-item .gi-menu-btn { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,0.07); border: none; border-radius: 6px; color: rgba(255,255,255,0.6); width: 22px; height: 22px; font-size: .8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.grid-item .gi-menu-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* active view toggle button */
.view-toggle .icon-btn.active { background: rgba(167,139,250,0.2); color: #a78bfa; }


/* Make + button always clickable */
.head-actions{ position: relative; z-index: 10; }
.icon-btn{ cursor: pointer; }

.progress{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  overflow:hidden;
}
.progress-bar{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gc-accent), var(--gc-accent2));
}

.table-head{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  margin-bottom: 10px;
}
.search{
  width: 320px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--gc-border);
  background: rgba(255,255,255,0.04);
  color: var(--gc-text);
  outline:none;
}
.search::placeholder{ color: var(--gc-muted3); }

.table-wrap{
  background: rgba(10, 18, 32, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.dark-table{ width:100%; border-collapse: collapse; background: transparent; }
.dark-table thead th{
  text-align:left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234,240,255,0.60);
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dark-table tbody td{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(234,240,255,0.88);
  font-weight: 550;
  background: transparent;
}
.dark-table tbody tr:hover{ background: rgba(255,255,255,0.03); }
.dark-table tbody tr:last-child td{ border-bottom:none; }

.filecell{ display:flex; align-items:center; gap:10px; }
.filedot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(34,211,238,0.8);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.10);
}
.filename{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width: 520px; }

.actions{ white-space:nowrap; display:flex; justify-content:flex-end; gap: 14px; }
.link{
  background: transparent;
  border: none;
  padding: 0;
  color: rgba(234,240,255,0.88);
  font-weight: 750;
  cursor: pointer;
}
.link:hover{ color: var(--gc-accent); text-decoration: underline; }
.link.danger:hover{ color: var(--gc-danger); }

/* ---- Legacy pages (home/pricing/auth) ---- */
.gc-hero{ max-width:1200px; margin: 18px auto 0; padding: 26px 10px; }
.gc-fade{ opacity:0.92; }
.gc-glow{ text-shadow: 0 0 40px rgba(34,211,238,0.25); }
.gc-muted{ color: var(--gc-muted); }
.gc-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.25);
  background: rgba(34,211,238,0.10);
  font-weight:800;
  font-size:12px;
}
.gc-dot{ width:8px; height:8px; border-radius:999px; background: var(--gc-accent); box-shadow: 0 0 0 4px rgba(34,211,238,0.10); }
.gc-card{
  background: var(--gc-panel);
  border: 1px solid var(--gc-border);
  border-radius: 18px;
  box-shadow: var(--gc-shadow);
  padding: 18px;
}
.gc-btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; border-radius: 12px; padding: 12px 14px; font-weight:800; border:1px solid var(--gc-border); }
.gc-btn-primary{ background: linear-gradient(90deg, var(--gc-accent), var(--gc-accent2)); color: var(--gc-text); border:none; }
.gc-btn-outline{ background: rgba(255,255,255,0.03); }
.gc-btn, .btn.gc-btn{
  color: var(--gc-text) !important;
  text-decoration: none;
}
.btn.gc-btn.gc-btn-outline{
  background: rgba(255,255,255,0.03) !important;
  border-color: var(--gc-border) !important;
}
.btn.gc-btn:hover{
  color: var(--gc-text) !important;
}
.gc-pill{ padding: 6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); font-weight:750; font-size:12px; }
.gc-price{ font-size: 42px; font-weight: 900; letter-spacing:-0.03em; }
.gc-progress{ height: 10px; border-radius:999px; background: rgba(255,255,255,0.08); overflow:hidden; border:1px solid rgba(255,255,255,0.10); }
.gc-progress > div{ height:100%; background: linear-gradient(90deg, var(--gc-accent), var(--gc-accent2)); width:0; }
.gc-screen{ border-radius: 22px; border:1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.25); overflow:hidden; }
.gc-screen-inner{ padding: 18px; }
.gc-screen-kicker{ color: var(--gc-muted); font-size:12px; letter-spacing:0.08em; text-transform:uppercase; }
.gc-screen-title{ font-size:22px; font-weight:850; }
.gc-screen-sub{ color: var(--gc-muted); }
.gc-screen-small{ color: var(--gc-muted); font-size:12px; }
.gc-screen-price{ font-weight:900; }
.gc-promo-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 14px; }
.gc-promo-link{ color: rgba(34,211,238,0.9); font-weight:800; }

/* ===== Dashboard shell (My Files reference style) ===== */
.app-shell{
  display:flex;
  min-height: calc(100vh - 40px);
  gap: 22px;
  align-items: stretch;
}

.sidebar{
  width: 260px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 16px;
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  overflow: hidden;
}

.sidebar-brand{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}

.brand-mark{
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: rgba(0,194,255,0.12);
  border: 1px solid rgba(0,194,255,0.25);
  font-size: 20px;
}

.brand-name{font-weight: 800; letter-spacing: .2px;}

.side-nav{display:flex; flex-direction:column; gap: 6px; padding: 4px 0 12px;}

.side-link{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  text-decoration:none;
  background: transparent;
  border: 1px solid transparent;
}

.side-link:hover{background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06);}
.side-link.active{background: rgba(0,194,255,0.10); border-color: rgba(0,194,255,0.22); color: white;}

.side-ico{width: 18px; display:inline-flex; justify-content:center; opacity: 0.9;}

.side-usage{
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.side-usage-title{font-size:12px; opacity:0.7; margin-bottom:8px;}
.side-usage-bar{height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow:hidden;}
.side-usage-fill{height: 100%; border-radius: 999px; background: linear-gradient(90deg, #00c2ff, #8d5bff);}
.side-usage-meta{margin-top:8px; font-size:12px; opacity:0.75;}

.main{flex:1; min-width: 0;}

.topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}

.topbar-links{display:flex; gap: 16px; flex-wrap: wrap; align-items:center;}
.topbar-links a{color: rgba(255,255,255,0.72); text-decoration:none; font-size: 14px;}
.topbar-links a:hover{color: white;}
.topbar-links a.active{color: white;}

.topbar-user{display:flex; gap: 12px; align-items:center;}
.user-chip{display:flex; gap: 10px; align-items:center; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.14);}
.user-avatar{width: 30px; height: 30px; border-radius: 999px; display:flex; align-items:center; justify-content:center; background: rgba(0,194,255,0.12); border: 1px solid rgba(0,194,255,0.22); font-weight: 800;}
.user-name{font-size: 14px; font-weight: 600; opacity: 0.9; max-width: 160px; white-space: nowrap; overflow:hidden; text-overflow: ellipsis;}
.topbar-logout{color: rgba(255,255,255,0.75); text-decoration:none; font-size:14px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);} 
.topbar-logout:hover{color:white; background: rgba(255,255,255,0.04);} 

.crumbs{opacity:0.72; margin: 0 0 8px; font-size: 13px;}
.crumb-sep{margin: 0 8px; opacity: 0.6;}
.crumb-muted{opacity:1; color: var(--gc-muted2);} 

.card-xl{padding: 18px;}
.card-head{display:flex; justify-content:space-between; gap: 12px; align-items:flex-start; margin-bottom: 12px;}
.h2{margin:0; font-size: 22px;}
.sub{margin: 6px 0 0; opacity: 1; color: var(--gc-muted2);} 
.pill{align-self:flex-start; padding: 6px 10px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.03);} 

.dropzone{
  border: 2px dashed rgba(0,194,255,0.30);
  border-radius: 16px;
  padding: 26px 18px;
  text-align:center;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
}
.dropzone.drag{background: rgba(0,194,255,0.08); border-color: rgba(0,194,255,0.55);} 
.drop-ico{font-size: 22px; opacity: 0.9;}
.drop-title{margin-top: 10px; font-weight: 700;}
.drop-title{color: rgba(255,255,255,0.94);} 
.drop-sub{margin-top: 6px; opacity: 1; font-size: 13px; color: var(--gc-muted2);} 

.upload-progress{margin-top: 14px;}
.upload-meta{display:flex; justify-content: space-between; margin-top: 8px; font-size: 13px;}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; opacity: 1; color: rgba(255,255,255,0.92);}

.controls{display:flex; justify-content:space-between; gap: 14px; align-items:center; margin: 16px 0; flex-wrap: wrap;}
.search{flex: 1; min-width: 260px; display:flex; align-items:center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);} 
.search-ico{opacity:0.9; color: rgba(255,255,255,0.9);}
.search input{flex:1; background: transparent; border: none; outline: none; color: white;}

.control-right{display:flex; gap: 10px; align-items:center; flex-wrap: wrap; justify-content:flex-end;}
.select{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  padding: 9px 36px 9px 14px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .2s, background .2s;
}
.select:hover { border-color: rgba(167,139,250,0.4); background-color: rgba(167,139,250,0.07); }
.select:focus { outline: none; border-color: rgba(167,139,250,0.6); box-shadow: 0 0 0 3px rgba(167,139,250,0.1); }
.select option { background: #1a1a2e; color: rgba(255,255,255,0.92); }

.view-toggle{display:flex; gap: 6px;}
.icon-btn{width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.8);} 

.file-name{display:flex; gap: 10px; align-items:center;}
.file-ico{opacity: 0.9;}
.file-text{font-weight: 600;}

/* Fix: avoid "white block" behind the file list on some browsers */
.table-wrap{margin-top: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.18); padding: 8px 10px; max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;}
.table-wrap::-webkit-scrollbar { width: 6px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

.table thead th{background: rgba(255,255,255,0.03);} 
.table{background: transparent;}
.table th,.table td{color: rgba(255,255,255,0.92);} 
.table tbody td{background: transparent;} 

.empty{padding: 26px 10px; text-align:center; opacity: 1; color: var(--gc-muted2);}
.sep{opacity:0.9; margin: 0 8px; color: var(--gc-muted2);} 

@media (max-width: 980px){
  .app-shell{flex-direction: column;}
  .sidebar{width: 100%; height: auto; position: relative;}
}

/* --- Accessibility / contrast tweaks --- */
.sub, .drop-sub, .crumb-muted, .muted { color: var(--gc-muted) !important; }
.sub2 { margin-top:6px; font-size: 0.92rem; color: rgba(234,240,255,0.92) !important; }

.head-actions{display:flex; align-items:center; gap:10px;}
.icon-btn{
  width:36px; height:36px;
  border-radius:10px;
  border:1px solid var(--gc-border);
  background: rgba(255,255,255,0.06);
  color: var(--gc-text);
  font-size:18px;
  cursor:pointer;
}
.icon-btn:hover{ background: rgba(255,255,255,0.10); }

/* Table links should be bright enough */
.table .link{ color: rgba(234,240,255,0.92) !important; }
.table .link:hover{ color: #ffffff !important; }

/* Keep button text readable (Bootstrap override) */
.btn.gc-btn, .gc-btn, .gc-btn * { color: #ffffff !important; }


/* === Contrast fixes: make ALL text readable on dark UI === */
body, .app, .card, .navbar, .container { color: var(--gc-text) !important; }
h1,h2,h3,h4,h5,h6,.title,.brand,.logo { color: #ffffff !important; }
p,li,span,label,small,th,td,a,button,input,select,textarea { color: inherit; }
.text-muted,.muted,.subtle,.hint,.help,.form-text,.placeholder,
.table td.muted, .table .muted { color: var(--gc-muted) !important; }
input::placeholder, textarea::placeholder { color: var(--gc-muted2) !important; opacity: 1; }

/* Pricing page: force readable numbers and labels */
.pricing-card, .pricing-card * { color: var(--gc-text) !important; }
.pricing-card .price, .pricing-card .amount { color: #ffffff !important; }
.pricing-card .badge, .pricing-card .pill { color: #ffffff !important; }

/* Toolbar buttons (plus etc.) should always be clickable */
.icon-btn, #addFilesBtn, #newFolderBtn { position: relative; z-index: 5; }

/* Upload progress should be hidden by default; JS toggles .is-uploading */
.upload-meta { display: none; }
.is-uploading .upload-meta { display: flex; }


/* ===== Stronger light text overrides (Bootstrap) ===== */
h1,h2,h3,h4,h5,h6,
.display-1,.display-2,.display-3,.display-4,.display-5,.display-6,
.fw-bold,.fw-semibold,.fw-medium{
  color: var(--gc-text) !important;
}
.text-muted,.text-secondary,.text-body-secondary{
  color: var(--gc-muted) !important;
}
.btn, .btn-outline, .btn-outline-secondary, .btn-outline-dark{
  color: var(--gc-text) !important;
}

/* Ensure the + upload button is always clickable */
.upload-plus, #openPicker{
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

/* ===== Modal ===== */
.gc-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 9998;
}
.gc-modal{
  position: fixed;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 18px;
}
.gc-modal.hidden, .gc-modal-backdrop.hidden{ display:none; }
.gc-modal-card{
  width: min(520px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,12,24,0.92);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.gc-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.gc-modal-title{
  font-weight: 900;
  letter-spacing: -0.01em;
}
.gc-modal-close{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--gc-text);
  font-size: 22px;
  line-height: 1;
}
.gc-modal-close:hover{ background: rgba(255,255,255,0.10); }
.gc-modal-body{ padding: 14px 16px; }
.gc-modal-text{ color: var(--gc-muted); }
.gc-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.btn.danger{
  background: rgba(251,113,133,0.16);
  border: 1px solid rgba(251,113,133,0.45);
  color: #fff !important;
}
.btn.danger:hover{ background: rgba(251,113,133,0.22); }

/* Input/select inside modal */
.gc-modal-input{
  width:100%;
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(10,12,18,.55);
  color:rgba(255,255,255,.92);
  outline:none;
}
.gc-modal-input:focus{border-color:rgba(120,190,255,.55);}

/* Actions menu (⋯) */
.actions{position:relative;display:inline-block;}
.icon-btn.dots{width:38px;height:32px;line-height:1;font-size:20px;}
.menu{
  position:absolute;
  right:0;
  top:36px;
  min-width:170px;
  background:rgba(18,22,34,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:6px;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
  z-index:50;
}
.menu .menu-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  color:rgba(255,255,255,.9);
  background:transparent;
  border:0;
  text-decoration:none;
  cursor:pointer;
  font-size:14px;
}
.menu .menu-item:hover{background:rgba(255,255,255,.08);}
.menu .menu-item.danger{color:rgba(255,110,140,.95) !important;}
.menu form{margin:0;}


/* ====== Contrast hardening ====== */
body, .card, .table, .sidebar, .app-shell { color: rgba(255,255,255,0.92) !important; }
.text-muted, .muted, .subtle, .hint, .form-text, .helptext, .small, .table th, .table td { color: rgba(255,255,255,0.78) !important; }
h1,h2,h3,h4,h5,h6,.display-1,.display-2,.display-3,.display-4,.display-5,.display-6 { color: rgba(255,255,255,0.96) !important; }
a, .link, .folder-link { color: rgba(255,255,255,0.92) !important; text-decoration: none; }
a:hover, .folder-link:hover { text-decoration: underline; }

.path-row{display:flex; align-items:center; justify-content:space-between; gap:12px; margin: 8px 0 12px 0;}
.path-left{display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.path-label{opacity:.85;}
.path-link{padding:2px 8px; border-radius:10px; background: rgba(255,255,255,.06);}
.path-current{padding:2px 8px; border-radius:10px; background: rgba(255,255,255,.04); opacity:.95;}
.path-sep{opacity:.6;}
