/* ═══════════════════════════════════════════════════════
   DailyUploads — "We Promise. We Deliver." (Bootstrap 5 edition)
   Brand: Red  (#ef4444 / #dc2626 / #b91c1c)
════════════════════════════════════════════════════════ */

:root {
  --brand-400: #f87171;
  --brand-500: #ef4444;
  --brand-600: #dc2626;
  --brand-700: #b91c1c;
  --brand-50:  #fef2f2;
  --brand-100: #fee2e2;

  --bg:        #ffffff;
  --bg-soft:   #f8f9fb;
  --border:    #e9ecef;
  --border-2:  #dee2e6;
  --text:      #16181b;
  --text-2:    #495057;
  --text-3:    #6c757d;
  --text-4:    #adb5bd;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(16,18,20,.06);
  --shadow-md: 0 6px 20px rgba(16,18,20,.08);
  --shadow-lg: 0 18px 50px rgba(16,18,20,.12);
  --shadow-brand: 0 10px 30px rgba(239,68,68,.28);

  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ── Dark theme tokens ── */
[data-theme="dark"] {
  --brand-50:  rgba(239, 68, 68, .14);
  --brand-100: rgba(239, 68, 68, .28);

  --bg:        #101214;
  --bg-soft:   #17191c;
  --border:    #2a2d31;
  --border-2:  #35383d;
  --text:      #f4f5f6;
  --text-2:    #d6d8db;
  --text-3:    #9aa0a6;
  --text-4:    #6c7278;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --shadow-md: 0 6px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.5);
  --shadow-brand: 0 10px 30px rgba(239,68,68,.35);
}

html { scroll-behavior: smooth; }

/* Public pages hide .sideNav. col-lg then fills the leftover row so
   the homepage does not sit in an 10/12 hole with chips in the gutter. */
.row:has(> .sideNav) > .contentInner.col-lg {
  min-width: 0;
}

/* Public page markers: hide the dashboard rail even when a template
   forgot the per-page .sideNav{display:none} snippet. Dashboard
   templates (my_account / my_files / reports / admin) do not use
   these classes, so their sidenav stays visible from 992px. */
body:has(.du-hero) .sideNav,
body:has(.du-prem) .sideNav,
body:has(.du-doc) .sideNav,
body:has(.du-news) .sideNav,
body:has(.du-news-title) .sideNav,
body:has(#news) .sideNav,
body:has(.du-contact) .sideNav,
body:has(.du-check) .sideNav,
body:has(.auth-card) .sideNav,
body:has(.du-dl) .sideNav,
body:has(.du-up) .sideNav,
body:has(.du-api) .sideNav,
body:has(.sectionMoney) .sideNav,
body:has(.du-msg) .sideNav,
body:has(.du-public-files) .sideNav {
  display: none !important;
}

/* Download flow: class is stamped on <html> in main.html before first paint.
   body:has(.du-dl) above is a fallback once the marker element exists. */
html.du-dl-page .sideNav {
  display: none !important;
}

html.du-dl-page .contentInner {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-top: 0 !important;
}

body:has(.du-hero) .contentInner,
body:has(.du-prem) .contentInner,
body:has(.du-doc) .contentInner,
body:has(.du-news) .contentInner,
body:has(.du-news-title) .contentInner,
body:has(#news) .contentInner,
body:has(.du-contact) .contentInner,
body:has(.du-check) .contentInner,
body:has(.auth-card) .contentInner,
body:has(.du-dl) .contentInner,
body:has(.du-up) .contentInner,
body:has(.du-api) .contentInner,
body:has(.sectionMoney) .contentInner,
body:has(.du-msg) .contentInner,
body:has(.du-public-files) .contentInner {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

body:has(.du-hero) .footerMain,
body:has(.du-prem) .footerMain,
body:has(.du-doc) .footerMain,
body:has(.du-news) .footerMain,
body:has(.du-news-title) .footerMain,
body:has(#news) .footerMain,
body:has(.du-contact) .footerMain,
body:has(.du-check) .footerMain,
body:has(.auth-card) .footerMain,
body:has(.du-dl) .footerMain,
body:has(.du-up) .footerMain,
body:has(.du-api) .footerMain,
body:has(.sectionMoney) .footerMain,
body:has(.du-msg) .footerMain,
body:has(.du-public-files) .footerMain {
  display: block;
}

body:has(.du-hero) .footer_sticky,
body:has(.du-prem) .footer_sticky,
body:has(.du-doc) .footer_sticky,
body:has(.du-news) .footer_sticky,
body:has(.du-news-title) .footer_sticky,
body:has(#news) .footer_sticky,
body:has(.du-contact) .footer_sticky,
body:has(.du-check) .footer_sticky,
body:has(.auth-card) .footer_sticky,
body:has(.du-dl) .footer_sticky,
body:has(.du-up) .footer_sticky,
body:has(.du-api) .footer_sticky,
body:has(.sectionMoney) .footer_sticky,
body:has(.du-msg) .footer_sticky,
body:has(.du-public-files) .footer_sticky {
  display: none;
}

.contentInner {
  min-width: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--text); }

/* Smooth surface color transitions when toggling theme */
.upload-card, .drop-zone, .trust-pill, .feature-card, .price-card, .compare-card,
.compare-table thead tr, .compare-table td, .compare-table th, .linkchecker-card, .testimonial-card, .accordion-item,
.accordion-button, .newsletter-card, .site-footer, .features-section,
.premium-section, .testimonials-section, .faq-section, .lang-menu, .btn-icon,
.btn-icon-text, .btn-outline-brand, .navbar-nav .nav-link {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.text-brand { color: var(--brand-600) !important; }
a { text-decoration: none; }

[data-theme="dark"] .text-muted { color: var(--text-3) !important; }
[data-theme="dark"] .compare-table td,
[data-theme="dark"] .compare-table th { color: var(--text-2); }
[data-theme="dark"] input::placeholder { color: var(--text-4); }
[data-theme="dark"] .form-control {
  background: var(--bg-soft); border-color: var(--border-2); color: var(--text);
}
[data-theme="dark"] .form-control:focus { background: var(--bg-soft); color: var(--text); }
[data-theme="dark"] .dropdown-menu { background: var(--bg); }

/* ════════════════════════════════════════ BUTTONS */
.btn { font-weight: 600; font-size: .9rem; border-radius: var(--radius-sm); }

.btn-brand {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--brand-700);
  border-color: var(--brand-700);
  box-shadow: var(--shadow-brand);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-brand {
  background: transparent;
  border: 1.5px solid var(--border-2);
  color: var(--text-2);
}
.btn-outline-brand:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
  background: var(--brand-50);
}

.btn-ghost { background: transparent; color: var(--text-2); border: none; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

.btn-icon, .btn-icon-text {
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon-text { width: auto; padding: 0 .8rem; gap: .35rem; }
.btn-icon:hover, .btn-icon-text:hover { background: var(--bg-soft); }

#darkToggle i { transition: transform .35s ease; }
#darkToggle:active i { transform: rotate(20deg); }

.lang-flag { font-size: .95rem; line-height: 1; }

.dropdown-toggle::after { margin-left: .45rem; vertical-align: .1em; }

.lang-menu {
  min-width: 190px;
  padding: .4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lang-option {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 500; color: var(--text-2);
  padding: .5rem .65rem; border-radius: var(--radius-sm);
  background: transparent; border: none; width: 100%; text-align: left;
}
.lang-option:hover, .lang-option:focus { background: var(--bg-soft); color: var(--text); }
.lang-option.active { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }

/* ════════════════════════════════════════ HEADER */
.site-header {
  z-index: 1030;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease;
}
[data-theme="dark"] .site-header { background: rgba(16,18,20,.85); }
.navbar { min-height: 64px; }

.brand-mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); line-height: 1; display: flex; flex-direction: column; }
.brand-accent { color: var(--brand-600); }
.brand-text small { font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); margin-top: .2rem; }

.navbar-nav .nav-link {
  font-size: .9rem; font-weight: 500; color: var(--text-2);
  padding: .5rem .85rem !important;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.navbar-nav .nav-link:hover { color: var(--brand-600); background: var(--bg-soft); }

.navbar-toggler { border: 1px solid var(--border-2); font-size: 1.1rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ════════════════════════════════════════ HERO */
.hero { position: relative; overflow: hidden; padding-top: 1rem; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--brand-50) 0%, transparent 70%);
  z-index: 0;
}

.hero-intro { max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: var(--radius-pill);
  border: 1px solid var(--brand-100); background: var(--brand-50);
  color: var(--brand-700); font-size: .78rem; font-weight: 700;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; }
.hero-title .word.brand { color: var(--brand-600); }
.hero-sub { font-size: 1.05rem; color: var(--text-3); font-weight: 500; max-width: 560px; margin-left: auto; margin-right: auto; }

.hero-card-wrap { max-width: 720px; }

.upload-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.drop-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--brand-400); background: var(--brand-50); }

.drop-zone-icon-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.pulse-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(239,68,68,.25);
  animation: pulsering 2s ease-out infinite;
}
@keyframes pulsering {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.drop-zone-icon {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: var(--shadow-brand);
}

.trust-row { margin-top: .25rem; }
.trust-pill {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-soft); padding: .65rem .4rem;
  font-size: .78rem; font-weight: 600; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.trust-pill i { color: var(--brand-600); }

/* ════════════════════════════════════════ SECTION HEADERS */
.section-header { max-width: 640px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600);
}
.section-header h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }

/* ════════════════════════════════════════ FEATURES */
.features-section { padding: 5rem 0; background: var(--bg-soft); }

.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-2); }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .88rem; color: var(--text-3); margin-bottom: 0; line-height: 1.65; }

/* ════════════════════════════════════════ PREMIUM / PRICING */
.premium-section { padding: 5rem 0; background: var(--bg); }

.price-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); padding: 1.75rem;
  display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price-card-popular { border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-100); }

.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-600); color: #fff;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .3rem .8rem; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: .3rem;
  box-shadow: var(--shadow-sm);
}

.price-days { font-size: .85rem; font-weight: 700; color: var(--text-3); }
.price-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; margin-top: .4rem; }
.price-amount .currency { font-size: 1.4rem; vertical-align: top; margin-right: .1rem; }
.price-note { font-size: .75rem; color: var(--text-4); margin-top: .3rem; margin-bottom: 1.2rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .6rem; font-size: .88rem; flex: 1; }
.price-list i { color: var(--brand-600); margin-right: .4rem; }

.compare-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.compare-head { padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.compare-head h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .2rem; }
.compare-table { font-size: .88rem; margin-bottom: 0; background: var(--bg); --bs-table-bg: var(--bg); }
.compare-table thead tr { background: var(--bg-soft); }
.compare-table th { font-weight: 700; padding: 1rem 1.5rem; border-bottom: none; background: var(--bg-soft); }
.compare-table td { padding: .85rem 1.5rem; vertical-align: middle; border-color: var(--border); background: var(--bg); }
.compare-table tbody tr:nth-child(even) td { background: var(--bg-soft); }
.compare-table .premium-col { font-weight: 700; color: var(--brand-700); background: var(--brand-100) !important; }
.compare-table th.premium-col { color: var(--brand-600); background: var(--brand-100) !important; }
[data-theme="dark"] .compare-table .premium-col { color: #ff9095; }

/* ════════════════════════════════════════ LINK CHECKER */
.linkchecker-section { padding: 3rem 0; }
.linkchecker-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem;
}
.linkchecker-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-600);
}
.linkchecker-input .input-group-text { background: var(--bg); border-color: var(--border-2); color: var(--text-3); }
.linkchecker-input .form-control { border-color: var(--border-2); }
.linkchecker-input .form-control:focus { box-shadow: 0 0 0 3px var(--brand-100); border-color: var(--brand-400); }

/* ════════════════════════════════════════ TESTIMONIALS */
.testimonials-section { padding: 4rem 0; background: var(--bg-soft); }
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.quote-icon { font-size: 1.6rem; color: var(--brand-200, var(--brand-100)); opacity: .6; }
.testimonial-card p { font-size: .92rem; margin: .75rem 0 1.25rem; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-name { font-size: .85rem; font-weight: 700; }
.author-role { font-size: .75rem; color: var(--text-4); }

/* ════════════════════════════════════════ FAQ */
.faq-section { padding: 5rem 0; background: var(--bg); }
.faq-accordion { max-width: 720px; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-md) !important; margin-bottom: .75rem; overflow: hidden; }
.accordion-button {
  font-weight: 600; font-size: .92rem; color: var(--text);
  background: var(--bg); padding: 1.1rem 1.3rem;
}
.accordion-button:not(.collapsed) { color: var(--brand-700); background: var(--brand-50); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--border); }
.accordion-button::after { width: 1rem; height: 1rem; background-size: 1rem; }
.accordion-body { font-size: .88rem; color: var(--text-3); line-height: 1.7; padding: 0 1.3rem 1.2rem; }

/* ════════════════════════════════════════ FOOTER */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }

.newsletter-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  margin-bottom: 3rem;
}
.newsletter-card h3 { font-size: 1.3rem; font-weight: 700; }
.newsletter-card .input-group-text { background: var(--bg-soft); border-color: var(--border-2); color: var(--text-3); }
.newsletter-card .form-control { border-color: var(--border-2); }
.newsletter-card .form-control:focus { box-shadow: 0 0 0 3px var(--brand-100); border-color: var(--brand-400); }

.footer-columns h4 { font-size: .82rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .85rem; color: var(--text-3); transition: color .15s; }
.footer-links a:hover { color: var(--brand-600); }
.footer-tagline { max-width: 260px; }

.social-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.social-btn:hover { background: var(--brand-50); color: var(--brand-600); }

.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  font-size: .75rem; color: var(--text-4); text-align: center;
}

@media (min-width: 576px) {
  .footer-bottom { flex-direction: row; justify-content: center; }
}

/* ════════════════════════════════════════ RESPONSIVE TWEAKS */
@media (max-width: 991.98px) {
  .contentInner {
    overflow-x: auto;
  }
}

@media (max-width: 767.98px) {
  .upload-card { padding: 1.1rem; }
  .drop-zone { padding: 2rem 1rem; }
  .linkchecker-card { padding: 1.5rem; }
  .form-panel { padding: 1.75rem 1.15rem !important; }
  .wrap { padding-left: 1rem !important; padding-right: 1rem !important; }
  .contact { padding: 48px 16px 32px !important; }
}
