body { margin:0; padding:0; font-family: Arial,sans-serif; background: linear-gradient(135deg,#2c2c2c,#1f1f1f); color:#fff; }

.pf-content { min-height: calc(100vh - 140px); padding: 0 20px 60px; display: flex; justify-content: center; }
.pf-wrapper { width: 100%; max-width: 800px; }

.pf-hero { padding-top: 30px; margin-bottom: 25px; }
.purchase-breadcrumb { font-size: 0.8rem; color: #999; margin-bottom: 10px; }
.purchase-breadcrumb a { color: #FFA500; text-decoration: none; }
.purchase-breadcrumb a:hover { text-decoration: underline; }
.pf-hero h1 { color: #FFD700; font-size: 2rem; margin-bottom: 6px; }
.pf-hero p { color: #aaa; }

.pf-alert { background: rgba(255,77,77,0.15); border: 1px solid #ff6b6b; color: #ff6b6b; font-weight: bold; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }

.pf-card { background: linear-gradient(145deg, #1e1e1e, #1a1a1a); border: 1px solid #333; border-radius: 16px; padding: 26px; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); box-sizing: border-box; }
.pf-card, .pf-card * { box-sizing: border-box; }
.pf-card h2 { color: #FFD700; font-size: 1.1rem; margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }

.pf-field { margin-bottom: 16px; }
.pf-field:last-child { margin-bottom: 0; }
.pf-field label { display: block; font-weight: bold; color: #FFD700; font-size: 0.85rem; margin-bottom: 6px; }
.pf-field input[type="text"], .pf-field input[type="number"], .pf-field input[type="password"], .pf-field input[type="email"], .pf-field select, .pf-field textarea {
    width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid #444; background-color: #222; color: #fff; font-size: 0.95rem; font-family: inherit; box-sizing: border-box;
}
.pf-field textarea { resize: vertical; min-height: 90px; }
.pf-field input:focus, .pf-field select:focus, .pf-field textarea:focus { outline: none; border-color: #FFD700; }
.pf-field small { display: block; color: #888; font-size: 0.78rem; margin-top: 6px; }

.pf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .pf-grid-2 { grid-template-columns: 1fr; } }

.status-toggle { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.status-option { display: block; margin: 0; cursor: pointer; width: auto; font-weight: normal; }
.status-option input { position: absolute; opacity: 0; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 20px; border: 2px solid #444; color: #999; font-size: 13px; transition: all 0.2s ease; }
.status-option input:checked + .status-badge.status-ativo { border-color: #28a745; color: #28a745; background: rgba(40,167,69,0.12); }
.status-option input:checked + .status-badge.status-inativo { border-color: #ff6b6b; color: #ff6b6b; background: rgba(255,107,107,0.12); }

.pf-banner-row { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.pf-banner-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pf-banner-box .pf-banner-label { color: #999; font-size: 0.78rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.pf-banner-box img { width: 140px; height: 168px; object-fit: cover; border: 1px solid #444; background-color: #222; }

.pf-content-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .pf-content-buttons { grid-template-columns: 1fr; } }
.pf-content-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: #222; border: 1px dashed #555; border-radius: 12px; padding: 22px 16px;
    color: #fff; cursor: pointer; font-family: inherit; text-align: center; transition: border-color 0.2s ease, background 0.2s ease;
}
.pf-content-btn:hover { border-color: #FFD700; background: #262626; }
.pf-content-btn i.pf-btn-icon { font-size: 22px; color: #FFD700; }
.pf-content-btn .pf-btn-label { font-weight: bold; }
.pf-content-btn .pf-btn-hint { color: #999; font-size: 0.75rem; line-height: 1.3; }
.pf-content-btn .pf-preview { color: #888; font-size: 0.78rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-content-btn .pf-preview.filled { color: #28a745; }

.pf-submit-btn {
    width: 100%; background: linear-gradient(90deg,#FFD700,#FFA500); color:#000; font-weight:bold;
    padding:14px 25px; border-radius:10px; border:none; cursor:pointer; font-size:16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}
.pf-submit-btn:hover { transform: scale(1.02); box-shadow:0 0 15px rgba(255,215,0,0.6); }

/* ===== MODAIS ===== */
.pf-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000; padding: 20px; box-sizing: border-box;
}
.pf-modal.open { visibility: visible; opacity: 1; pointer-events: auto; }
.pf-modal-content {
    background: #1a1a1a; border: 1px solid #333; border-radius: 14px; padding: 24px;
    width: 100%; height: 100%; box-sizing: border-box;
    position: relative;
    display: flex; flex-direction: column;
}
.pf-modal-content h3 { color: #FFD700; margin: 0 0 16px; padding-right: 30px; flex-shrink: 0; }
.pf-modal-close {
    position: absolute; top: 18px; right: 20px; color: #999; font-size: 22px; cursor: pointer; line-height: 1;
}
.pf-modal-editor-wrap { flex: 1; min-height: 0; }
.pf-modal-editor-wrap .tox-tinymce { height: 100% !important; }
.pf-modal-close:hover { color: #FFD700; }
.pf-modal-done {
    margin-top: 16px; background: linear-gradient(90deg,#FFD700,#FFA500); color:#000; font-weight:bold;
    padding: 10px 22px; border-radius: 8px; border: none; cursor: pointer; align-self: flex-end; flex-shrink: 0;
}
.pf-modal-done:hover { transform: scale(1.03); }

/* ===== GALERIA ===== */
.galeria-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-bottom: 20px; }
.galeria-admin-item { position: relative; }
.galeria-admin-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid #444; background-color: #222; display: block; }
.galeria-admin-item form { position: absolute; top: 6px; right: 6px; margin: 0; }
.galeria-admin-remover { background: rgba(168,50,50,0.9); color: #fff; border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.galeria-admin-remover:hover { background: #c23f3f; }

/* ===== ARQUIVOS DE DOWNLOAD ===== */
.downloads-list { list-style: none; padding: 0; margin: 0 0 20px; }
.downloads-list li { display: flex; flex-direction: column; gap: 10px; background-color: #222; padding: 12px 14px; border-radius: 10px; margin-bottom: 8px; }
.downloads-list .dl-row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.downloads-list .dl-info { display: flex; flex-direction: column; }
.downloads-list .dl-nome { color: #fff; font-weight: bold; }
.downloads-list .dl-tamanho { color: #999; font-size: 12px; }
.downloads-list form { margin: 0; }
.dl-row-actions { display: flex; align-items: center; gap: 8px; }
.btn-remover-arquivo { background: #a83232; color: #fff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.btn-remover-arquivo:hover { background: #c23f3f; }
.dl-row-substituir { display: flex; align-items: center; gap: 8px; border-top: 1px solid #333; padding-top: 10px; }
.dl-row-substituir input[type="file"] { margin-bottom: 0; flex: 1; }
.btn-substituir-arquivo { background: #3a3a3a; color: #FFD700; border: 1px solid #FFD700; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.btn-substituir-arquivo:hover { background: #FFD700; color: #000; }
.downloads-empty { color: #999; margin-bottom: 10px; }
.upload-arquivo-form label { margin-top: 0; }
.erro-arquivo { color: #ff6b6b; font-weight: bold; margin-bottom: 15px; }

input[type="file"] {
    padding: 8px; background-color: #1a1a1a; border: 1px dashed #555; color: #ccc; cursor: pointer; width: 100%; border-radius: 8px;
}
input[type="file"]::file-selector-button {
    background: linear-gradient(90deg, #FFD700, #FFA500); color: #000; font-weight: bold; border: none;
    padding: 8px 16px; border-radius: 6px; cursor: pointer; margin-right: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
input[type="file"]::file-selector-button:hover { transform: scale(1.03); box-shadow: 0 0 10px rgba(255,215,0,0.5); }
