:root{
    --dj-bg: #f5f7fa;
    --dj-surface: #ffffff;
    --dj-surface-soft: #f1f3f7;
    --dj-border: #e6e9ef;
    --dj-text: #1f2430;
    --dj-muted: #6b7280;
    --dj-accent: #ef4d45; /* your dot colour */
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    max-width: 820px;
    margin: 40px auto;
    padding: 0 16px;
}

p {
    margin: 6px 0 18px;
    color: #333;
}

textarea {
    width: 100%;
    height: 200px;
    font-size: 16px;
    padding: 12px;
    box-sizing: border-box;
}

.row {
    margin-top: 14px;
}

select, button {
    font-size: 16px;
    padding: 10px 12px;
}

button {
    cursor: pointer;
}

input[type="text"] {
    width: 100%;
    font-size: 16px;
    padding: 10px;
}

.status {
    margin-top: 10px;
    color: #444;
    font-size: 14px;
}

.dj-body{
    margin: 0;
    font-family: system-ui, -apple-system, -apple-system, Segoe UI, Roboto, Arial;
    background: var(--dj-bg);
    color: var(--dj-text);
    min-height: 100vh;
}




.dj-main{
    max-width: 720px;
    margin: 0 auto;
    padding: 26px 18px 40px;
}

.dj-card{
    border: 1px solid var(--dj-border);
    background: var(--dj-surface);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.06);
}

.dj-footnote{
    margin: 16px 4px 0;
    color: var(--dj-muted);
    font-size: 13px;
    text-align: center;
}
/* Typography helpers */
.dj-title{
    font-size: 23px;
    margin: 0 0 8px;
}

.dj-subtitle{
    color: var(--dj-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Form layout */

.dj-row{
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.dj-label{
    font-size: 13px;
    color: var(--dj-muted);
}

/* Inputs */
.dj-textarea,
.dj-input,
.dj-select{
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--dj-border);
    background: var(--dj-surface);
    color: var(--dj-text);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
}

.dj-textarea{
    max-height: 110px;
    border-radius: 16px;
    padding: 14px 16px;
    line-height: 1.55;
    background: #ffffff;
}


.dj-select{
    width: auto;
    min-width: 180px;
    padding-right: 34px;
}

/* Focus state */
.dj-textarea:focus,
.dj-input:focus,
.dj-select:focus{
    border-color: rgba(239, 77, 69, 0.55);
    box-shadow: 0 0 0 4px rgba(239, 77, 69, 0.12);
}

/* Buttons */
.dj-btn{
    border: 1px solid var(--dj-border);
    background: var(--dj-surface);
    color: var(--dj-text);
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.dj-btn:hover{
    border-color: rgba(31,36,48,0.18);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.dj-btn:active{
    transform: translateY(0px);
    box-shadow: none;
}

.dj-btn-primary{
    background: var(--dj-text);
    color: white;
    border-color: transparent;
}

.dj-btn-primary:hover{
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.dj-status{
    margin-top: 14px;
    margin-bottom: 18px;
    color: var(--dj-muted);   /* neutral by default */
    line-height: 1.5;
}

.dj-status-created{
    margin-top: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.dj-status[data-error="true"]{
    color: var(--dj-accent);
    font-weight: 500;
}

/* Link box */
.dj-linkbox{
    margin-top: 16px;
    border: 1px solid var(--dj-border);
    background: var(--dj-surface-soft);
    border-radius: 16px;
    padding: 14px;
}

.dj-linkbox p{
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--dj-muted);
}
.dj-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--dj-border);
    background: var(--dj-surface-soft);
    border-radius: 999px;
    font-size: 12px;
    color: var(--dj-muted);
    margin-bottom: 14px;
}

.dj-dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--dj-accent);
    display: inline-block;
}
.dj-alert{
    border: 1px solid var(--dj-border);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
}

.dj-alert-error{
    border-color: rgba(239, 77, 69, 0.35);
    background: rgba(239, 77, 69, 0.06);
}

.dj-alert-success{
    border-color: rgba(31, 36, 48, 0.18);
    background: rgba(31, 36, 48, 0.03);
}
.dj-toast{
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(31, 36, 48, 0.92);
    color: white;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.dj-toast.dj-toast-show{
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.dj-header-h1{
    text-align: center;
    font-weight: bolder;
}

h1 {
    margin: 0 0 6px;
}


.dj-body{
    background: #f7f9fc;
}

.dj-link-action{
    font-size: 14px;
    color: var(--dj-text);
    text-decoration: none;
    border-bottom: 1px solid;
    border-bottom-color: #ef4d45;
    padding-bottom: 2px;
    transition: opacity 120ms ease, border-color 120ms ease;
}

.dj-link-action:hover{
    opacity: 0.7;
    border-color: var(--dj-text);
}

.dj-action-row{
    margin-top: 22px;
}

/* Status + counter row (used on index page) */
.dj-meta-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.dj-counter{
    white-space: nowrap;
}
/* Footer */

/* Footer wrapper spacing */
.dj-footer{
    padding: 0 20px 70px;
}

/* Keep same content width as main */
.dj-footer-inner{
    max-width: 720px;
    margin: 0 auto;
}

/* Footer card — softer than main card */
.dj-footer-card{
    background: var(--dj-surface);
    border: 1px solid var(--dj-border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.dj-footer-title{
    font-size: 18px;
    margin: 0 0 22px;
    letter-spacing: -0.015em;
}

/* Red bullet list */
.dj-footer-list{
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.dj-footer-list li{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dj-muted);
}

.dj-footer-list li::before{
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dj-accent);
    margin-top: 7px;
    flex-shrink: 0;
}

.dj-footer-divider{
    height: 1px;
    background: var(--dj-border);
    margin: 28px 0;
}

.dj-footer-bottom{
    font-size: 13px;
    line-height: 1.7;
    color: var(--dj-muted);
}

.dj-footer-small{
    margin-top: 8px;
    font-weight: 500;
    color: var(--dj-text);
}

/* Footer link row */

.dj-footer-links{
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
}

.dj-footer-link{
    font-size: 13px;
    color: var(--dj-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 120ms ease, opacity 120ms ease;
}

.dj-footer-link::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--dj-border);
    transition: background 120ms ease;
}

.dj-footer-link:hover{
    color: var(--dj-text);
}

.dj-footer-link:hover::after{
    background: var(--dj-accent);
}

/* Security page */

.dj-sec-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
}

.dj-sec-block{
    border: 1px solid var(--dj-border);
    background: var(--dj-surface);
    border-radius: 18px;
    padding: 16px 16px;
}

.dj-sec-h{
    font-size: 15px;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.dj-sec-p{
    margin: 0;
    color: var(--dj-muted);
    font-size: 14px;
    line-height: 1.6;
}

.dj-sec-block code{
    font-size: 0.95em;
    background: rgba(31,36,48,0.06);
    padding: 2px 6px;
    border-radius: 8px;
}

.dj-sec-list{
    list-style: none;
    padding: 0;
    margin: 0;
}

.dj-sec-list li{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: var(--dj-muted);
    font-size: 14px;
    line-height: 1.6;
}

.dj-sec-list li::before{
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dj-accent);
    margin-top: 7px;
    flex-shrink: 0;
}

.dj-sec-callout{
    margin-top: 18px;
    border: 1px solid rgba(239, 77, 69, 0.22);
    background: rgba(239, 77, 69, 0.06);
    border-radius: 18px;
    padding: 16px;
}

/* --- Patch: stop legacy global styles leaking into the new layout --- */

/* Your templates use <body class="dj-body"> so we scope fixes to that */
.dj-body{
    max-width: none;   /* overrides earlier body { max-width: 820px } */
    margin: 0;         /* overrides earlier body { margin: 40px auto } */
    padding: 0;        /* overrides earlier body { padding: 0 16px } */
}


/* Make info pages read a bit nicer without affecting the core app */
.dj-page .dj-card{
    padding: 34px;
}

.dj-page .dj-title{
    font-size: 32px;
}



/* Prevent any old generic paragraph color from fighting the theme */
.dj-body p{
    color: inherit;
}

/* Make links inside content consistent */
.dj-body a{
    color: inherit;
}

/* Bottom footer bar (outside card) */

.dj-footer-bar{
    margin-top: 28px;
    padding: 18px 20px;
    border-top: 1px solid var(--dj-border);
    background: transparent;
}

.dj-footer-bar-inner{
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 12px;
    justify-content: center;   /* center horizontally */
    text-align: center;
}


.dj-footer-bar-link{
    text-decoration: none;
    color: var(--dj-muted);
    position: relative;
    padding-bottom: 2px;
    transition: color 120ms ease;
}

.dj-footer-bar-link:hover{
    color: var(--dj-text);
}

.dj-footer-bar-link::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: transparent;
    transition: background 120ms ease;
}

.dj-footer-bar-link:hover::after{
    background: var(--dj-accent);
}



.dj-social-nav{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.dj-social-link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--dj-text);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 150ms ease, transform 150ms ease;
}

.dj-social-link:hover{
    opacity: 1;
    transform: translateY(-1px);
}

.dj-social-icon{
    width: 18px;
    height: 18px;
    filter: brightness(0); /* keeps icons black */
}

/* Share box container */
.dj-linkbox {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #fff;
}

.dj-linkbox p {
    margin: 0 0 12px;
}

/* Ensure the link input fills width */
.dj-linkbox .dj-input {
    width: 100%;
}

/* Row of buttons */
.dj-linkbox .dj-row {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Shared button base (for anchors only) */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1;

    transition: transform 0.08s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

/* Make Copy button visually match share buttons */
.dj-row .dj-input {
    width: auto;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* WhatsApp */
.share-btn-whatsapp {
    background: #f2f2f2;
    color: #111;
    border: 1px solid #e0e0e0;

}

.share-btn-whatsapp:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.share-btn-whatsapp:active {
    transform: translateY(1px);
}

/* Email */
.share-btn-email {
    background: #f2f2f2;
    color: #111;
    border: 1px solid #e0e0e0;
}

.share-btn-email:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.share-btn-email:active {
    transform: translateY(1px);
}

/* Icon styling */
.share-icon {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
}

/* FAQ */
.dj-faq{
    margin-top: 16px;
}

.dj-faq .dj-subtitle{
    margin-bottom: 14px;
}

.dj-faq-item{
    border-top: 1px solid var(--dj-border);
    padding: 12px 0;
}

.dj-faq-item:first-of-type{
    border-top: 0;
    padding-top: 0;
}

.dj-faq-q{
    list-style: none;            /* removes default marker in some browsers */
    cursor: pointer;
    font-weight: 650;
    color: var(--dj-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
    border-radius: 12px;
    user-select: none;
}

/* Remove default disclosure triangle consistently */
.dj-faq-q::-webkit-details-marker{
    display: none;
}

/* Add a clean plus/minus indicator */
.dj-faq-q::after{
    content: "+";
    font-weight: 700;
    color: var(--dj-muted);
    flex: 0 0 auto;
}

.dj-faq-item[open] .dj-faq-q::after{
    content: "–";
    color: var(--dj-text);
}

.dj-faq-item[open] .dj-faq-q{
    background: var(--dj-surface-soft);
    padding: 10px 12px;
}

.dj-faq-a{
    padding: 6px 12px 2px;
    color: var(--dj-muted);
    font-size: 14px;
    line-height: 1.6;
}

.dj-faq-a p{
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.dj-support {
    margin-top: 28px;
    text-align: center;
}

.dj-support-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.dj-support-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #111;
    color: #111;
    background: #fff;
    transition: all 0.2s ease;
}

.dj-support-btn:hover {
    background: #111;
    color: #fff;
}

.dj-global-settings{
    margin-top: 16px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--dj-surface-soft);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
}

.dj-expiry-field{
    max-width: 260px;
}

.dj-options{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 860px){
    .dj-options{
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.dj-option-card{
    background: var(--dj-surface);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}

.dj-option-head{
    margin-bottom: 12px;
}

.dj-option-badge{
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    margin-bottom: 8px;
}

.dj-option-title{
    margin: 0 0 6px;
    font-size: 18px;
}

.dj-option-desc{
    margin: 0;
    opacity: 0.85;
    line-height: 1.4;
}

.dj-option-body{
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dj-btn-secondary{
    background: transparent;
    border: 1px solid rgba(0,0,0,0.18);
}

.dj-btn-secondary:hover{
    background: rgba(0,0,0,0.04);
}

.dj-option-card{
    position: relative;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.dj-option-card:focus-within{
    border-color: rgba(0,0,0,0.18);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.dj-option-card.is-selected{
    border-color: rgba(0,0,0,0.22);
    box-shadow: 0 6px 22px rgba(0,0,0,0.10);
}

.dj-option-selected{
    display: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    position: absolute;
    top: 14px;
    right: 14px;
}

.dj-option-card.is-selected .dj-option-selected{
    display: inline-block;
}

/* Default: slightly dim everything */
.dj-option-card{
    opacity: 0.75;
    transform: scale(0.995);
    transition: opacity 140ms ease, transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

/* Selected card is fully prominent */
.dj-option-card.is-selected{
    opacity: 1;
    transform: scale(1);
}

/* Optional: soften hover on non-selected */
.dj-option-card:not(.is-selected):hover{
    opacity: 0.9;
}

/* Keep the stronger styling you already added */
.dj-option-card.is-selected{
    border-color: rgba(0,0,0,0.22);
    box-shadow: 0 6px 22px rgba(0,0,0,0.10);
}

.dj-option-card{
    cursor: pointer;
}

.dj-option-card .dj-btn,
.dj-option-card input,
.dj-option-card select,
.dj-option-card textarea,
.dj-option-card a{
    cursor: auto;
}

.dj-option-card:focus{
    outline: none;
}

.dj-option-card:focus-visible{
    box-shadow: 0 0 0 3px rgba(0,0,0,0.18), 0 6px 22px rgba(0,0,0,0.10);
}

/* Smooth transition when switching selection */
.dj-option-card{
    transition:
            opacity 160ms ease,
            transform 160ms ease,
            box-shadow 160ms ease,
            border-color 160ms ease;
    will-change: opacity, transform;
}

/* Subtle "lift" on the selected card */
.dj-option-card.is-selected{
    transform: translateY(-2px) scale(1);
}

/* Non-selected sits slightly lower */
.dj-option-card:not(.is-selected){
    transform: translateY(0) scale(0.995);
}

/* Animate the Selected badge in */
.dj-option-selected{
    transition: opacity 140ms ease, transform 140ms ease;
    opacity: 0;
    transform: translateY(-2px);
}

.dj-option-card.is-selected .dj-option-selected{
    opacity: 1;
    transform: translateY(0);
}

.dj-steps{
    margin: 14px 0 12px;
    padding-left: 18px;
    line-height: 1.6;
}

.dj-step-label{
    margin: 8px 0 10px;
    font-weight: 600;
}

.dj-help-accordion{
    margin: 12px 0 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    background: var(--dj-surface);
    overflow: hidden;
}

.dj-details{
    border-top: 1px solid rgba(0,0,0,0.08);
}

.dj-details:first-child{
    border-top: none;
}

.dj-summary{
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 600;
}

.dj-summary::-webkit-details-marker{
    display: none;
}

.dj-summary::after{
    content: "＋";
    float: right;
    opacity: 0.65;
}

.dj-details[open] .dj-summary::after{
    content: "−";
}

.dj-details-body{
    padding: 0 14px 12px;
    opacity: 0.9;
}

.dj-details-body p{
    margin: 8px 0;
}

/* ---------- Panels ---------- */

.dj-panel {
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
    background: var(--dj-surface-soft);
    border: 1px solid rgba(0,0,0,0.06);
}

.dj-panel-secret {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
}

.dj-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.dj-panel-title {
    font-weight: 700;
    font-size: 14px;
}

.dj-panel-subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

.dj-panel-badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
}

.dj-panel-badge-secret {
    background: rgba(0,0,0,0.08);
    font-weight: 600;
}

/* ---------- Word Inputs ---------- */

.dj-word-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 520px) {
    .dj-word-grid {
        grid-template-columns: 1fr;
    }
}

.dj-word-input {
    text-align: center;
    font-weight: 650;
    letter-spacing: 0.4px;
}

/* ---------- Secret Row ---------- */

.dj-secret-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dj-secret-input {
    flex: 1;
}

/* ---------- Buttons ---------- */

.dj-btn-wide {
    width: 100%;
}

.dj-btn-ghost {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
}

.dj-btn-ghost:hover {
    background: rgba(0,0,0,0.05);
}

/* ---------- Help Text ---------- */

.dj-help-tight {
    margin-top: 10px;
}

/* ---------- Message Output ---------- */

.dj-message-box {
    display: none;
    margin-top: 16px;
}

.dj-message-output {
    white-space: pre-wrap;
    margin: 0;
}
/* Simple reveal layout */

.dj-reveal-form {
    margin-top: 8px;
}

.dj-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.dj-legend {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 8px;
}

.dj-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dj-field-gap {
    margin-top: 12px;
}

/* 3-word row: compact on mobile, still readable */
.dj-words {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 520px) {
    .dj-words {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Make word inputs feel slightly distinct without extra sections */
.dj-word-input {
    text-align: center;
    font-weight: 650;
    letter-spacing: 0.2px;
}

/* Unlock key row with show button */
.dj-key-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dj-key-input {
    flex: 1;
}

/* Full-width reveal button */
.dj-btn-wide {
    width: 100%;
    margin-top: 14px;
}

/* Optional ghost button style if you don’t already have it */
.dj-btn-ghost {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
}

.dj-btn-ghost:hover {
    background: rgba(0,0,0,0.05);
}

/* Make focus states obvious for keyboard users (accessibility) */
.dj-input:focus,
.dj-btn:focus {
    outline: 3px solid rgba(0,0,0,0.25);
    outline-offset: 2px;
}

/* Message output styling (no inline) */
.dj-message-box {
    display: none;
    margin-top: 16px;
}

.dj-message-output {
    white-space: pre-wrap;
    margin: 0;
}

/* =========================
   Homepage Hero
   ========================= */

.dj-hero {
    margin-bottom: 36px;
}

.dj-hero-panel {
    background: var(--dj-surface);
    border: 1px solid var(--dj-border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dj-hero-inner {
    max-width: 640px;
}

.dj-hero-title {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.dj-hero-subtitle {
    font-size: 17px;
    color: var(--dj-muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.dj-hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
    font-size: 14px;
    color: var(--dj-muted);
}

.dj-hero-points li {
    position: relative;
    padding-left: 20px;
}

.dj-hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dj-accent);
}

.dj-hero-cta {
    margin-top: 6px;
}

@media (max-width: 640px) {
    .dj-hero-panel {
        padding: 26px;
    }

    .dj-hero-title {
        font-size: 26px;
    }
}

/* =========================
   Hero-specific button
   ========================= */

.dj-hero-btn {
    background: var(--dj-text);
    color: #ffffff;
    border: 1px solid var(--dj-text);
    border-radius: 16px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition:
            transform 140ms ease,
            box-shadow 140ms ease,
            background 140ms ease,
            border-color 140ms ease;
}

.dj-hero-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.dj-hero-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.dj-hero-btn:focus-visible {
    outline: 3px solid rgba(0,0,0,0.25);
    outline-offset: 3px;
}

.dj-hero-btn {
    background: var(--dj-accent);
    border-color: var(--dj-accent);
    color: #ffffff;
}

.dj-hero-btn:hover {
    background: #d63d36;
    border-color: #d63d36;
}


/* Ensure hero button text is white */
.dj-btn.dj-hero-btn {
    color: #ffffff;
}

.dj-btn.dj-hero-btn:hover,
.dj-btn.dj-hero-btn:focus,
.dj-btn.dj-hero-btn:active {
    color: #ffffff;
}

/* Message reveal container NEW */
.dj-message-box {
    margin-top: 20px;
    padding: 24px;
    background: #ffffff;
    border: 2px solid #111111;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: dj-fade-in 0.25s ease-out;
}

/* Label */
.dj-message-box p {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #b00020; /* red accent */
}

/* Message content */
.dj-message-output {
    margin: 0;
    padding: 18px;
    background: #111111;
    color: #ffffff;
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: 400px;
    overflow-y: auto;
}

/* Subtle scroll styling */
.dj-message-output::-webkit-scrollbar {
    width: 8px;
}

.dj-message-output::-webkit-scrollbar-thumb {
    background: #b00020;
    border-radius: 4px;
}

/* Reveal animation */
@keyframes dj-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile spacing tweak */
@media (max-width: 600px) {
    .dj-message-box {
        padding: 18px;
        border-radius: 14px;
    }

    .dj-message-output {
        font-size: 14px;
        padding: 14px;
    }
}

.dj-overlay-nav .dj-support-link {
    font-weight: 600;
}

.dj-overlay-nav .dj-support-link:hover {
    opacity: 0.85;
}









