:root {
  --ddmm-ink: #06070c;
  --ddmm-surface: rgba(17, 20, 30, .72);
  --ddmm-surface-strong: rgba(20, 25, 38, .9);
  --ddmm-line: rgba(255, 255, 255, .14);
  --ddmm-muted: #86868B;
  --ddmm-white: #FFFFFF;
  --ddmm-body: #F5F5F7;
  --ddmm-violet: #9f7cff;
  --ddmm-blue: #5da9ff;
  --ddmm-pink: #fd80c9;
  --ddmm-green: #7df3c7;
}

.ddmm-app, .ddmm-modal, .ddmm-floating-cta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ddmm-app {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1120px;
  margin: 40px auto;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  color: var(--ddmm-body);
  background: linear-gradient(135deg, rgba(157, 124, 255, .38), rgba(255,255,255,.08) 36%, rgba(85, 170, 255, .3));
  box-shadow: 0 28px 88px rgba(4, 6, 15, .38);
}

.ddmm-panel {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 27px;
  background: linear-gradient(143deg, rgba(8, 10, 18, .94) 0%, rgba(16, 20, 34, .88) 51%, rgba(10, 13, 23, .96) 100%);
  backdrop-filter: blur(30px) saturate(120%);
}

.ddmm-orb { position: absolute; z-index: 1; width: 440px; height: 440px; border-radius: 50%; filter: blur(76px); opacity: .32; pointer-events: none; }
.ddmm-orb-one { top: -250px; left: -110px; background: #855dfc; }
.ddmm-orb-two { right: -180px; bottom: -320px; background: #218ef3; }

.ddmm-header, .ddmm-output-heading, .ddmm-upsell { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.ddmm-header { margin-bottom: 26px; }
.ddmm-eyebrow { display: block; color: #b7a5ff; font-size: 10px; font-weight: 750; letter-spacing: .16em; line-height: 1.35; }
.ddmm-header h2, .ddmm-modal h2 { margin: 9px 0 0; color: #FFFFFF; font-size: clamp(35px, 5vw, 60px); font-weight: 650; letter-spacing: -.065em; line-height: .98; }
.ddmm-header h2 span { background: linear-gradient(100deg, #fff 15%, #a2c7ff 54%, #de9cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ddmm-credit-badge { flex: 0 0 auto; margin-top: 3px; padding: 9px 13px; border: 1px solid var(--ddmm-line); border-radius: 999px; color: #d2d6e0; font-size: 12px; font-weight: 680; background: rgba(255,255,255,.06); }
.ddmm-credit-badge.is-active { border-color: rgba(125,243,199,.45); color: #bdfde6; background: rgba(74, 185, 146, .12); }

.ddmm-persona-banner { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 30px; padding: 15px 17px; border: 1px solid rgba(188, 168, 255, .24); border-radius: 15px; color: #deddea; background: linear-gradient(90deg, rgba(134,96,255,.17), rgba(48,107,173,.07)); }
.ddmm-persona-banner p { margin: 0; color: #F5F5F7; font-size: 14px; line-height: 1.55; }
.ddmm-persona-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--ddmm-pink); box-shadow: 0 0 18px var(--ddmm-pink); }
.ddmm-notice { margin: -10px 0 24px; padding: 12px 15px; border-radius: 12px; font-size: 14px; }
.ddmm-notice-success { border: 1px solid rgba(125,243,199,.32); color: #cefbe9; background: rgba(38, 173, 124, .12); }

.ddmm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ddmm-field { min-width: 0; padding: 0; border: 0; }
.ddmm-field-wide { grid-column: 1 / -1; }
.ddmm-field > label, .ddmm-field legend { display: block; margin: 0 0 10px; color: #F5F5F7; font-size: 13px; font-weight: 650; }
.ddmm-field > label span { color: var(--ddmm-muted); font-weight: 500; }
.ddmm-field input, .ddmm-field textarea, .ddmm-field select { box-sizing: border-box; width: 100%; border: 1px solid var(--ddmm-line); border-radius: 12px; outline: none; color: var(--ddmm-white); font: inherit; background: rgba(255,255,255,.055); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.ddmm-field select { height: 50px; padding: 0 14px; font-size: 14px; appearance: auto; }
.ddmm-field select option { color: #10121b; }
.ddmm-field textarea { display: block; padding: 14px; resize: vertical; font-size: 14px; line-height: 1.5; }
.ddmm-field input:focus, .ddmm-field textarea:focus, .ddmm-field select:focus { border-color: rgba(157,124,255,.85); background: rgba(157,124,255,.09); box-shadow: 0 0 0 4px rgba(157,124,255,.12); }

.ddmm-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 156px; padding: 20px; border: 1px dashed rgba(190, 198, 224, .42); border-radius: 16px; text-align: center; background: rgba(255,255,255,.035); cursor: pointer; transition: .24s ease; }
.ddmm-dropzone:hover, .ddmm-dropzone.is-dragover { border-color: var(--ddmm-violet); transform: translateY(-1px); background: rgba(158,124,255,.11); box-shadow: inset 0 0 0 1px rgba(158,124,255,.2); }
.ddmm-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ddmm-upload-symbol { width: 34px; height: 34px; margin: 0 0 7px; border: 1px solid rgba(255,255,255,.23); border-radius: 11px; color: #fff; font-size: 23px; line-height: 31px; }
.ddmm-dropzone strong { color: #fbfbff; font-size: 14px; font-weight: 650; }
.ddmm-dropzone small, .ddmm-file-name { display: block; margin-top: 5px; color: var(--ddmm-muted); font-size: 12px; }
.ddmm-file-name { max-width: 100%; overflow: hidden; color: #d6d1ff; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.ddmm-style-options { display: flex; flex-wrap: wrap; gap: 7px; }
.ddmm-style-button input { position: absolute; opacity: 0; pointer-events: none; }
.ddmm-style-button span { display: inline-flex; min-height: 36px; align-items: center; padding: 0 10px; border: 1px solid var(--ddmm-line); border-radius: 9px; color: #cdd1de; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.045); cursor: pointer; transition: .18s ease; }
.ddmm-style-button span:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.ddmm-style-button input:checked + span { border-color: rgba(160,131,255,.85); color: #fff; background: linear-gradient(135deg, rgba(137,99,255,.44), rgba(100,153,255,.25)); box-shadow: 0 4px 16px rgba(102,79,219,.17); }
.ddmm-character-count { margin-top: 8px; color: var(--ddmm-muted); font-size: 11px; text-align: right; }
.ddmm-attestation { display: flex; align-items: flex-start; gap: 10px; box-sizing: border-box; padding: 13px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #c9ced9; font-size: 12px; line-height: 1.5; background: rgba(255,255,255,.035); cursor: pointer; }
.ddmm-attestation input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--ddmm-violet); }
.ddmm-generate-button { width: 100%; margin-top: 24px; }
.ddmm-button { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; gap: 9px; box-sizing: border-box; padding: 0 19px; border: 1px solid transparent; border-radius: 13px; color: #fff !important; font-size: 14px; font-weight: 700; letter-spacing: -.01em; text-align: center; text-decoration: none !important; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.ddmm-button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.ddmm-button-primary { border: 0; background: linear-gradient(110deg, #8060ee, #5a9dfb 54%, #d072d1); box-shadow: 0 10px 25px rgba(105,105,226,.3); }
.ddmm-button-secondary { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.09); }
.ddmm-form-note, .ddmm-quiet-link, .ddmm-config-message { margin: 13px 0 0; color: var(--ddmm-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.ddmm-quiet-link a { color: #c8bbff; }

.ddmm-locked-state { max-width: 610px; margin: 6px auto 0; padding: 36px 20px 21px; border: 1px solid var(--ddmm-line); border-radius: 19px; text-align: center; background: rgba(255,255,255,.04); }
.ddmm-lock-icon { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 auto 14px; border: 1px solid rgba(192,177,255,.4); border-radius: 13px; color: #c2b2ff; background: rgba(143,101,255,.15); }
.ddmm-locked-state h3, .ddmm-output-heading h3, .ddmm-upsell h3 { margin: 0; color: #fff; font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
.ddmm-locked-state p { max-width: 490px; margin: 9px auto 19px; color: #bcc2d1; font-size: 14px; line-height: 1.55; }

.ddmm-loading-state { position: relative; overflow: hidden; min-height: 405px; margin: 4px 0 0; border: 1px solid var(--ddmm-line); border-radius: 19px; background: #06070c; }
.ddmm-aura-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ddmm-loading-copy { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }
.ddmm-loading-copy h3 { margin: 11px 0 6px; color: #fff; font-size: clamp(25px, 4vw, 38px); font-weight: 620; letter-spacing: -.045em; }
.ddmm-loading-copy p { margin: 0; color: #c7c8d2; font-size: 14px; }

.ddmm-output-state { margin: 4px 0 0; }
.ddmm-output-heading { margin-bottom: 15px; }
.ddmm-output-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.ddmm-text-action { padding: 8px 10px; border: 1px solid var(--ddmm-line); border-radius: 9px; color: #dce0e9; font: inherit; font-size: 11px; font-weight: 650; background: rgba(255,255,255,.05); cursor: pointer; transition: .18s ease; }
.ddmm-text-action:hover { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.11); }
.ddmm-output-card { box-sizing: border-box; min-height: 260px; padding: clamp(22px, 4vw, 38px); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; color: #F5F5F7; font-size: 15px; line-height: 1.7; background: linear-gradient(150deg, rgba(255,255,255,.105), rgba(255,255,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,.09); }
.ddmm-output-card h1, .ddmm-output-card h2, .ddmm-output-card h3, .ddmm-output-card h4 { margin: 1.15em 0 .4em; color: #fff; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.ddmm-output-card h1:first-child, .ddmm-output-card h2:first-child, .ddmm-output-card h3:first-child { margin-top: 0; }
.ddmm-output-card p, .ddmm-output-card ul, .ddmm-output-card ol { margin: 0 0 1em; }
.ddmm-output-card strong { color: #fff; }
.ddmm-output-card ul, .ddmm-output-card ol { padding-left: 1.4em; }
.ddmm-output-card a { color: #bcaaff; }
.ddmm-upsell { align-items: center; margin-top: 20px; padding: 24px; border: 1px solid rgba(144,197,255,.25); border-radius: 17px; background: linear-gradient(110deg, rgba(79,133,226,.15), rgba(181,103,230,.13)); }
.ddmm-upsell p { max-width: 590px; margin: 7px 0 0; color: #c7cbd9; font-size: 13px; line-height: 1.5; }
.ddmm-inline-error { margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(255,107,150,.32); border-radius: 11px; color: #ffd3e0; font-size: 13px; background: rgba(202,41,95,.12); }

.ddmm-floating-cta { position: fixed; z-index: 99999; bottom: 20px; left: 20px; padding: 13px 17px; border: 1px solid rgba(255,255,255,.29); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -.01em; background: linear-gradient(100deg, rgba(111,77,223,.96), rgba(61,125,220,.96)); box-shadow: 0 14px 35px rgba(0,0,0,.35); cursor: pointer; transition: .2s ease; }
.ddmm-floating-cta:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0,0,0,.45); }
.ddmm-modal[hidden], .ddmm-loading-state[hidden], .ddmm-output-state[hidden], .ddmm-inline-error[hidden] { display: none !important; }
.ddmm-modal { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; padding: 19px; }
.ddmm-modal-backdrop { position: absolute; inset: 0; background: rgba(3,5,12,.77); backdrop-filter: blur(11px); }
.ddmm-modal-panel { position: relative; z-index: 1; box-sizing: border-box; width: min(100%, 530px); padding: 39px; border: 1px solid rgba(255,255,255,.22); border-radius: 24px; color: #e5e7ef; background: linear-gradient(145deg, #171b2a, #0b0e17); box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.ddmm-modal-panel h2 { margin-top: 12px; font-size: clamp(31px, 7vw, 46px); }
.ddmm-modal-panel p { margin: 16px 0 25px; color: #F5F5F7; font-size: 15px; line-height: 1.6; }
.ddmm-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ddmm-modal-actions .ddmm-button-secondary { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.1); }
.ddmm-modal-close { position: absolute; top: 12px; right: 15px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; color: #cdd3e1; font-size: 26px; line-height: 1; background: transparent; cursor: pointer; }
.ddmm-modal-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.ddmm-modal-link { display: block; margin: 13px auto 0; padding: 4px; border: 0; color: #aeb4c4; font: inherit; font-size: 12px; background: transparent; cursor: pointer; }

.ddmm-preview-state { margin: 4px 0 0; }
.ddmm-preview-heading { margin: 0 0 15px; }
.ddmm-preview-heading h3 { margin: 7px 0 6px; color: #FFFFFF; font-size: clamp(24px, 4vw, 35px); font-weight: 650; letter-spacing: -.045em; overflow-wrap: anywhere; }
.ddmm-preview-heading p { margin: 0; color: #F5F5F7; font-size: 14px; line-height: 1.5; }
.ddmm-preview-card { position: relative; display: flex; min-height: 270px; flex-direction: column; gap: 16px; box-sizing: border-box; padding: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035)); }
.ddmm-preview-card::after { position: absolute; inset: -14px; content: ""; background: rgba(9, 11, 18, .12); backdrop-filter: blur(9px); }
.ddmm-skeleton { position: relative; z-index: 1; display: block; height: 13px; border-radius: 999px; background: linear-gradient(100deg, rgba(255,255,255,.16), rgba(202,190,255,.42), rgba(255,255,255,.14)); background-size: 180% 100%; animation: ddmm-shimmer 1.7s ease-in-out infinite; }
.ddmm-skeleton-title { width: 54%; height: 29px; margin-bottom: 11px; }
.ddmm-skeleton-subtitle { width: 34%; height: 20px; margin-top: 11px; }
.ddmm-skeleton-line { width: 95%; }
.ddmm-skeleton-line.short { width: 57%; }
.ddmm-skeleton-line.medium { width: 76%; }
.ddmm-unlock-banner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: -38px 19px 0; padding: 24px; border: 1px solid rgba(224, 211, 255, .44); border-radius: 17px; background: linear-gradient(112deg, rgba(99,72,203,.96), rgba(40,97,194,.96)); box-shadow: 0 16px 40px rgba(3, 4, 12, .48); }
.ddmm-unlock-banner h3 { margin: 6px 0 5px; color: #FFFFFF; font-size: 22px; font-weight: 650; letter-spacing: -.035em; }
.ddmm-unlock-banner p { margin: 0; color: #F5F5F7; font-size: 13px; line-height: 1.5; }
.ddmm-unlock-banner .ddmm-eyebrow { color: #F5F5F7; }
.ddmm-unlock-banner .ddmm-button { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.16); white-space: nowrap; }
@keyframes ddmm-shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

@media (max-width: 680px) {
  .ddmm-app { margin: 22px 0; border-radius: 21px; }
  .ddmm-panel { padding: 23px 18px; border-radius: 20px; }
  .ddmm-header, .ddmm-output-heading, .ddmm-upsell { flex-direction: column; }
  .ddmm-credit-badge { margin-top: -15px; }
  .ddmm-form-grid { grid-template-columns: 1fr; gap: 19px; }
  .ddmm-field-wide { grid-column: auto; }
  .ddmm-output-actions { justify-content: flex-start; }
  .ddmm-upsell { align-items: flex-start; }
  .ddmm-upsell .ddmm-button { width: 100%; }
  .ddmm-unlock-banner { flex-direction: column; align-items: stretch; margin: -28px 8px 0; padding: 20px; }
  .ddmm-unlock-banner .ddmm-button { width: 100%; }
  .ddmm-floating-cta { bottom: 12px; left: 12px; max-width: calc(100vw - 24px); font-size: 12px; }
  .ddmm-modal-panel { padding: 35px 23px 25px; }
  .ddmm-modal-actions { flex-direction: column; }
  .ddmm-modal-actions .ddmm-button { width: 100%; }
}
