/* Tema geral */
:root {
    --bg-primary: #050505;
    --bg-secondary: rgba(20, 20, 20, 0.85);
    --bg-card: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.9));
    --text-primary: #f5f5f5;
    --text-muted: #b3b3b3;
    --accent: #d2ae6d;
    --accent-dark: #b18943;
    --border-radius: 22px;
    --transition: 0.2s ease-in-out;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top, rgba(210, 174, 109, 0.08), transparent 45%), var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.page-wrapper {
    margin: 0 auto;
    padding: 40px 20px 60px;
    max-width: 960px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.hero.compact {
    margin-bottom: 24px;
}

.brand {
    margin-bottom: 20px;
}

.brand img {
    max-width: 250px;
    display: block;
}

.brand-placeholder {
    font-size: 22px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-text h1 {
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 12px;
}

.hero-text p {
    margin: 0;
    /* max-width: 640px; */
    color: var(--text-muted);
    line-height: 1.6;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 36px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(210, 174, 109, 0.12);
    display: grid;
    gap: 20px;
}

.card.narrow {
    max-width: 420px;
    margin: 0 auto;
}

form {
    display: grid;
    gap: 16px;
}

form h2 {
    margin: 0;
    font-size: 1.6rem;
}

label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(210, 174, 109, 0.2);
    background: rgba(8, 8, 8, 0.85);
    color: var(--text-primary);
    transition: border var(--transition), transform var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.primary-button,
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0b0b0b;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.primary-button:hover,
.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(210, 174, 109, 0.2);
}

.primary-button:active,
.download-button:active {
    transform: translateY(0);
}

.form-error {
    margin: -8px 0 0;
    font-size: 0.85rem;
    color: #ffb8b8;
}

.success-message {
    background: rgba(11, 11, 11, 0.85);
    border-radius: var(--border-radius);
    border: 1px solid rgba(210, 174, 109, 0.18);
    padding: 24px;
    text-align: center;
    display: grid;
    gap: 12px;
}

.success-message h3 {
    margin: 0;
    font-size: 1.45rem;
}

.success-message p {
    margin: 0;
    color: var(--text-muted);
}

.footer-note {
    margin-top: 42px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-note a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-note a:hover {
    color: #f1d7a9;
}

.admin-page .page-wrapper {
    max-width: 1080px;
}

.admin-wrapper .card {
    gap: 24px;
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-header h2 {
    margin: 0;
}

.card-header p {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background: rgba(6, 6, 6, 0.75);
    border-radius: 18px;
    overflow: hidden;
}

thead {
    background: rgba(210, 174, 109, 0.1);
}

th,
td {
    text-align: left;
    padding: 16px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(210, 174, 109, 0.08);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(210, 174, 109, 0.05);
}

tbody a {
    color: var(--accent);
    text-decoration: none;
}

.empty-state {
    margin: 0;
    text-align: center;
    color: var(--text-muted);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.admin-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.admin-link:hover {
    color: #f1d7a9;
}

.login-hint {
    margin-top: -6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 32px 16px 48px;
    }

    .card {
        padding: 28px 20px;
    }

    table {
        min-width: 100%;
    }
}

@media (max-width: 540px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    input {
        font-size: 1rem;
    }

    .primary-button,
    .download-button {
        width: 100%;
    }
}
