* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Linha dourada no topo */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #FFD700, #D4AF37);
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

/* Textura de mármore preto realista e VISÍVEL */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #080808;
    background-image:
        /* Textura granular básica - SUTIL */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.08) 3px,
            rgba(255, 255, 255, 0.08) 6px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.08) 3px,
            rgba(255, 255, 255, 0.08) 6px
        ), 
        /* Veios de mármore - linhas irregulares e onduladas SUTIS */
        linear-gradient(30deg, transparent 48%, rgba(255, 255, 255, 0.15) 49%, rgba(255, 255, 255, 0.25) 49.5%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.25) 50.5%, rgba(255, 255, 255, 0.15) 51%, transparent 52%),
        linear-gradient(65deg, transparent 48.5%, rgba(255, 255, 255, 0.12) 49%, rgba(255, 255, 255, 0.22) 49.5%, rgba(255, 255, 255, 0.27) 50%, rgba(255, 255, 255, 0.22) 50.5%, rgba(255, 255, 255, 0.12) 51%, transparent 51.5%),
        linear-gradient(105deg, transparent 48%, rgba(255, 255, 255, 0.14) 48.5%, rgba(255, 255, 255, 0.24) 49%, rgba(255, 255, 255, 0.29) 49.5%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0.14) 50.5%, transparent 51%),
        linear-gradient(145deg, transparent 48.5%, rgba(255, 255, 255, 0.13) 49%, rgba(255, 255, 255, 0.23) 49.5%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.23) 50.5%, rgba(255, 255, 255, 0.13) 51%, transparent 51.5%),
        /* Veios mais largos e difusos - características do mármore SUTIS */
        radial-gradient(ellipse 1400px 180px at 78% 22%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 8%, rgba(255, 255, 255, 0.12) 16%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0.03) 45%, transparent 60%),
        radial-gradient(ellipse 1000px 130px at 22% 48%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.14) 10%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.07) 30%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.03) 50%, transparent 65%),
        radial-gradient(ellipse 700px 150px at 18% 72%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.12) 12%, rgba(255, 255, 255, 0.09) 25%, rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.02) 62%, transparent 75%),
        /* Veio vertical pronunciado - SUTIL */
        radial-gradient(ellipse 140px 1000px at 64% 50%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.2) 4%, rgba(255, 255, 255, 0.15) 10%, rgba(255, 255, 255, 0.12) 18%, rgba(255, 255, 255, 0.08) 26%, rgba(255, 255, 255, 0.05) 34%, rgba(255, 255, 255, 0.03) 42%, transparent 55%),
        /* Manchas irregulares de mármore - SUTIS */
        radial-gradient(ellipse 600px 400px at 15% 68%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.12) 15%, rgba(255, 255, 255, 0.09) 30%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.04) 58%, rgba(255, 255, 255, 0.02) 70%, transparent 85%),
        radial-gradient(ellipse 500px 350px at 84% 84%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.11) 18%, rgba(255, 255, 255, 0.08) 35%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.03) 63%, rgba(255, 255, 255, 0.02) 75%, transparent 88%),
        radial-gradient(ellipse 800px 200px at 50% 30%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.09) 20%, rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.02) 70%, transparent 85%),
        /* Variação sutil de profundidade do mármore */
        radial-gradient(ellipse at 50% 50%, rgba(10, 10, 10, 0.95) 0%, transparent 70%);
    background-size: 
        6px 6px,
        6px 6px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    filter: contrast(1.2) brightness(0.95);
    z-index: 0;
}

.container {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideIn 0.6s ease-out;
}

/* Top Section */
.top-section {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
    animation: slideIn 0.8s ease-out;
}

.profile-picture {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100px;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
}

.profile-picture img {
    opacity: 0 !important;
    transition: opacity 0.2s ease-in;
    visibility: hidden;
}

/* Mostrar imagem apenas quando tiver src válido E classe loaded */
.profile-picture img.loaded {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Não mostrar imagem padrão automaticamente - só após carregar */
.profile-picture img[src=""] {
    opacity: 0 !important;
    visibility: hidden !important;
}

.profile-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #D4AF37;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.6);
    transition: all 0.3s ease;
    animation: slideIn 1s ease-out;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.profile-picture img:hover,
.profile-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.5);
}

.profile-picture {
    position: relative;
}

.profile-picture img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #000;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.user-info {
    color: #D4AF37;
}

.username-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.username {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    animation: slideInLeft 0.8s ease-out, textGlow 2s ease-in-out infinite;
}

.username:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.8), 0 0 35px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.verified-icon {
    color: #24f111;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 215, 0, 0.6);
}

.options-btn {
    background: none;
    border: none;
    color: #D4AF37;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.options-btn:hover {
    transform: rotate(90deg) scale(1.2);
    color: #FFD700;
}

.prompt {
    font-size: 14px;
    color: #FFD700;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 6px rgba(255, 215, 0, 0.4);
}

/* Form Section */
.message-form {
    background: transparent;
    animation: slideIn 0.6s ease-out;
}

.input-group {
    margin-bottom: 20px;
    animation: slideIn 0.8s ease-out;
    animation-fill-mode: both;
}

.input-group:nth-child(1) { animation-delay: 0.1s; }
.input-group:nth-child(2) { animation-delay: 0.2s; }
.input-group:nth-child(3) { animation-delay: 0.3s; }
.input-group:nth-child(4) { animation-delay: 0.4s; }
.input-group:nth-child(5) { animation-delay: 0.5s; }
.input-group:nth-child(6) { animation-delay: 0.6s; }

.input-label {
    display: block;
    font-size: 12px;
    color: #FFD700;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.input-field {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    color: #000;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.input-field:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3), 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.input-field.error {
    background: #fff5f5;
    border: 2px solid #ff4444;
    animation: shake 0.5s;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2);
}

.input-field.error:focus {
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.3), 0 0 0 3px rgba(255, 68, 68, 0.2);
}

.input-field::placeholder {
    color: #999;
}

.message-input-wrapper {
    position: relative;
}

.message-input {
    padding-right: 45px;
}

.message-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #D4AF37;
    font-size: 18px;
    font-weight: bold;
}

.character-counter {
    font-size: 12px;
    color: #FFD700;
    margin-top: 5px;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.character-counter span {
    transition: all 0.3s ease;
    display: inline-block;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #4CAF50;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    animation: slideInLeft 0.6s ease-out;
}

.action-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
}

.action-btn:active {
    background: #3d8b40;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

/* Animações */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes success-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.8), 0 0 35px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    animation: slideIn 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    transform: translateX(5px);
}

.checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #D4AF37;
    transition: all 0.3s ease;
    transform: scale(1);
}

.checkbox:hover {
    transform: scale(1.2);
}

.checkbox:checked {
    animation: success-pulse 0.3s ease;
}

.checkbox-label {
    font-size: 14px;
    color: #D4AF37;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 6px rgba(212, 175, 55, 0.4);
}

/* Value Input */
.value-input-wrapper {
    position: relative;
}

.value-input {
    font-weight: bold;
    font-size: 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.value-input:hover:not(:focus) {
    background: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.min-value-text {
    font-size: 12px;
    color: #FFD700;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.min-value-text.error-text {
    color: #ff6666;
    font-weight: bold;
    animation: fadeIn 0.3s ease;
}

/* Continue Button */
.continue-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #1a1a1a;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    animation: slideIn 1s ease-out, glow 2s ease-in-out infinite;
    overflow: hidden;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.continue-btn:hover::before {
    width: 300px;
    height: 300px;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FFED4E);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px) scale(1.02);
}

.continue-btn:active {
    background: linear-gradient(135deg, #B8941F, #D4AF37);
    transform: translateY(-1px) scale(0.98);
}

.continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4A90E2;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideIn 1.2s ease-out, pulse 2s ease-in-out infinite;
    animation-delay: 0.5s, 2s;
}

.floating-chat-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.5);
    background: #5BA0F2;
}

.floating-chat-btn:active {
    transform: scale(1.05) rotate(-5deg);
}

/* Player de Áudio */
#audioPlayerContainer {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

#audioPlayerContainer audio {
    width: 100%;
    margin-bottom: 10px;
    outline: none;
    filter: invert(1) hue-rotate(180deg) brightness(1.2) saturate(0.8);
    border-radius: 8px;
}

#audioPlayerContainer audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.1);
}

#audioPlayerContainer audio::-webkit-media-controls-play-button {
    background-color: #FFD700;
    border-radius: 50%;
}

#audioPlayerContainer audio::-webkit-media-controls-current-time-display,
#audioPlayerContainer audio::-webkit-media-controls-time-remaining-display {
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .username {
        font-size: 24px;
    }
    
    .floating-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    #audioPlayerContainer {
        padding: 12px;
    }
    
    #audioPlayerContainer audio {
        font-size: 12px;
    }
}

