:root {
    --bg-main: #05070c;
    --bg-card: rgba(21, 27, 43, 0.7);
    --border-color: rgba(255, 255, 255, 0.05);
    --accent-color: #ffd700;
    --text-main: #f1f5f9;
    --text-dim: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); min-height: 100vh; display: flex; justify-content: center; padding: 20px; }

.app-container { width: 100%; max-width: 600px; display: flex; flex-direction: column; gap: 20px; }

.app-header {
    background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-color);
    padding: 15px 20px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 20px; font-weight: 800; color: var(--accent-color); }

.google-btn { background: white; color: #0f172a; border: none; padding: 8px 16px; border-radius: 20px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.google-btn:hover { background: #e2e8f0; }
.logout-btn { background: transparent; color: #ff3b30; border: 1px solid rgba(255,59,48,0.2); padding: 6px 14px; border-radius: 20px; cursor: pointer; }

.tweet-box-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; padding: 20px; }
.user-info-row { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent-color); }
.username { font-weight: 600; font-size: 15px; }

textarea {
    width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 14px;
    padding: 12px; color: white; font-size: 15px; resize: none; height: 90px; outline: none;
}
textarea:focus { border-color: var(--accent-color); }

.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.counter { font-size: 12px; color: var(--text-dim); }
.post-btn { background: var(--accent-color); color: #05070c; border: none; padding: 10px 20px; border-radius: 20px; font-weight: 600; cursor: pointer; }

.feed-container h3 { font-size: 15px; color: var(--text-dim); margin-bottom: 15px; text-align: right; }
.tweet-item {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px;
    padding: 20px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px;
    animation: fadeIn 0.3s ease;
}
.tweet-text { font-size: 15px; line-height: 1.6; text-align: right; white-space: pre-wrap; }
.tweet-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-dim); }

.delete-btn { background: transparent; border: none; color: #ff3b30; cursor: pointer; font-size: 12px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
