/* ============================================
   App Para Todos - Tema Premium
   Fundo Preto + Dourado
   ============================================ */

:root {
    --gold: #d4a843;
    --gold-light: #f0d78c;
    --gold-dark: #a07830;
    --gold-glow: rgba(212, 168, 67, 0.4);
    --black: #000000;
    --black-light: #111111;
    --black-medium: #1a1a1a;
    --black-soft: #222222;
    --red: #e74c3c;
    --red-glow: rgba(231, 76, 60, 0.5);
    --green: #27ae60;
    --green-glow: rgba(39, 174, 96, 0.5);
    --white: #ffffff;
    --gray: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--gold);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: var(--black-light);
    border-bottom: 2px solid var(--gold);
    padding: 20px 16px;
    text-align: center;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header p {
    font-size: 13px;
    color: var(--gold-dark);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ============================================
   FORMULÁRIO - Container
   ============================================ */

.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.form-section {
    background: var(--black-light);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

/* ============================================
   CAMPOS DO FORMULÁRIO
   ============================================ */

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-label .optional {
    color: var(--gray);
    font-weight: 400;
    font-size: 11px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--black);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    color: var(--gold-light);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.form-input::placeholder {
    color: #555;
    font-size: 14px;
}

.form-input.error {
    border-color: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
}

.form-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

/* ============================================
   SELECT DOCUMENTO (CPF/CNPJ)
   ============================================ */

.doc-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.doc-row .form-group:first-child {
    width: 120px;
    flex-shrink: 0;
}

.doc-row .form-group:last-child {
    flex: 1;
}

/* ============================================
   SEÇÃO DE REDES SOCIAIS
   ============================================ */

.social-section {
    border-color: rgba(212, 168, 67, 0.3);
}

.social-section .form-section-title {
    color: var(--gold-dark);
}

/* ============================================
   BOTÕES
   ============================================ */

.btn-container {
    margin-top: 24px;
}

.btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border: 2px solid;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-verify {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    animation: btnPulseRed 2s ease-in-out infinite;
}

.btn-verify:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--red-glow);
}

@keyframes btnPulseRed {
    0%, 100% {
        box-shadow: 0 0 5px var(--red-glow);
    }
    50% {
        box-shadow: 0 0 25px var(--red-glow), 0 0 50px rgba(231, 76, 60, 0.2);
    }
}

.btn-verified {
    background: var(--green) !important;
    border-color: var(--green) !important;
    color: var(--white) !important;
    animation: none !important;
    box-shadow: 0 0 15px var(--green-glow) !important;
    cursor: default !important;
}

.btn-create {
    background: transparent;
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    margin-top: 12px;
    cursor: not-allowed;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.btn-create.enabled {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    cursor: pointer;
    opacity: 1;
    animation: btnPulseGold 2s ease-in-out infinite;
}

.btn-create.enabled:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--gold-glow);
}

@keyframes btnPulseGold {
    0%, 100% {
        box-shadow: 0 0 10px var(--gold-glow);
    }
    50% {
        box-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(212, 168, 67, 0.15);
    }
}

/* ============================================
   MODAL DE CONFERÊNCIA
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--black-light);
    border: 2px solid var(--gold);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal h2 {
    font-size: 18px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
}

.modal-item:last-child {
    border-bottom: none;
}

.modal-label {
    font-size: 12px;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 12px;
}

.modal-value {
    font-size: 14px;
    color: var(--gold-light);
    text-align: right;
    word-break: break-word;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.modal-buttons .btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

.btn-modal-edit {
    background: transparent;
    border-color: var(--gold-dark);
    color: var(--gold);
}

.btn-modal-edit:hover {
    background: rgba(212, 168, 67, 0.1);
}

.btn-modal-confirm {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.btn-modal-confirm:hover {
    background: var(--gold-light);
}

/* ============================================
   TELA 2 - APLICATIVO GERADO
   ============================================ */

.app-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 16px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 3px solid var(--gold);
    margin-bottom: 24px;
    box-shadow: 0 0 30px var(--gold-glow);
    object-fit: cover;
}

.app-profissao {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--gold-glow);
}

.app-image {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    border: 2px solid var(--gold);
    margin-bottom: 24px;
    box-shadow: 0 0 25px var(--gold-glow);
    object-fit: cover;
}

.app-nome {
    font-size: 20px;
    font-weight: 600;
    color: var(--gold-light);
    text-align: center;
    margin-bottom: 8px;
}

.app-descricao {
    font-size: 15px;
    color: var(--gold-dark);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.5;
}

.app-desde {
    font-size: 14px;
    color: var(--gold-dark);
    text-align: center;
    margin-bottom: 28px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.app-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 24px;
}

/* ============================================
   BOTÕES DE CONTATO
   ============================================ */

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-bottom: 24px;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* WhatsApp */
.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    color: #25d366;
}

.btn-whatsapp:hover {
    background: #25d366;
    color: #000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* Instagram */
.btn-instagram {
    background: rgba(225, 48, 108, 0.15);
    border-color: #e1306c;
    color: #e1306c;
}

.btn-instagram:hover {
    background: #e1306c;
    color: #fff;
    box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4);
}

/* Facebook */
.btn-facebook {
    background: rgba(24, 119, 242, 0.15);
    border-color: #1877f2;
    color: #1877f2;
}

.btn-facebook:hover {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
}

/* Site */
.btn-site {
    background: rgba(212, 168, 67, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-site:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 4px 20px var(--gold-glow);
}

/* ============================================
   BOTÃO COMPARTILHAR
   ============================================ */

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--gold-dark);
    border-radius: 10px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    font-family: inherit;
}

.btn-share:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.btn-share svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   BOTÃO INSTALAR
   ============================================ */

.btn-install {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 10px;
    color: var(--black);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    animation: installPulse 2s ease-in-out infinite;
}

.btn-install.visible {
    display: flex;
}

.btn-install:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--gold-glow);
}

@keyframes installPulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--gold-glow);
    }
    50% {
        box-shadow: 0 0 35px var(--gold-glow), 0 0 70px rgba(212, 168, 67, 0.15);
    }
}

.btn-install svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   MENSAGEM DE SUCESSO
   ============================================ */

.success-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 16px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 30px var(--green-glow);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--green);
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.success-text {
    font-size: 15px;
    color: var(--gold-dark);
    margin-bottom: 24px;
    line-height: 1.6;
}

.success-link {
    display: inline-block;
    padding: 14px 28px;
    background: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 10px;
    color: var(--black);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.success-link:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--gold-glow);
}

.success-new {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--gold-dark);
    border-radius: 10px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.success-new:hover {
    border-color: var(--gold);
    background: rgba(212, 168, 67, 0.1);
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 360px) {
    .header h1 {
        font-size: 18px;
    }

    .app-profissao {
        font-size: 22px;
    }

    .contact-btn {
        font-size: 12px;
        padding: 12px 8px;
    }
}
