/* === General Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; background: #f8f9fa; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Header === */
.header { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 45px; margin-right: 0.5rem; }
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.5rem; }
.logo-text .valiant { color: #2c5aa0; }
.logo-text .writers { color: #ff6600; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: #ff6600; }
.cta-button { background: #2c5aa0; color: #fff; padding: 0.6rem 1.2rem; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background 0.3s; }
.cta-button:hover { background: #1e3d6f; }
.signin-btn { margin-right: 1rem; padding: 0.5rem 1rem; border: 1px solid #2c5aa0; border-radius: 5px; color: #2c5aa0; text-decoration: none; font-weight: 600; transition: background 0.3s, color 0.3s; }
.signin-btn:hover { background: #2c5aa0; color: #fff; }

/* === Dropdown === */
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: 0.3s; padding: 1rem; z-index: 999;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-dropdown { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 2rem; min-width: 420px; }
.mega-dropdown h5 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.8rem; color: #2c5aa0; border-bottom: 2px solid #f0f0f0; padding-bottom: 0.3rem; }
.dropdown-column { display: flex; flex-direction: column; gap: 0.5rem; }
.dropdown-item { display: block; padding: 6px 10px; color: #333; text-decoration: none; font-size: 0.95rem; border-radius: 4px; transition: background 0.2s, color 0.2s; }
.dropdown-item:hover { background: #f8f9fa; color: #ff6600; }

/* === Hero === */
.hero { background: linear-gradient(135deg, #2c5aa0 0%, #ff6600 100%); color: #fff; padding: 4rem 0; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero-text h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero-text p { font-size: 1.1rem; margin-bottom: 1rem; }
.trust-badges { font-size: 0.9rem; margin-top: 1rem; }
.trust-badges i { margin-right: 5px; color: #ff6600; background: #fff; border-radius: 50%; padding: 3px; }

/* === Quick Order Box === */
.quick-order {
  background: #fff; padding: 2rem; border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  max-width: 380px; margin-left: auto;
}
.quick-order-form .form-group { margin-bottom: 1rem; }
.quick-order-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; color: #333; }
.quick-order-form select, .quick-order-form input {
  width: 100%; padding: 0.7rem; border: 1px solid #ccc;
  border-radius: 6px; font-size: 1rem;
}
.quick-order-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.price-box { margin: 1rem 0; background: #f8f9fa; border-radius: 6px; padding: 1.2rem; text-align: center; }
.price-box .price { font-size: 1.8rem; font-weight: 700; color: #2c5aa0; margin-bottom: 0.2rem; }
.price-box small { color: #666; font-size: 0.9rem; }
.quick-order .order-btn {
  width: 100%; background: #ff6600; color: #fff; padding: 1rem;
  font-size: 1.1rem; font-weight: bold; border: none; border-radius: 6px;
  cursor: pointer; transition: background 0.3s; margin-top: 0.8rem;
}
.quick-order .order-btn:hover { background: #e55a00; }

/* === Services === */
.services { padding: 4rem 0; background: #fff; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 2rem; font-family: 'Montserrat', sans-serif; color: #2c5aa0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: #f8f9fa; padding: 2rem; text-align: center; border-top: 4px solid #2c5aa0; border-radius: 8px; transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); }
.service-card i { font-size: 2.2rem; color: #ff6600; margin-bottom: 1rem; }

/* === How It Works === */
.how-it-works { padding: 4rem 0; background: #f8f9fa; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step-card {
  background: #fff; padding: 1.5rem; border-radius: 8px; border-left: 4px solid #ff6600;
  text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.step-number {
  background: #2c5aa0; color: #fff; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; margin: 0 auto 0.8rem; font-weight: 700;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #2c5aa0; }

/* === Pricing === */
.pricing { padding: 4rem 0; background: #fff; }
.pricing-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.pricing-card {
  background: #f8f9fa; padding: 2rem; border-radius: 10px; text-align: center;
  border: 1px solid #e5e7eb; flex: 1; max-width: 300px;
  transition: transform 0.3s, border-color 0.3s;
}
.pricing-card:hover { transform: translateY(-5px); border-color: #ff6600; }
.pricing-card .price { font-size: 2rem; font-weight: bold; color: #ff6600; margin: 0.5rem 0; }
.pricing-card ul { list-style: none; margin: 1rem 0; padding: 0; }
.pricing-card li { margin: 0.4rem 0; }
.pricing-card.featured { border: 2px solid #ff6600; }

/* === Testimonials === */
.testimonials { padding: 4rem 0; background: #f8f9fa; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1100px; margin: 0 auto; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: #fff; padding: 1.5rem; border-radius: 12px;
  border: 1px solid #e0e0e0; box-shadow: 0 2px 8px rgba(44,90,160,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial:hover { transform: translateY(-5px); box-shadow: 0 6px 18px rgba(44,90,160,0.25); }
.testimonial p { font-style: italic; font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 1.2rem; }
.client-info { display: flex; align-items: center; gap: 0.8rem; }
.client-initial {
  background: #ff6600; color: #fff; font-weight: 700; border-radius: 50%;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-size: 1rem;
}
.client-name { font-weight: 700; color: #2c5aa0; font-size: 1.05rem; margin: 0; }
.client-role { font-size: 0.85rem; color: #777; }

/* === Order Page === */
.order-page { padding: 3rem 0; }
.order-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.order-form { background: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.15); color: #333; }
.step { display: none; }
.step.active { display: block; }

/* Progress Bar */
.progressbar { display: flex; justify-content: space-between; margin-bottom: 2rem; position: relative; }
.progress-step { text-align: center; flex: 1; position: relative; }
.progress-step p { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: #333; }
.progress-step::before {
  content: ""; display: block; margin: 0 auto;
  width: 30px; height: 30px; background: #ccc; border-radius: 50%;
}
.progress-step::after {
  content: ""; position: absolute; top: 15px; left: 50%;
  width: 100%; height: 4px; background: #ccc; z-index: -1;
}
.progress-step.active::before { background: #2c5aa0; }
.progress-step.finish::before { background: #ff6600; }
.progress-step.active ~ .progress-step::after { background: #ff6600; }

/* Form Groups */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin: 0.5rem 0; font-weight: 600; }
.order-form select, .order-form input, .order-form textarea { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 5px; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
textarea { resize: vertical; min-height: 100px; }

/* Options */
.service-options, .level-options, .spacing-options, .format-options { display: flex; flex-wrap: wrap; gap: 1rem; }
.service-options label, .level-options label, .spacing-options label, .format-options label {
  background: #f8f9fa; padding: 0.5rem 1rem; border-radius: 5px; border: 1px solid #ddd; cursor: pointer;
}
.service-options input, .level-options input, .spacing-options input, .format-options input { margin-right: 0.4rem; }

/* Buttons */
.order-btn, .next-btn, .back-btn { margin-top: 1rem; padding: 0.9rem; font-size: 1rem; font-weight: bold; border: none; border-radius: 5px; cursor: pointer; }
.order-btn, .next-btn { background: #ff6600; color: #fff; }
.order-btn:hover, .next-btn:hover { background: #e55a00; }
.back-btn { background: #2c5aa0; color: #fff; }
.back-btn:hover { background: #1e3d6f; }

/* Auth Tabs */
.auth-tabs { display: flex; margin-bottom: 1rem; }
.auth-tab { flex: 1; padding: 0.6rem; border: 1px solid #ccc; background: #f0f0f0; cursor: pointer; font-weight: 600; text-align: center; }
.auth-tab.active { background: #2c5aa0; color: #fff; border-color: #2c5aa0; }
.auth-pane { display: none; }
.auth-pane.active { display: block; }

/* Payment Cards */
.secure-payment { margin-top: 1rem; }
.payment-cards { display: flex; flex-direction: column; gap: 1rem; }
.pay-card { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; cursor: pointer; transition: box-shadow 0.3s; }
.pay-card:hover { box-shadow: 0 4px 12px rgba(44,90,160,0.25); }
.pay-card i { font-size: 1.3rem; color: #2c5aa0; }
.chev { color: #ff6600; }
/* === Payment Section Styling === */
.secure-payment {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.15);
  margin-top: 1rem;
}

.secure-payment h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2c5aa0;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fc;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  border: 1px solid #e2e6ef;
  transition: all 0.25s ease;
}

.pay-card:hover {
  background: #eef3fb;
  box-shadow: 0 3px 10px rgba(44, 90, 160, 0.1);
}

.pay-card i {
  font-size: 1.4rem;
  color: #2c5aa0;
}

.pay-card.alt i {
  color: #ff6600;
}

.pay-card h5 {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin: 0;
}

.pay-card p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

.card-box {
  margin-top: 1.5rem;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e3e6ed;
  box-shadow: 0 2px 8px rgba(44, 90, 160, 0.08);
}

.card-label {
  font-weight: 600;
  color: #2c5aa0;
  display: block;
  margin-bottom: 0.5rem;
}

.stripe-field {
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
}

.stripe-field:focus-within {
  border-color: #2c5aa0;
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

#card-errors {
  color: #ff4d4f;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

#payment-status {
  margin-top: 0.8rem;
  font-weight: 600;
  color: #28a745;
}


/* Order Summary */
.order-summary { background: #fff; padding: 1.5rem; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.order-summary h4 { margin-bottom: 1rem; color: #2c5aa0; }
.order-summary ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.order-summary li { margin: 0.5rem 0; }
.promo-row { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; }
.promo-field { display: none; margin-bottom: 1rem; }
.promo-field.show { display: flex; gap: 0.5rem; }
.promo-msg { display: block; margin-top: 0.3rem; font-size: 0.85rem; color: #ff6600; }
.freebies h5 { margin: 0.8rem 0 0.3rem; }

/* Switch Toggle */
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { display: none; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background: #2c5aa0; }
input:checked + .slider:before { transform: translateX(20px); }

/* File Upload List */
#fileList { margin-top: 0.5rem; font-size: 0.9rem; color: #555; }
#fileList li { margin-bottom: 0.3rem; }

/* === Footer === */
.footer { background: #1e3d6f; color: #fff; padding: 2.5rem 0; font-family: 'Open Sans', sans-serif; text-align: left; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 1.5rem; }
.footer-column h4 { margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; color: #ff6600; }
.footer-column p, .footer-column ul li, .footer-column a { font-size: 0.95rem; color: #e0e0e0; line-height: 1.6; }
.footer a { color: #ffcc99; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.contact-info i { margin-right: 8px; color: #ffcc99; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); text-align: center; padding-top: 1rem; font-size: 0.85rem; color: #ccc; }

/* === Responsive === */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .quick-order { margin: 2rem auto 0; }
  .pricing-grid { flex-direction: column; align-items: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: 1fr; }
}
/* === Client Dashboard === */
.dashboard { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; padding: 2rem 0; }
.dash-sidebar {
  background:#0e1d33; color:#fff; border-radius:12px; padding:1rem; position: sticky; top: 90px; height: fit-content;
}
.dash-brand { display:flex; align-items:center; gap:.6rem; font-family:'Montserrat',sans-serif; font-weight:700; margin-bottom:.8rem; }
.dash-brand i{color:#ff6600;}
.dash-nav { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.25rem; }
.dash-nav li button, .dash-nav li a{
  width:100%; text-align:left; background:transparent; border:none; color:#d9e3f0; padding:.65rem .75rem; border-radius:8px; cursor:pointer;
  display:flex; align-items:center; gap:.6rem; font-weight:600;
}
.dash-nav li button:hover, .dash-nav li a:hover{ background:#132746; color:#fff; }
.dash-nav li.active button{ background:#1a345d; color:#fff; }
.pill{ background:#2c5aa0; color:#fff; font-size:.75rem; padding:.1rem .45rem; border-radius:999px; margin-left:auto; }
.pill-purple{ background:#7b6ef6; }
.sidebar-cta{ margin-top:1rem; width:100%; background:#ff6600; color:#fff; border:none; padding:.7rem; border-radius:8px; font-weight:700; cursor:pointer; }
.sidebar-cta:hover{ background:#e55a00; }

.dash-main { display:flex; flex-direction:column; gap:1rem; }
.dash-filters { display:grid; grid-template-columns: repeat(4, minmax(180px,1fr)); gap:1rem; }
.dash-filters .field label{ display:block; font-weight:700; margin-bottom:.25rem; color:#2c5aa0; }
.dash-filters .field select{ width:100%; padding:.6rem; border:1px solid #e5e7eb; border-radius:8px; }
.dash-filters .search{ display:flex; align-items:center; gap:.5rem; background:#fff; border:1px solid #e5e7eb; border-radius:999px; padding:.4rem .8rem; }
.dash-filters .search input{ border:none; outline:none; width:100%; }

.card, .order-card {
  background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:1rem; box-shadow:0 2px 10px rgba(44,90,160,.08);
}
.card-stack{ display:flex; flex-direction:column; gap:.8rem; }

.order-card header{
  display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:.6rem;
}
.order-title{ font-weight:800; font-family:'Montserrat',sans-serif; color:#1f2a44; }
.order-sub{ color:#6b7280; font-size:.9rem; }
.badge{ padding:.25rem .55rem; border-radius:999px; font-weight:700; font-size:.75rem; }
.badge.in_progress{ background:#e6f2ff; color:#2c5aa0; }
.badge.submitted{ background:#efe9ff; color:#7b6ef6; }
.badge.revision{ background:#fff1d6; color:#b45309; }
.badge.completed{ background:#e8f7f0; color:#0f7b47; }
.badge.unpaid{ background:#ffe8ea; color:#b4232c; }

.order-meta{ display:grid; grid-template-columns: repeat(5, minmax(120px,1fr)); gap:.6rem; margin:.6rem 0; }
.order-meta .meta{
  background:#f8f9fa; border:1px solid #e5e7eb; border-radius:10px; padding:.6rem .7rem; display:flex; flex-direction:column; gap:.2rem;
}
.meta label{ font-size:.75rem; color:#6b7280; }
.meta strong{ color:#111827; }

.progress-row{ display:flex; align-items:center; gap:.8rem; }
.progress-bar{ flex:1; background:#e5e7eb; border-radius:999px; height:8px; overflow:hidden; }
.progress-bar > span{ display:block; height:100%; width:0%; background:#2c5aa0; transition:width .4s; }

.order-actions{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.6rem; }
.btn{ border:none; border-radius:8px; padding:.55rem .8rem; font-weight:700; cursor:pointer; }
.btn-primary{ background:#2c5aa0; color:#fff; }
.btn-primary:hover{ background:#1e3d6f; }
.btn-ghost{ background:#fff; border:1px solid #e5e7eb; }
.btn-ghost:hover{ background:#f5f6f8; }
.btn-danger{ background:#b4232c; color:#fff; }
.btn-danger:hover{ background:#8f1d24; }
.btn-success{ background:#0f7b47; color:#fff; }
.btn-success:hover{ background:#0b6138; }
.btn-warning{ background:#b45309; color:#fff; }
.btn-warning:hover{ background:#8b3f07; }
.btn-disabled{ opacity:.55; cursor:not-allowed; }

.file-row{ display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; }
.file-row a{ text-decoration:none; }
.file-pill{ background:#eef2ff; color:#1e3d6f; border-radius:999px; padding:.25rem .55rem; font-weight:700; font-size:.8rem; border:1px solid #cbd5e1; }

.uploader{ display:flex; gap:.5rem; align-items:center; }
.uploader input[type="file"]{ display:none; }
.uploader label{ border:1px dashed #cbd5e1; border-radius:8px; padding:.5rem .8rem; cursor:pointer; }
.uploader .hint{ color:#6b7280; font-size:.85rem; }

.msg-wrap{ display:flex; flex-direction:column; gap:.6rem; }
.msg-head{ display:flex; justify-content:space-between; align-items:center; }
.status-dot{ display:inline-block; width:10px; height:10px; border-radius:50%; background:#9ca3af; }
.status-dot.online{ background:#22c55e; }
.msg-thread{
  background:#f8f9fa; border:1px solid #e5e7eb; border-radius:10px; height:360px; overflow:auto; padding:.8rem; display:flex; flex-direction:column; gap:.5rem;
}
.bubble{ max-width:75%; padding:.55rem .75rem; border-radius:12px; }
.bubble.me{ align-self:flex-end; background:#2c5aa0; color:#fff; }
.bubble.them{ align-self:flex-start; background:#e5e7eb; color:#0b1220; }
.msg-form{ display:flex; gap:.6rem; }
.msg-form input{ flex:1; padding:.7rem; border:1px solid #e5e7eb; border-radius:8px; }

.files-table{ margin-top:.6rem; }
.files-table .row{ display:grid; grid-template-columns: 1fr 140px 140px 160px; gap:.5rem; padding:.5rem 0; border-bottom:1px solid #eef2f7; align-items:center; }
.files-table .row .muted{ color:#6b7280; font-size:.9rem; }

.settings-grid{ display:grid; grid-template-columns: repeat(3,minmax(220px,1fr)); gap:1rem; margin-top:.6rem; }
.settings-grid input, .settings-grid select{ width:100%; padding:.6rem; border:1px solid #e5e7eb; border-radius:8px; }

@media (max-width: 1000px){
  .dashboard{ grid-template-columns: 1fr; }
  .dash-sidebar{ position: static; }
  .dash-filters{ grid-template-columns: 1fr 1fr; }
  .order-meta{ grid-template-columns: 1fr 1fr; }
  .files-table .row{ grid-template-columns: 1fr 120px 120px; }
}
/* === Forgot Password & Modal === */
.forgot-wrap {
  text-align: right;
  margin-top: 0.6rem;
}

.forgot-wrap a {
  color: #2c5aa0;
  font-size: 0.9rem;
  text-decoration: none;
}

.forgot-wrap a:hover {
  text-decoration: underline;
}

/* Modal styling */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(44, 90, 160, 0.25);
  position: relative;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content h4 {
  color: #2c5aa0;
  margin-bottom: 0.5rem;
}

.modal-content p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.modal-content input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
}

.modal-content .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.5rem;
  color: #777;
  cursor: pointer;
}

.modal-content .close:hover {
  color: #ff6600;
}

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

/* --- Dashboard layout enhancements --- */
.dashboard {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

/* Sidebar styling */
.dash-sidebar {
  background: #0d1b2a;
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dash-sidebar .dash-brand {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.dash-sidebar ul li button,
.dash-sidebar a.logout {
  color: #fff;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0;
  cursor: pointer;
  transition: 0.2s;
}

.dash-sidebar ul li button:hover,
.dash-sidebar a.logout:hover {
  color: #f77f00;
}

.sidebar-cta {
  background: #f77f00;
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

/* Support message layout */
.msg-wrap {
  max-width: 800px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* === Client Dashboard Modern Layout (Replica of Reference) === */
.dashboard {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: #f9fbff;
  min-height: 100vh;
}

/* === Sidebar Styling === */
.dash-sidebar {
  background: linear-gradient(180deg, #0d1b2a 0%, #1b263b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 2rem;
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
  margin-top: 2px;
}

.badge.blue { background-color: #2c5aa0; }   /* for Services */
.badge.purple { background-color: #7e57c2; } /* for Resources */
/* === Highlighted Order Details Card === */
#detailsViewCard {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(44, 90, 160, 0.12);
  border: 1px solid #e5edf7;
  padding: 26px;
}

}#detailsViewCard .row {
  padding: 12px 0;
  border-bottom: 1px dashed #e6eef8;
}

#detailsViewCard .row:last-child {
  border-bottom: none;
}

#detailsViewCard .title h2 {
  font-weight: 800;
  font-size: 1.35rem;
  color: #1f2a44;
}
/* ===== Order Details: individual rounded rows ===== */

#detailsViewCard{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#detailsViewCard .grid{
  gap: 12px;
}

/* darker blue pill rows */
#detailsViewCard .row{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 16px;
  border-radius: 14px;

  background: #edf4ff;       /* 🔵 darker blue pill */
  border: 1px solid #dbe7ff;

  box-shadow: 0 2px 10px rgba(31, 42, 68, 0.06);
}

#detailsViewCard .row > span{
  font-size: 0.92rem;
  color: #64748b;
}

#detailsViewCard .row > b{
  font-weight: 700;
  color: #0f172a;
}

#detailsViewCard .pill{
  margin-left: 10px;
}
/* ===== Mobile responsiveness baseline ===== */
img { max-width: 100%; height: auto; }
html, body { overflow-x: hidden; }

.container { width: 100%; }
/* ===== Order Details (client) responsive ===== */
@media (max-width: 1024px){
  .main{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 14px;
  }
}

@media (max-width: 860px){
  /* turn fixed sidebar into top bar */
  .sidebar{
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    border-radius: 0;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    z-index: 999;
  }

  .sidebar .profile{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-bottom: none;
    text-align: left;
  }

  .sidebar nav{
    display: flex;
    gap: 6px;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    margin-left: 10px;
  }

  .sidebar nav a{
    padding: 8px 10px;
    border-radius: 10px;
    font-size: .9rem;
  }

  .sidebar .logout{
    display: none; /* optional: hide logout/order button on tiny screens */
  }

  /* main should start under sidebar */
  .main{
    margin-left: 0;
    padding-top: 14px;
  }
}

@media (max-width: 520px){
  /* the details grid becomes 1 column */
  #detailsViewCard .grid{
    grid-template-columns: 1fr;
  }

  /* files and message inputs stack */
  .file-toolbar{
    flex-direction: column;
    align-items: stretch;
  }
  .file-toolbar button,
  .file-toolbar input{
    width: 100%;
  }

  /* reduce card padding */
  .card{ padding: 16px; }
}
/* prevent long filenames/strings from breaking layout */
.file-item a, .file-item span, .row b{
  overflow-wrap: anywhere;
}

/* allow horizontal scroll when absolutely necessary */
.table-wrap, .orders-wrap{
  overflow-x: auto;
}
