:root {
    --black: #050505;
    --panel: #171717;
    --panel-soft: #222;
    --line: #3a3a3a;
    --yellow: #f5b000;
    --text: #fff;
    --muted: #b9b9b9;
    --danger: #db3b3b;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.ghost-button {
    border: 1px solid var(--yellow);
    border-radius: 6px;
    background: var(--yellow);
    color: #080808;
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.ghost-button:hover {
    filter: brightness(1.08);
}

.ghost-button {
    background: transparent;
    color: var(--yellow);
}

.danger-button {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.admin-shell {
    min-height: 100vh;
}

.login-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.panel-card,
.dashboard {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.panel-card {
    max-width: 460px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid rgba(245, 176, 0, 0.45);
    border-radius: 8px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1,
h2 {
    margin: 0 0 12px;
}

.muted {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

label {
    color: #e7e7e7;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0b0b0b;
    color: var(--text);
    padding: 10px 12px;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.status-message {
    min-height: 22px;
    margin: 14px 0 0;
    color: var(--yellow);
}

.is-error {
    color: #ff7777;
}

.dashboard {
    padding: 34px 0 56px;
}

.dashboard-header,
.save-bar,
.section-heading,
.editor-row {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.dashboard-header {
    margin-bottom: 22px;
}

.header-actions,
.split-actions,
.admin-tabs,
.row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.save-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 14px;
    margin-bottom: 18px;
    background: rgba(23, 23, 23, 0.96);
    border: 1px solid rgba(245, 176, 0, 0.35);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.admin-tabs {
    margin: 0 0 18px;
}

.tab-button {
    background: transparent;
    color: var(--yellow);
}

.tab-button.active {
    background: var(--yellow);
    color: #080808;
}

.editor-section {
    display: none;
    background: var(--panel);
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 20px;
}

.editor-section.active {
    display: block;
}

.section-heading {
    align-items: flex-start;
    margin-bottom: 18px;
}

.editor-list {
    display: grid;
    gap: 14px;
}

.editor-row {
    align-items: stretch;
    padding: 14px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.row-preview {
    flex: 0 0 160px;
    min-height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(245, 176, 0, 0.5);
    border-radius: 6px;
    background: #050505;
}

.row-preview img,
.row-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-preview {
    width: 100%;
    min-height: 72px;
    display: grid;
    place-items: center;
    padding: 12px;
    background: #111;
    color: var(--yellow);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.row-fields {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field-full {
    grid-column: 1 / -1;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.checkbox-line input {
    width: auto;
}

.upload-line {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-line input {
    padding: 8px;
}

.row-actions {
    flex: 0 0 116px;
    align-content: flex-start;
}

.row-actions button {
    width: 100%;
}

@media (max-width: 820px) {
    .dashboard-header,
    .save-bar,
    .section-heading,
    .editor-row {
        flex-direction: column;
        align-items: stretch;
    }

    .row-preview,
    .row-actions {
        flex-basis: auto;
    }

    .row-fields {
        grid-template-columns: 1fr;
    }
}

/* Requisitos de senha interativos */
.password-requirements ul {
    list-style: none;
    padding-left: 0 !important;
}

.password-requirements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 4px;
    transition: color 0.2s ease;
    color: var(--muted);
}

.password-requirements li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
}

.password-requirements li.valid {
    color: #2ed573;
}

.password-requirements li.valid::before {
    content: "✓";
    color: #2ed573;
}

.panel-card a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Perfil Editavel - Minha Conta */
.profile-form input:focus {
    outline: none;
    border-color: var(--yellow) !important;
    box-shadow: 0 0 8px rgba(245, 176, 0, 0.25);
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.save-profile-btn:active {
    transform: translateY(0);
}

