/* ═══════════════════════════════════════════
   CLIENT PORTAL — add these styles to style.css
   (append to bottom of your existing file)
═══════════════════════════════════════════ */

/* ── Portal container ── */
.portal-box {
  max-width: 900px;  /* was 680px */
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 2.5rem;
}

.portal-error {
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.4);
  color: #e74c3c;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

/* ── Lookup form ── */
.delivery-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.delivery-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.3);
  color: #f0ede8;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: border-color 0.2s;
}

.delivery-input:focus {
  outline: none;
  border-color: #c9a84c;
}

.delivery-input::placeholder { color: rgba(240,237,232,0.3); }

.delivery-note {
  font-size: 0.8rem;
  color: rgba(240,237,232,0.45);
  text-align: center;
}

.delivery-note a { color: #c9a84c; text-decoration: none; }
.delivery-note a:hover { text-decoration: underline; }

/* ── Result header ── */
.portal-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.portal-client-name {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #f0ede8;
  margin: 0 0 0.2rem;
}

.portal-client-title,
.portal-client-company {
  font-size: 0.85rem;
  color: rgba(240,237,232,0.55);
  margin: 0.1rem 0;
}

/* ── Status badge ── */
.card-status {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pending  { background: rgba(180,120,40,0.2);  color: #d4a843; border: 1px solid rgba(212,168,67,0.3);  }
.status-ready    { background: rgba(39,174,96,0.15);   color: #27ae60; border: 1px solid rgba(39,174,96,0.3);   }
.status-ordered  { background: rgba(52,152,219,0.15);  color: #3498db; border: 1px solid rgba(52,152,219,0.3);  }
.status-shipped  { background: rgba(155,89,182,0.15);  color: #9b59b6; border: 1px solid rgba(155,89,182,0.3);  }

/* ── Card preview ── */
.card-preview-wrap {
  margin: 1.5rem 0;
  text-align: center;
}

.card-preview-img {
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.card-preview-placeholder {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 3rem 2rem;
  color: rgba(240,237,232,0.3);
  font-size: 0.9rem;
}

/* ── Portal actions ── */
.portal-actions {
  text-align: center;
  margin-bottom: 1.5rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(201,168,76,0.5);
  color: #c9a84c;
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  border-color: #c9a84c;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(240,237,232,0.15);
  color: rgba(240,237,232,0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.btn-ghost:hover { border-color: #c9a84c; color: #c9a84c; }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.75rem; }

.btn-full { width: 100%; text-align: center; margin-top: 1rem; }

/* ── Print request form ── */
.print-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  color: rgba(201,168,76,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.print-divider::before,
.print-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.15);
}

.print-description {
  font-size: 0.88rem;
  color: rgba(240,237,232,0.5);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.print-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.print-option-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  margin-bottom: 0.4rem;
}

.print-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  color: #f0ede8;
  padding: 0.6rem 0.75rem;
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c9a84c' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  transition: border-color 0.2s;
}

.print-select:focus { outline: none; border-color: #c9a84c; }
.print-select option { background: #1a1410; }

.print-note {
  font-size: 0.78rem;
  color: rgba(240,237,232,0.3);
  text-align: center;
  margin-top: 0.75rem;
}

/* ── Print success ── */
.print-success {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(39,174,96,0.15);
  border: 1px solid rgba(39,174,96,0.4);
  color: #27ae60;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.print-success h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #f0ede8;
  margin-bottom: 0.5rem;
}

.print-success p {
  font-size: 0.88rem;
  color: rgba(240,237,232,0.5);
  line-height: 1.6;
}

/* ── Section sub ── */
.section-sub {
  font-size: 0.9rem;
  color: rgba(240,237,232,0.45);
  max-width: 500px;
  margin: 0.75rem auto 2rem;
  line-height: 1.7;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .delivery-form { flex-direction: column; }
  .print-options { grid-template-columns: 1fr; }
  .portal-result-header { flex-direction: column; gap: 0.75rem; }
  .portal-box { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════
   DELIVERABLES GRID
═══════════════════════════════════════════ */

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));  /* was 280px */
  gap: 2rem;  /* was 1.5rem */
  margin-top: 1.5rem;
}

.deliverable-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deliverable-header {
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding-bottom: 0.75rem;
}

.deliverable-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c9a84c;
  display: block;
  margin-bottom: 0.25rem;
}

.deliverable-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #f0ede8;
  margin: 0;
}

.deliverable-preview {
  flex: 1;
}

.deliverable-img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid rgba(201,168,76,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: block;
}

.deliverable-placeholder {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(201,168,76,0.2);
  border-radius: 3px;
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(240,237,232,0.3);
  font-size: 0.85rem;
}

.deliverable-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.deliverable-print {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 1rem;
}

.print-success-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(39,174,96,0.1);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: 3px;
  padding: 0.6rem 0.85rem;
  color: #27ae60;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.success-check {
  font-size: 1rem;
}

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