/*
 * DownRadar V3 - CSS do cadastro/login/painel
 * Instale em: /public_html/downradar/assets/css/painel.css
 */

.dr-auth-body,
.dr-panel-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 242, 255, .20), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(52, 255, 141, .12), transparent 28%),
        linear-gradient(180deg, #02070d 0%, #061523 100%);
}

.dr-auth-shell {
    width: min(1160px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 470px;
    gap: 34px;
    align-items: center;
    padding: 44px 0;
}
.dr-auth-shell-small { grid-template-columns: 1fr 420px; }
.dr-auth-brand h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: .94;
    letter-spacing: -.07em;
    margin: 32px 0 18px;
}
.dr-auth-brand p {
    max-width: 640px;
    color: var(--dr-muted);
    font-size: 20px;
    line-height: 1.55;
}
.dr-auth-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dr-auth-points span {
    padding: 10px 14px;
    border: 1px solid rgba(111,252,255,.22);
    background: rgba(7, 19, 35, .55);
    border-radius: 999px;
    color: rgba(255,255,255,.78);
    font-weight: 850;
}
.dr-auth-card,
.dr-panel-card,
.dr-panel-hero,
.dr-stats-grid article {
    border: 1px solid rgba(111,252,255,.18);
    background: linear-gradient(145deg, rgba(11, 25, 41, .78), rgba(5, 13, 26, .72));
    box-shadow: var(--dr-shadow), inset 0 1px 0 rgba(255,255,255,.06);
    border-radius: 30px;
    backdrop-filter: blur(16px);
}
.dr-auth-card { padding: 28px; }
.dr-section-kicker {
    display: inline-flex;
    color: var(--dr-cyan);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .14em;
    font-weight: 1000;
}
.dr-auth-card h2,
.dr-panel-card h1,
.dr-panel-card h2,
.dr-panel-hero h1 {
    margin: 8px 0 18px;
    letter-spacing: -.045em;
}
.dr-auth-card h2 { font-size: 34px; }
.dr-auth-footer { color: var(--dr-muted); text-align: center; margin: 18px 0 0; }
.dr-auth-footer a { color: var(--dr-cyan); font-weight: 900; }

.dr-form { display: grid; gap: 16px; }
.dr-grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dr-form label { display: grid; gap: 8px; color: rgba(255,255,255,.88); font-weight: 900; }
.dr-form small { color: var(--dr-muted-2); font-weight: 700; line-height: 1.4; }
.dr-form input,
.dr-form textarea,
.dr-form select {
    width: 100%;
    min-height: 50px;
    color: #fff;
    background: rgba(2, 8, 16, .78);
    border: 1px solid rgba(111,252,255,.18);
    border-radius: 16px;
    outline: none;
    padding: 13px 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.dr-form textarea { min-height: 115px; resize: vertical; }
.dr-form input:focus,
.dr-form textarea:focus,
.dr-form select:focus { border-color: rgba(52,255,141,.55); box-shadow: 0 0 0 4px rgba(52,255,141,.09); }
.dr-input-prefix { display: grid; grid-template-columns: 48px 1fr; align-items: center; background: rgba(2,8,16,.78); border: 1px solid rgba(111,252,255,.18); border-radius: 16px; overflow: hidden; }
.dr-input-prefix span { text-align: center; color: var(--dr-cyan); font-weight: 1000; }
.dr-input-prefix input { border: 0; background: transparent; border-radius: 0; }
.dr-full { grid-column: 1 / -1; }
.dr-form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.dr-panel-nav {
    width: min(1240px, calc(100% - 28px));
    margin: 18px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(111,252,255,.16);
    background: rgba(4, 13, 25, .72);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    position: sticky;
    top: 12px;
    z-index: 20;
}
.dr-panel-nav nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dr-panel-nav nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: rgba(255,255,255,.78);
    font-weight: 900;
}
.dr-panel-nav nav a:hover { background: rgba(111,252,255,.08); color: #fff; }
.dr-panel-nav .dr-panel-exit { color: #ffb6b6; }

.dr-panel-main { width: min(1180px, calc(100% - 28px)); margin: 26px auto 70px; display: grid; gap: 22px; }
.dr-panel-hero { padding: 28px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.dr-panel-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.dr-panel-hero p { color: var(--dr-muted); max-width: 720px; line-height: 1.55; }
.dr-panel-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.dr-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dr-stats-grid article { padding: 22px; }
.dr-stats-grid span { color: var(--dr-muted); font-weight: 850; }
.dr-stats-grid strong { display: block; margin: 8px 0; font-size: 30px; letter-spacing: -.04em; }
.dr-stats-grid small { color: var(--dr-muted-2); }
.dr-panel-card { padding: 24px; }
.dr-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.dr-card-head a:not(.dr-btn) { color: var(--dr-cyan); font-weight: 900; }
.dr-copy-box { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.dr-copy-box input {
    min-height: 52px;
    color: #dffaff;
    background: rgba(2,8,16,.75);
    border: 1px solid rgba(111,252,255,.18);
    border-radius: 18px;
    padding: 12px 14px;
    width: 100%;
}
.dr-panel-list { display: grid; gap: 12px; }
.dr-panel-list article {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(111,252,255,.14);
    background: rgba(3, 11, 22, .58);
    border-radius: 20px;
}
.dr-panel-list strong { display: block; margin-bottom: 4px; }
.dr-panel-list span { color: var(--dr-muted-2); font-size: 13px; }
.dr-list-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dr-list-actions a {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(111,252,255,.08);
    border: 1px solid rgba(111,252,255,.16);
    color: var(--dr-cyan);
    font-weight: 950;
}
.dr-empty-box {
    border: 1px dashed rgba(111,252,255,.22);
    background: rgba(111,252,255,.045);
    border-radius: 20px;
    padding: 22px;
    color: var(--dr-muted);
    font-weight: 850;
}
.dr-danger-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.dr-danger-btn {
    border: 1px solid rgba(255,90,90,.32);
    background: rgba(255,80,80,.10);
    color: #ffb6b6;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 860px) {
    .dr-auth-shell,
    .dr-auth-shell-small { grid-template-columns: 1fr; padding: 26px 0; }
    .dr-grid-form { grid-template-columns: 1fr; }
    .dr-panel-nav { align-items: flex-start; flex-direction: column; }
    .dr-panel-hero { flex-direction: column; align-items: flex-start; }
    .dr-panel-actions { width: 100%; }
    .dr-stats-grid { grid-template-columns: 1fr; }
    .dr-copy-box { grid-template-columns: 1fr; }
    .dr-panel-list article { align-items: flex-start; flex-direction: column; }
    .dr-list-actions { justify-content: flex-start; }
}


/* V3.3 - editor de múltiplos links de download */
.dr-panel-muted {
    color: var(--dr-muted);
    margin: -8px 0 0;
    line-height: 1.45;
}
.dr-links-editor {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(111,252,255,.16);
    background: rgba(0,0,0,.18);
}
.dr-links-editor-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}
.dr-links-editor-head h2 {
    margin: 4px 0 0;
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: -.045em;
}
.dr-links-editor-head small {
    max-width: 390px;
    text-align: right;
}
.dr-link-editor-row {
    display: grid;
    grid-template-columns: 44px 1fr 1.35fr 1fr;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(3,11,22,.46);
    border-radius: 20px;
}
.dr-link-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #03120b;
    background: linear-gradient(180deg, #72ffa9, #31f087);
    font-weight: 1000;
    margin-bottom: 4px;
}
.dr-link-note input { color: rgba(255,255,255,.86); }

@media (max-width: 960px) {
    .dr-links-editor-head { align-items: flex-start; flex-direction: column; }
    .dr-links-editor-head small { text-align: left; }
    .dr-link-editor-row { grid-template-columns: 44px 1fr; }
    .dr-link-editor-row .dr-link-note { grid-column: 2 / -1; }
}
@media (max-width: 560px) {
    .dr-link-editor-row { grid-template-columns: 1fr; }
    .dr-link-editor-row .dr-link-note { grid-column: auto; }
}


/* V3.4 - editor dinâmico de botões: mostra 1 e adiciona sob demanda */
.dr-links-list {
    display: grid;
    gap: 12px;
}
.dr-link-editor-row {
    grid-template-columns: 42px minmax(170px, .9fr) minmax(230px, 1.3fr) minmax(160px, .8fr) 42px;
    position: relative;
}
.dr-link-remove {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(255,96,96,.28);
    background: rgba(255,80,80,.10);
    color: #ffb8b8;
    font-size: 24px;
    line-height: 1;
    font-weight: 1000;
    cursor: pointer;
    margin-bottom: 4px;
}
.dr-link-remove:hover {
    background: rgba(255,80,80,.18);
    border-color: rgba(255,140,140,.46);
}
.dr-add-link-btn {
    min-height: 54px;
    border: 1px dashed rgba(52,255,141,.44);
    background: linear-gradient(180deg, rgba(52,255,141,.12), rgba(17,168,96,.08));
    color: #83ffb8;
    border-radius: 18px;
    font-weight: 1000;
    cursor: pointer;
    letter-spacing: -.01em;
}
.dr-add-link-btn:hover {
    background: linear-gradient(180deg, rgba(52,255,141,.20), rgba(17,168,96,.12));
    border-style: solid;
}
.dr-add-link-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .dr-link-editor-row {
        grid-template-columns: 42px 1fr 42px;
        align-items: start;
    }
    .dr-link-editor-row label {
        grid-column: 1 / -1;
    }
    .dr-link-number { grid-column: 1; }
    .dr-link-remove { grid-column: 3; grid-row: 1; justify-self: end; }
    .dr-links-editor-head { align-items: flex-start; flex-direction: column; }
    .dr-links-editor-head small { text-align: left; max-width: none; }
}
