/* Dilekçe Plus — kullanıcı / uzman paneli */

.dp-shell {
  width: min(1200px, 96%);
  margin: 0 auto 3rem;
}

/* —— Profesyonel üst alan —— */
.dp-hero--pro {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.15rem;
  padding: 1.15rem 1.2rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background:
    linear-gradient(135deg, rgba(201, 169, 98, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.92), rgba(8, 10, 14, 0.78));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.dp-hero--compact {
  grid-template-columns: 1fr;
  padding: 1rem 1.1rem;
}

.dp-hero--compact .dp-flow {
  display: none;
}

.dp-hero--compact .dp-status-bar {
  margin-top: 0.65rem;
}

@media (min-width: 820px) {
  .dp-hero--pro {
    grid-template-columns: 1fr minmax(220px, 280px);
    align-items: start;
  }
}

.dp-hero-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dp-hero--pro h1 {
  margin: 0;
}

.dp-hero-lead {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  line-height: 1.55;
  font-size: 0.9rem;
  color: var(--theme-muted, #c8c2b6);
}

.dp-hero-guide {
  appearance: none;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c9a962;
  background: rgba(201, 169, 98, 0.14);
  cursor: help;
}

.dp-hero-guide:hover {
  background: rgba(201, 169, 98, 0.26);
}

.dp-flow {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 0.45rem;
}

.dp-flow li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d1d5db;
}

.dp-flow li span {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(180deg, #dbbc74, #a8883e);
}

.dp-hint--tight {
  margin-top: 0.25rem !important;
}

.dp-stage-head,
.dp-form-head,
.dp-list-head {
  margin-bottom: 0.85rem;
}

.dp-stage-head h2,
.dp-list-head h2 {
  margin: 0;
}

.dp-form-head h2 {
  margin: 0.15rem 0 0;
}

.dp-fieldset-lead {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--theme-muted, #9ca3af);
}

.dp-file-drop {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(201, 169, 98, 0.35);
  background: rgba(201, 169, 98, 0.04);
}

.dp-file-drop input[type="file"] {
  width: 100%;
  font-size: 0.82rem;
  color: var(--theme-muted, #c8c2b6);
}

.dp-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e8d5a3;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.28);
}

.dp-item-id {
  font-weight: 600;
  color: var(--theme-muted, #9ca3af);
}

.dp-cf-tag {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.dp-card--list {
  padding-top: 1rem;
}

.dp-hero {
  margin: 1.1rem 0 1.25rem;
}

.dp-hero h1 {
  margin: 0 0 0.45rem;
  font-family: Manrope, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--theme-ink, #f2efe8);
}

.dp-hero p {
  margin: 0;
  color: var(--theme-muted, #c8c2b6);
  line-height: 1.55;
  font-size: 0.92rem;
}

.dp-disclaimer {
  margin: 0 0 1rem;
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 98, 0.22);
  background: rgba(201, 169, 98, 0.06);
  color: #c8c2b6;
  font-size: 0.8rem;
  line-height: 1.5;
}

.dp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}

.dp-tabs--pill {
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dp-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--theme-muted, #9ca3af);
  border-radius: 0;
  padding: 0.55rem 1rem;
  margin-bottom: -1px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.dp-tabs--pill .dp-tab {
  margin-bottom: 0;
  border-bottom: 0;
  border-radius: 8px;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
}

.dp-tab:hover {
  color: #e5e7eb;
}

.dp-tabs--pill .dp-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dp-tab.is-active {
  background: transparent;
  color: #e8d5a3;
  border-bottom-color: #c9a962;
}

.dp-tabs--pill .dp-tab.is-active {
  border-bottom-color: transparent;
  color: #1a1408;
  background: linear-gradient(180deg, #dbbc74, #a8883e);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.dp-panel {
  display: none;
}

.dp-panel.is-active {
  display: block;
}

.dp-card {
  background: var(--theme-panel, rgba(8, 10, 14, 0.82));
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.dp-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--theme-ink, #f2efe8);
}

.dp-form label {
  display: block;
  margin: 0.7rem 0 0.3rem;
  color: var(--theme-ink, #f2efe8);
  font-size: 0.86rem;
  font-weight: 700;
}

.dp-form input,
.dp-form select,
.dp-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.68rem 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 18, 24, 0.85);
  color: #f2efe8;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-form input:focus,
.dp-form select:focus,
.dp-form textarea:focus {
  outline: none;
  border-color: rgba(201, 169, 98, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

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

.dp-form .dp-hint {
  margin: 0.35rem 0 0;
  color: var(--theme-muted, #9ca3af);
  font-size: 0.78rem;
}

.dp-fieldset {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid rgba(201, 169, 98, 0.16);
  border-radius: 10px;
  background: rgba(8, 12, 18, 0.4);
}

.dp-fieldset legend {
  padding: 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e8d5a3;
}

.dp-fieldset--critical {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.06);
}

.dp-fieldset--critical legend {
  color: #fb923c;
}

.dp-req {
  color: #f87171;
  font-weight: 700;
}

.dp-check-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--theme-ink, #e5e7eb);
  cursor: pointer;
}

.dp-check-row input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #22d3ee;
}

.dp-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.dp-choice {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 10px;
  background: rgba(8, 12, 18, 0.4);
  cursor: pointer;
}

.dp-choice:has(input:checked) {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
}

.dp-choice:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.dp-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dp-choice-title {
  font-weight: 700;
  color: var(--theme-ink, #e5e7eb);
}

.dp-choice-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--theme-muted, #9ca3af);
}

#dp-dosya-alanlari {
  margin-top: 0.85rem;
}

.dp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

@media (max-width: 720px) {
  .dp-form-grid,
  .dp-choice-grid {
    grid-template-columns: 1fr;
  }
}

.dp-upload-hints {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--theme-muted, #9ca3af);
  font-size: 0.78rem;
  line-height: 1.45;
}

.dp-kicker {
  margin: 0 0 0.28rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent, #c9a962);
}

.dp-case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 1.15rem;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: rgba(8, 10, 14, 0.45);
  font-size: 0.86rem;
  color: var(--theme-ink, #f2efe8);
}

.dp-case-meta[hidden] {
  display: none;
}

.dp-fact,
.dp-case-meta > div {
  margin: 0;
  padding: 0.8rem 0.95rem 0.85rem;
  border-bottom: 1px solid rgba(201, 169, 98, 0.14);
  border-right: 1px solid rgba(201, 169, 98, 0.14);
  min-width: 0;
}

.dp-case-meta dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-accent, #c9a962);
}

.dp-case-meta dd {
  margin: 0.28rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  color: var(--theme-ink, #f2efe8);
  font-weight: 600;
}

.dp-vaka-block {
  margin-bottom: 0.85rem;
}

.dp-vaka-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--theme-accent, #22d3ee);
}

.dp-brief {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
}

.dp-brief-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.18);
  background:
    linear-gradient(180deg, rgba(201, 169, 98, 0.07), transparent 2.4rem),
    rgba(6, 8, 12, 0.38);
}

.dp-brief-item.is-empty {
  opacity: 0.72;
  border-style: dashed;
}

.dp-brief-num {
  font-family: Manrope, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-accent, #c9a962);
  padding-top: 0.12rem;
}

.dp-brief-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--theme-ink, #f2efe8);
}

.dp-brief-item.is-empty .dp-vaka {
  color: var(--theme-muted, #9ca3af);
  font-style: italic;
  font-size: 0.84rem;
}

.dp-brief-item--flow {
  border-color: rgba(34, 211, 238, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), transparent 2.6rem),
    rgba(6, 10, 14, 0.42);
}

.dp-brief-item--flow .dp-brief-num {
  color: #67e8f9;
}

.dp-flow-lead {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--theme-muted, #9ca3af);
}

.dp-genel-akis-view.is-placeholder {
  color: var(--theme-muted, #9ca3af);
  font-style: italic;
  font-size: 0.86rem;
  line-height: 1.55;
}

.dp-genel-akis-form {
  margin-top: 0.15rem;
}

.dp-genel-akis-form textarea {
  min-height: 160px;
}

/* —— 3D dava dosyası coverflow (video stili) —— */
.dp-card--stage {
  overflow: visible;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(201, 169, 98, 0.1), transparent 55%),
    var(--theme-panel, rgba(8, 10, 14, 0.82));
}

.dp-coverflow {
  --dp-cf-index: 0;
  position: relative;
  margin: 0.65rem 0 0.25rem;
  padding: 1.1rem 2.75rem 0.85rem;
  min-height: 300px;
  perspective: 1200px;
  user-select: none;
}

.dp-cf-stage {
  position: relative;
  height: 300px;
  transform-style: preserve-3d;
}

.dp-cf-nav {
  position: absolute;
  top: 42%;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 98, 0.4);
  background: rgba(8, 12, 20, 0.85);
  color: #e8d5a3;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dp-cf-nav:hover {
  background: rgba(201, 169, 98, 0.16);
}

.dp-cf-nav.prev { left: 0.15rem; }
.dp-cf-nav.next { right: 0.15rem; }

.dp-cf-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(210px, 58vw);
  margin: 0;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, filter 0.4s ease;
  cursor: pointer;
  outline: none;
}

.dp-cf-card:focus-visible .dp-cf-frame {
  box-shadow: 0 0 0 2px #22d3ee, 0 18px 40px rgba(0, 0, 0, 0.45);
}

.dp-cf-frame {
  position: relative;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #1a2332 0%, #0c121c 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.35s ease;
}

.dp-cf-card.is-center .dp-cf-frame {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 169, 98, 0.35);
}

.dp-cf-card.is-center:hover .dp-dossier,
.dp-cf-card.is-selected .dp-dossier {
  transform: translateY(-28px) scale(1.12) rotateX(8deg);
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.55));
}

.dp-cf-card.is-center:hover .dp-cf-caption,
.dp-cf-card.is-selected .dp-cf-caption {
  transform: translateY(-8px);
  color: #e8d5a3;
}

.dp-dossier {
  position: absolute;
  left: 50%;
  bottom: 4.4rem;
  width: 118px;
  height: 148px;
  margin-left: -59px;
  transform-origin: 50% 100%;
  transform: translateY(0) scale(1) rotateX(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  z-index: 2;
}

.dp-dossier-body {
  position: absolute;
  inset: 18px 0 0;
  border-radius: 4px 4px 6px 6px;
  background: linear-gradient(145deg, #e8edf5 0%, #c5d0e0 45%, #9eafc4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    6px 10px 0 rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(30, 41, 59, 0.25);
}

.dp-dossier-tab {
  position: absolute;
  top: 0;
  left: 14px;
  width: 48px;
  height: 22px;
  border-radius: 6px 10px 0 0;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  border: 1px solid rgba(30, 41, 59, 0.2);
  border-bottom: none;
  z-index: 1;
}

.dp-dossier-spine {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 0;
  width: 14px;
  border-radius: 4px 0 0 6px;
  background: var(--dp-accent, #22d3ee);
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.15);
}

.dp-dossier-label {
  position: absolute;
  left: 22px;
  right: 10px;
  top: 36px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
  line-height: 1.25;
}

.dp-dossier-seal {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7, transparent 45%), var(--dp-accent, #22d3ee);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0.9;
}

.dp-dossier-papers {
  position: absolute;
  left: 20px;
  right: 8px;
  top: 10px;
  height: 14px;
  border-radius: 2px;
  background: #fff;
  box-shadow:
    0 4px 0 #f1f5f9,
    0 8px 0 #e2e8f0;
  opacity: 0.95;
  z-index: 0;
}

.dp-cf-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 3;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2e8f0;
  padding: 0 0.55rem;
  line-height: 1.25;
  transition: transform 0.35s ease, color 0.35s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.dp-cf-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.dp-cf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
}

.dp-cf-dot.is-on {
  background: #c9a962;
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.22);
}

.dp-form-reveal {
  animation: dp-reveal 0.45s ease;
}

.dp-form-reveal[hidden] {
  display: none !important;
}

.dp-selected-desc {
  margin: 0 0 0.85rem;
  color: var(--theme-muted, #9ca3af);
  font-size: 0.88rem;
  line-height: 1.5;
}

@keyframes dp-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .dp-coverflow {
    padding: 1.1rem 2.4rem 0.85rem;
    min-height: 300px;
  }
  .dp-cf-stage { height: 270px; }
  .dp-cf-frame { height: 220px; }
  .dp-dossier {
    width: 100px;
    height: 126px;
    margin-left: -50px;
    bottom: 4rem;
  }
}

.dp-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(180deg, #dbbc74, #a8883e);
  color: #1a1408;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(168, 136, 62, 0.25);
}

.dp-btn:hover {
  filter: brightness(1.05);
}

.dp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dp-btn-ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(201, 169, 98, 0.35);
  color: #e8d5a3;
}

.dp-error {
  margin: 0.65rem 0 0;
  color: #f87171;
  font-size: 0.86rem;
  font-weight: 600;
}

.dp-ok {
  margin: 0.65rem 0 0;
  color: #86efac;
  font-size: 0.86rem;
  font-weight: 600;
}

.dp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.dp-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.22));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dp-item:hover {
  border-color: rgba(201, 169, 98, 0.38);
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.07), rgba(0, 0, 0, 0.2));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.dp-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.dp-item-title {
  font-weight: 800;
  color: var(--theme-ink, #f2efe8);
  font-size: 0.92rem;
}

.dp-item-meta {
  color: var(--theme-muted, #9ca3af);
  font-size: 0.78rem;
}

.dp-status {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.dp-status--inceleniyor,
.dp-status--dilekce_hazirlaniyor {
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
}

.dp-status--bilgi_bekleniyor {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}

.dp-status--tamamlandi {
  background: rgba(134, 239, 172, 0.16);
  color: #86efac;
}

.dp-status--kapatildi {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.dp-detail-nav {
  margin-bottom: 0.35rem;
}

.dp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--theme-muted, #9ca3af);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dp-back-link:hover {
  color: #e8d5a3;
}

.dp-detail-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.dp-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.dp-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dp-chip-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-muted, #9ca3af);
}

.dp-hero--file {
  margin-bottom: 0.85rem;
}

.dp-staff-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .dp-staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dp-staff-grid .dp-staff-block:last-child {
    grid-column: 1 / -1;
  }
}

.dp-staff-block {
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.dp-staff-block-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #67e8f9;
}

.dp-status-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.dp-status-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a8883e, #dbbc74);
}

.dp-empty {
  color: var(--theme-muted, #9ca3af);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.dp-detail-grid {
  display: grid;
  gap: 1.1rem;
}

.dp-card--case,
.dp-card--correspondence {
  padding: 1.2rem 1.2rem 1.25rem;
}

.dp-card--case {
  order: 1;
  border-color: rgba(201, 169, 98, 0.32);
  background:
    linear-gradient(180deg, rgba(201, 169, 98, 0.1), rgba(8, 12, 18, 0.55) 8rem),
    rgba(8, 12, 18, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.dp-card--correspondence {
  order: 2;
  border-color: rgba(34, 211, 238, 0.38);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(8, 12, 18, 0.55) 8rem),
    rgba(8, 12, 18, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  min-height: 36rem;
  display: flex;
  flex-direction: column;
}

.dp-card--correspondence .dp-chat {
  flex: 1 1 auto;
}

.dp-case-head,
.dp-corr-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0 0 1.05rem;
  padding-bottom: 0.95rem;
}

.dp-case-head {
  border-bottom: 1px solid rgba(201, 169, 98, 0.22);
}

.dp-corr-head {
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
}

.dp-case-head h2,
.dp-corr-head h2,
.dp-card--case .dp-case-head h2,
.dp-card--correspondence .dp-corr-head h2 {
  margin: 0 0 0.32rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.dp-case-head-copy,
.dp-corr-head-copy {
  min-width: 0;
  flex: 1;
}

.dp-case-icon,
.dp-corr-icon {
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.dp-case-icon {
  color: #e8d5a3;
  background: rgba(201, 169, 98, 0.14);
  border: 1px solid rgba(201, 169, 98, 0.32);
}

.dp-corr-icon {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.dp-case-lead,
.dp-corr-lead {
  margin: 0;
  color: var(--theme-muted, #9ca3af);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 38rem;
}

.dp-corr-applicant {
  margin: 0.55rem 0 0;
  color: var(--theme-text, #e5e7eb);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.dp-corr-applicant-link {
  display: inline;
  vertical-align: baseline;
  color: inherit;
  font: inherit;
  font-weight: 800;
}

.dp-corr-applicant-link .author-name,
.dp-corr-applicant-name {
  color: #67e8f9;
  font-weight: 800;
}

.dp-corr-applicant-link:hover .author-name {
  color: #a5f3fc;
  text-decoration: underline;
}

.dp-case-badge,
.dp-corr-badge {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dp-case-badge {
  color: #e8d5a3;
  background: rgba(201, 169, 98, 0.14);
  border: 1px solid rgba(201, 169, 98, 0.3);
}

.dp-corr-badge {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.dp-exhibits {
  margin-top: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 98, 0.18);
}

.dp-exhibits-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.dp-exhibits-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--theme-ink, #f2efe8);
}

.dp-exhibits-count {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-accent, #c9a962);
}

.dp-docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.dp-exhibit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.dp-exhibit.is-final {
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(134, 239, 172, 0.06);
}

.dp-exhibit-ek {
  min-width: 3.4rem;
  padding: 0.32rem 0.45rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1408;
  background: var(--brand-accent, #c9a962);
  align-self: start;
}

.dp-exhibit.is-final .dp-exhibit-ek {
  background: rgba(134, 239, 172, 0.85);
  color: #052e16;
}

.dp-exhibit-caption {
  margin: 0 0 0.28rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--theme-ink, #f2efe8);
  line-height: 1.35;
}

.dp-ek-captions {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.dp-ek-caption-row {
  display: grid;
  gap: 0.28rem;
  margin: 0;
}

.dp-ek-caption-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--theme-muted, #9ca3af);
}

.dp-ek-caption-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 18, 24, 0.85);
  color: #f2efe8;
  font: inherit;
  font-size: 0.82rem;
}

.dp-optional {
  font-weight: 600;
  color: var(--theme-muted, #9ca3af);
  font-size: 0.78rem;
}

.dp-exhibit-kind {
  min-width: 3.1rem;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0b1220;
  background: var(--brand-accent, #c9a962);
}

.dp-exhibit-body {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.dp-exhibit-body a,
.dp-docs a {
  color: var(--theme-accent, #22d3ee);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  word-break: break-word;
}

.dp-docs a:hover,
.dp-exhibit-body a:hover {
  text-decoration: underline;
}

.dp-exhibit-meta {
  font-size: 0.72rem;
  color: var(--theme-muted, #9ca3af);
}

.dp-upload-box {
  margin-top: 0.85rem;
  padding: 0.9rem 0.95rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(201, 169, 98, 0.35);
  background: rgba(201, 169, 98, 0.05);
}

.dp-upload-box label {
  margin-top: 0;
}

.dp-chat-empty {
  display: grid;
  gap: 0.32rem;
  place-items: center;
  text-align: center;
  min-height: 12rem;
  padding: 1.6rem 1.1rem;
  color: var(--theme-muted, #9ca3af);
  font-size: 0.86rem;
}

.dp-chat-empty strong {
  color: var(--theme-ink, #e5e7eb);
  font-size: 1rem;
}

.dp-corr-compose-label {
  display: block;
  margin: 0.15rem 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #67e8f9;
}

.dp-corr-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
}

.dp-corr-compose .dp-btn {
  margin-top: 0;
  min-height: 3rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.dp-ops[hidden] {
  display: none !important;
}

.dp-ops-head {
  margin: 1.15rem 0 0.65rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(34, 211, 238, 0.18);
}

.dp-ops-head h2 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.dp-ops-head .dp-kicker {
  color: #67e8f9;
}

@media (min-width: 880px) {
  .dp-detail-grid {
    grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.18fr);
    align-items: start;
  }

  .dp-fact:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .dp-case-meta > .dp-fact:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 879px) {
  .dp-case-meta {
    grid-template-columns: 1fr;
  }

  .dp-fact,
  .dp-case-meta > div {
    border-right: 0;
  }

  .dp-fact:last-child {
    border-bottom: 0;
  }

  .dp-case-head,
  .dp-corr-head {
    flex-wrap: wrap;
  }

  .dp-case-badge,
  .dp-corr-badge {
    margin-left: 3.35rem;
  }

  .dp-corr-compose {
    grid-template-columns: 1fr;
  }
}

.dp-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0.35rem 0 0.85rem;
  color: var(--theme-muted, #9ca3af);
  font-size: 0.82rem;
}

.dp-vaka {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  color: var(--theme-ink, #e8e4dc);
  font-size: 0.92rem;
}

.dp-chat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 32rem;
  max-height: min(78vh, 52rem);
  overflow: auto;
  padding: 1rem 0.9rem 1.05rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8, 16, 24, 0.55), rgba(0, 0, 0, 0.38));
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (min-width: 880px) {
  .dp-detail-grid .dp-chat {
    min-height: 38rem;
    max-height: min(82vh, 56rem);
  }
}

@media (max-width: 879px) {
  .dp-chat {
    min-height: 28rem;
    max-height: min(72vh, 44rem);
  }
}

.dp-chat-day {
  align-self: center;
  margin: 0.15rem 0 0.1rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dp-bubble {
  max-width: 86%;
  padding: 0.7rem 0.82rem 0.75rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.dp-bubble.is-mine {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.24), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #e0f7fa;
}

.dp-bubble.is-other {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.dp-bubble.is-staff {
  border-color: rgba(201, 169, 98, 0.32);
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.16), rgba(201, 169, 98, 0.06));
}

.dp-bubble-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  margin-bottom: 0.38rem;
  font-size: 0.7rem;
  color: rgba(224, 247, 250, 0.78);
  font-weight: 700;
}

.dp-bubble-time {
  margin-left: auto;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(156, 163, 175, 0.95);
}

.dp-bubble-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.dp-bubble-meta .dp-chat-author {
  display: inline;
  vertical-align: baseline;
  color: inherit;
  font: inherit;
  font-weight: 800;
}

.dp-bubble-meta .dp-chat-author .author-name {
  color: inherit;
  font-weight: 800;
}

.dp-bubble-meta .dp-chat-author:hover .author-name {
  color: #67e8f9;
  text-decoration: underline;
}

.dp-bubble-role {
  display: inline-block;
  margin-left: 0;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.22);
  color: #e8d5a3;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.dp-bubble.is-file {
  border-style: solid;
}

.dp-bubble-file,
.dp-bubble-file-card {
  display: grid;
  gap: 0.18rem;
}

.dp-bubble-file-card {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(34, 211, 238, 0.28);
}

.dp-bubble-file-caption {
  font-size: 0.72rem;
  color: var(--theme-muted, #9ca3af);
}

.dp-bubble-file-name {
  font-weight: 700;
  word-break: break-all;
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dp-chat-form {
  margin-top: 0.9rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(8, 16, 24, 0.45);
}

.dp-chat-form textarea {
  min-height: 96px;
  resize: vertical;
}

.dp-chat-form .dp-hint {
  margin: 0.45rem 0 0;
}

.dp-chat-locked {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.dp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.dp-actions .dp-btn {
  margin-top: 0;
}

.dp-staff-only[hidden],
.dp-panel[hidden] {
  display: none !important;
}
