* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #cccccc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.header {
    margin-bottom: 80px;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid #333;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.login-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.discord-btn {
    background: #5865F2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.user-menu {
    display: none;
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #333;
}

.user-name-small {
    color: #ffffff;
    font-weight: 500;
}

.user-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    background: #333;
    color: #cccccc;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn:hover {
    background: #3a3a3a;
    border-color: #555;
    transform: translateY(-1px);
}

.btn.primary {
    background: #5865F2;
    border-color: #5865F2;
}

.btn.primary:hover {
    background: #4752C4;
}

.btn.danger {
    background: #e74c3c;
    border-color: #e74c3c;
}

.btn.danger:hover {
    background: #c0392b;
}

.sections-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.section {
    width: 100%;
    text-align: center;
}

.section h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: #cccccc;
    text-align: center;
}

.links-horizontal {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    justify-content: center;
}

.links-horizontal::-webkit-scrollbar {
    height: 6px;
}

.links-horizontal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.links-horizontal::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.links-horizontal::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.link-card {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #cccccc;
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-4px);
    background: #1f1f1f;
    border-color: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.link-image {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #1f1f1f;
    border-radius: 6px;
    overflow: hidden;
    padding: 8px;
}

.link-image img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px;
}

.link-info {
    text-align: center;
}

.link-info h3 {
    font-weight: 500;
    font-size: 1rem;
    color: #aaaaaa;
    margin: 0;
}

.message-page {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.user-profile {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #333;
    margin: 0 auto 15px;
    display: block;
}

.user-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 10px;
}

.user-url {
    background: #1f1f1f;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #aaaaaa;
    font-weight: 500;
    border: 1px solid #333;
    font-size: 0.95rem;
}

.user-url span {
    color: #5865F2;
}

.message-editor {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #cccccc;
    font-size: 1rem;
}

.message-input {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 1rem;
    color: #cccccc;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

.message-input:focus {
    outline: none;
    border-color: #5865F2;
    background: #222;
}

.message-input::placeholder {
    color: #666666;
}

.char-counter {
    text-align: right;
    font-size: 0.9rem;
    color: #666666;
    margin-top: 8px;
}

.char-counter.warning {
    color: #f39c12;
}

.char-counter.danger {
    color: #e74c3c;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn.success {
    background: #00d4aa;
    border-color: #00d4aa;
    color: white;
}

.btn.success:hover {
    background: #00b894;
    border-color: #00b894;
}

.success-message {
    background: #1f2f1f;
    color: #4ade80;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #2a4a2a;
    margin-bottom: 20px;
    display: none;
}

.public-view {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.public-header {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.public-message {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-left: 4px solid #5865F2;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
    color: #cccccc;
}

.empty-message {
    color: #666666;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.4rem;
        text-align: center;
    }

    .link-card {
        min-width: 180px;
        max-width: 180px;
        padding: 18px;
    }

    .sections-container {
        gap: 40px;
    }

    .login-bar {
        position: static;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .link-card {
        min-width: 160px;
        max-width: 160px;
        padding: 16px;
    }

    .links-horizontal {
        gap: 15px;
    }

    .header {
        margin-bottom: 60px;
    }

    .message-editor, .user-profile, .public-header, .public-message {
        padding: 20px;
    }
}
.embed-warning {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.char-counter.warning {
    color: #ff6b6b;
    font-weight: bold;
}