/* ============================================================
   Facebook Page Automation — Premium Dark Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* -------------------- CSS Variables -------------------- */
:root {
    --bg-primary: #06081a;
    --bg-secondary: #0d1025;
    --bg-card: rgba(15, 18, 42, 0.85);
    --bg-card-hover: rgba(20, 24, 55, 0.95);
    --bg-input: rgba(10, 13, 30, 0.7);
    
    --accent-blue: #4f8df9;
    --accent-purple: #9b6dff;
    --accent-gradient: linear-gradient(135deg, #4f8df9 0%, #9b6dff 100%);
    --accent-glow: rgba(79, 141, 249, 0.3);
    --facebook-blue: #1877f2;
    --facebook-blue-hover: #0d65d9;
    
    --text-primary: #eef1f8;
    --text-secondary: #8892b0;
    --text-muted: #5a6380;
    
    --success: #00d68f;
    --success-bg: rgba(0, 214, 143, 0.1);
    --error: #ff6b6b;
    --error-bg: rgba(255, 107, 107, 0.1);
    --warning: #ffc145;
    --warning-bg: rgba(255, 193, 69, 0.1);
    
    --border: rgba(255, 255, 255, 0.06);
    --border-active: rgba(79, 141, 249, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(79, 141, 249, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* -------------------- Reset & Base -------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* -------------------- Animated Background -------------------- */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(79, 141, 249, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(155, 109, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(0, 214, 143, 0.03) 0%, transparent 40%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-3%, -3%) rotate(3deg); }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(79, 141, 249, 0.15);
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(155, 109, 255, 0.12);
    top: 50%;
    right: 10%;
    animation-delay: -4s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(0, 214, 143, 0.1);
    bottom: 10%;
    left: 40%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* -------------------- Layout Containers -------------------- */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== LANDING PAGE ==================== */
.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.landing-hero {
    text-align: center;
    max-width: 540px;
    animation: fadeInUp 0.8s ease;
}

.landing-logo {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.landing-logo::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-lg);
    background: var(--accent-gradient);
    z-index: -1;
    filter: blur(12px);
    opacity: 0.5;
}

.landing-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Facebook Login Button */
.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--facebook-blue);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-facebook::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn-facebook:hover {
    background: var(--facebook-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.35);
}

.btn-facebook:hover::before {
    opacity: 1;
}

.btn-facebook:active {
    transform: translateY(0);
}

.btn-facebook svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    max-width: 700px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== DASHBOARD ==================== */

/* -- Header -- */
.header {
    background: rgba(6, 8, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.header-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.header-brand span {
    font-weight: 700;
    font-size: 1.1rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border);
}

.header-username {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.btn-logout {
    padding: 8px 18px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--error);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

/* -- Dashboard Main -- */
.dashboard {
    padding: 30px 0 60px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* -- Section Card -- */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: var(--transition);
}

.section-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.section-title-icon {
    font-size: 18px;
}

.section-badge {
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.section-body {
    padding: 18px 22px;
}

/* -- Pages Section -- */
.pages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
}

.pages-list::-webkit-scrollbar {
    width: 4px;
}

.pages-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.page-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.page-item:hover {
    background: rgba(79, 141, 249, 0.05);
    border-color: var(--border-active);
}

.page-item.active {
    background: rgba(79, 141, 249, 0.08);
    border-color: var(--accent-blue);
    box-shadow: inset 0 0 0 1px var(--accent-blue);
}

.page-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-gradient);
    border-radius: 0 3px 3px 0;
}

.page-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.page-info {
    flex: 1;
    min-width: 0;
}

.page-name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.page-check {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 11px;
    color: transparent;
}

.page-item.active .page-check {
    background: var(--accent-gradient);
    border-color: var(--accent-blue);
    color: #fff;
}

.no-pages {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-muted);
}

.no-pages-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-pages p {
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.btn-link-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 22px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-link-page:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* -- Post Composer -- */
.composer-section {
    grid-column: 1 / -1;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.selected-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(79, 141, 249, 0.1);
    border: 1px solid rgba(79, 141, 249, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.selected-page-badge .remove-page {
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.selected-page-badge .remove-page:hover {
    opacity: 1;
}

.no-page-selected {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.composer-textarea {
    width: 100%;
    min-height: 130px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
    outline: none;
}

.composer-textarea::placeholder {
    color: var(--text-muted);
}

.composer-textarea:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px rgba(79, 141, 249, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: -8px;
}

/* Image Upload */
.image-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.image-upload-zone:hover,
.image-upload-zone.drag-over {
    border-color: var(--accent-blue);
    background: rgba(79, 141, 249, 0.04);
}

.image-upload-zone.drag-over {
    box-shadow: inset 0 0 20px rgba(79, 141, 249, 0.1);
}

.upload-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.image-upload-zone p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.image-upload-zone span {
    color: var(--accent-blue);
    font-weight: 500;
    text-decoration: underline;
}

.upload-hint {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 6px;
}

.image-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Image Preview */
.image-preview {
    display: none;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-preview.active {
    display: block;
}

.image-preview img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.image-preview-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.image-preview-remove:hover {
    background: var(--error);
}

/* Composer Actions */
.composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn-post {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-post::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn-post:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 141, 249, 0.3);
}

.btn-post:hover:not(:disabled)::before {
    opacity: 1;
}

.btn-post:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-post.loading {
    pointer-events: none;
}

.btn-post .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-post.loading .spinner {
    display: block;
}

.btn-post.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -- Post History -- */
.history-section {
    grid-column: 1 / -1;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.history-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

.history-status.success {
    background: var(--success);
    box-shadow: 0 0 8px rgba(0, 214, 143, 0.4);
}

.history-status.failed {
    background: var(--error);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.history-page-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.history-type {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-type.text {
    background: rgba(79, 141, 249, 0.1);
    color: var(--accent-blue);
}

.history-type.image {
    background: rgba(155, 109, 255, 0.1);
    color: var(--accent-purple);
}

.history-message {
    font-size: 0.83rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.history-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.history-error {
    font-size: 0.78rem;
    color: var(--error);
    margin-top: 4px;
    padding: 6px 10px;
    background: var(--error-bg);
    border-radius: var(--radius-sm);
}

.no-history {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.no-history-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    min-width: 300px;
    max-width: 420px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s ease;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid;
}

.toast.success {
    background: rgba(0, 214, 143, 0.12);
    border-color: rgba(0, 214, 143, 0.25);
    color: var(--success);
}

.toast.error {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.25);
    color: var(--error);
}

.toast.warning {
    background: rgba(255, 193, 69, 0.12);
    border-color: rgba(255, 193, 69, 0.25);
    color: var(--warning);
}

.toast.info {
    background: rgba(79, 141, 249, 0.12);
    border-color: rgba(79, 141, 249, 0.25);
    color: var(--accent-blue);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    transition: var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ==================== UTILITY ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-in {
    animation: fadeInUp 0.5s ease both;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }

/* ==================== Skeleton Loader ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255,255,255,0.04) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-page {
    height: 64px;
    margin-bottom: 10px;
}

/* ==================== Alert Messages ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.4s ease;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid rgba(0, 214, 143, 0.2);
    color: var(--success);
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: var(--error);
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid rgba(255, 193, 69, 0.2);
    color: var(--warning);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .header-username {
        display: none;
    }
    
    .composer-actions {
        flex-direction: column;
    }
    
    .btn-post {
        width: 100%;
        justify-content: center;
    }
    
    .toast {
        min-width: auto;
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .landing-hero h1 {
        font-size: 1.5rem;
    }
    
    .section-body {
        padding: 14px 16px;
    }
    
    .header-inner {
        padding: 0 14px;
    }
}
