* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1625 0%, #2d1b3d 100%);
    color: #e8e9ed;
    padding: 20px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff69b4;
    border-radius: 50% 0 50% 0;
    opacity: 0.15;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(30, 25, 40, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.header {
    background: linear-gradient(135deg, #2d1b3d 0%, #3d2a4d 100%);
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.15);
}

.header h1 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    color: #c5c7d0;
    font-size: 14px;
    font-weight: 500;
}

.header-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.messages {
    padding: 24px 32px;
    max-height: 70vh;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.message:hover {
    background: rgba(255, 105, 180, 0.08);
    transform: translateX(2px);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 105, 180, 0.2);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.username {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.timestamp {
    color: #8b8d98;
    font-size: 12px;
    font-weight: 500;
}

.message-text {
    color: #e8e9ed;
    word-wrap: break-word;
    line-height: 1.6;
    white-space: pre-wrap;
}

.embed {
    margin-top: 12px;
    border-left: 4px solid #ff69b4;
    background: rgba(255, 105, 180, 0.05);
    border-radius: 8px;
    padding: 14px 18px;
    max-width: 520px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.embed-title {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.embed-description {
    color: #e8e9ed;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.embed-field {
    margin-top: 12px;
}

.embed-field-name {
    color: #ff69b4;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.embed-field-value {
    color: #e8e9ed;
    font-size: 14px;
    line-height: 1.6;
}

.embed-footer {
    color: #8b8d98;
    font-size: 12px;
    margin-top: 12px;
    font-weight: 500;
}

.embed-image {
    margin-top: 12px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.attachment {
    margin-top: 12px;
    background: rgba(255, 105, 180, 0.08);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ff85c0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.attachment:hover {
    background: rgba(255, 105, 180, 0.15);
    border-color: rgba(255, 105, 180, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.loading {
    text-align: center;
    padding: 51px;
    color: #c5c7d0;
    font-weight: 500;
}

.error {
    text-align: center;
    padding: 50px;
    color: #ff6b9d;
    font-weight: 500;
}

.footer {
    background: linear-gradient(135deg, #2d1b3d 0%, #3d2a4d 100%);
    padding: 16px 32px;
    border-top: 1px solid rgba(255, 105, 180, 0.15);
    text-align: center;
    color: #8b8d98;
    font-size: 12px;
    font-weight: 500;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 25, 40, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff69b4 0%, #c44f86 100%);
    border-radius: 6px;
    border: 2px solid rgba(30, 25, 40, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff85c0 0%, #d45f96 100%);
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header, .messages {
        padding: 16px;
    }

    .message {
        gap: 10px;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }
}
