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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: #0a0a0a;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #c1242f;
    width: 90%;
    max-width: 500px;
}

.close {
    color: #c1242f;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #ff3344;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#defcomApp {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.defcom-header {
    background: #0a0a0a;
    border: 2px solid #c1242f;
    border-bottom: 3px solid #c1242f;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.defcom-logo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #c1242f;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.defcom-btn {
    padding: 10px 20px;
    background: #c1242f;
    border: 2px solid #8b1a2e;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.defcom-btn:hover {
    background: #ff3344;
    border-color: #c1242f;
}

.login-form, .compose-box {
    background: linear-gradient(145deg, #0d0d0d, #000000);
    border: 2px solid #c1242f;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(193, 36, 47, 0.25);
}

.login-form h2, .modal-content h2 {
    margin-bottom: 20px;
    color: #c1242f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    background: #000000;
    border: 2px solid #333333;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #c1242f;
}

.error-message {
    color: #c41e3a;
    margin-bottom: 15px;
}

.post {
    background: linear-gradient(145deg, #0d0d0d, #000000);
    border: 1px solid #1a1a1a;
    border-left: 4px solid #c1242f;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.post:hover {
    border-left-width: 6px;
    box-shadow: 0 4px 16px rgba(193, 36, 47, 0.3);
    transform: translateX(3px);
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    border: 2px solid #c1242f;
    flex-shrink: 0;
    object-fit: cover;
}

.post-character {
    flex: 1;
}

.post-name {
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.post-handle {
    color: #c1242f;
    font-size: 14px;
    margin-top: 0;
    line-height: 1;
}

.post-meta {
    color: #999999;
    font-size: 14px;
}

.post-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(193, 36, 47, 0.2);
    border: 1px solid #c1242f;
    font-size: 11px;
    color: #c1242f;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 5px;
}

.post-actions-top {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.post-action-icon {
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border: 1px solid #333;
    background: #000;
}

.post-action-icon:hover {
    color: #c1242f;
    border-color: #c1242f;
}

.quoted-tweet {
    border: 1px solid #333;
    padding: 10px;
    margin: 10px 0;
    background: #050505;
}

.quoted-tweet-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.quoted-tweet-content {
    font-size: 14px;
    color: #ccc;
}

.replies-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.reply {
    padding: 15px;
    margin: 10px 0 10px 40px;
    border-left: 2px solid #c1242f;
    background: #050505;
}

.fist-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(21%) sepia(94%) saturate(2664%) hue-rotate(339deg) brightness(91%) contrast(89%);
}

.reply-form {
    margin-top: 10px;
    padding: 10px;
    background: #050505;
    border: 1px solid #333;
}

.reply-form textarea {
    width: 100%;
    min-height: 60px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 8px;
    font-family: 'Copse', serif;
    margin-bottom: 10px;
}

.show-replies-btn {
    color: #c1242f;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.show-replies-btn:hover {
    text-decoration: underline;
}

.post-content {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ffffff;
    white-space: pre-wrap;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #c1242f;
}

.action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999999;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.action-btn:hover {
    color: #c1242f;
}

.user-info {
    color: #ffffff;
    margin-bottom: 10px;
}

.no-posts {
    text-align: center;
    padding: 40px;
    color: #999999;
}