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

:root {
    --bg: #0f1117;
    --bg-card: #1a1d27;
    --bg-input: #252830;
    --border: #2e3140;
    --text: #e4e4e7;
    --text-muted: #8b8d98;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --warm: #f59e0b;
    --warm-hover: #fbbf24;
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ═══════════════ LANDING PAGE ═══════════════ */

/* Navbar */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.landing-nav.scrolled {
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
    text-decoration: none;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--warm));
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    color: white;
}

.nav-logo-img {
    height: 2.2rem;
    width: auto;
}

.footer-logo .nav-logo-img {
    height: 1.6rem;
}

.dashboard-logo {
    height: 1.8rem;
    width: auto;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: color 0.15s;
}

.btn-ghost:hover {
    color: var(--text);
}

.btn-accent {
    background: linear-gradient(135deg, var(--warm), #e08a05);
    color: #000;
    border: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 70% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 30% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    padding: 2rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-glow {
    background: linear-gradient(135deg, var(--warm), var(--warm-hover), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-warm {
    color: var(--warm);
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-sub-small {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--bg-card);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-center {
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--warm);
}

.step-num {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--warm), #e08a05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #000;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    margin: 0.5rem auto 1rem;
    color: var(--accent);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Personas */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.persona {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: border-color 0.2s, transform 0.2s;
}

.persona:hover {
    border-color: var(--warm);
    transform: translateY(-2px);
}

.persona-icon {
    font-size: 2rem;
    line-height: 1;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
}

.feature-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    color: var(--warm);
}

.feature-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Platform logos */
.platforms-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.platform-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.platform-logo-card svg {
    width: 3.5rem;
    height: 3.5rem;
}

/* CTA section */
.section-cta {
    padding: 8rem 0;
    background:
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 70%),
        var(--bg);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.landing-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}

.footer-logo {
    font-size: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Auth Modal */
.auth-modal-body {
    max-width: 420px;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.auth-form h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.auth-form-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-full {
    width: 100%;
}

.auth-switch {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--warm);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.error-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    color: var(--danger);
    font-size: 0.9rem;
}

/* ═══ Landing responsive ═══ */
@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .personas-grid { grid-template-columns: repeat(3, 1fr); }
    .platforms-row { gap: 1.5rem; }
    .hero-content { padding: 6rem 1.5rem 2rem; }
    .section { padding: 4rem 0; }
    .section-cta { padding: 5rem 0; }
}

@media (max-width: 480px) {
    .personas-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-actions .btn-ghost { display: none; }
}

/* ═══════════════ DASHBOARD (below) ═══════════════ */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}

button {
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s;
}

.btn-primary, .auth-form button[type="submit"] {
    background: var(--accent);
    color: white;
}

.btn-primary:hover, .auth-form button[type="submit"]:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.auth-switch {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
}

.error-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    color: var(--danger);
    font-size: 0.9rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 1.25rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-name {
    color: var(--text-muted);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border);
}

.tab {
    background: none;
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Tab content */
.tab-content {
    padding: 1.5rem 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 1rem;
}

/* Media grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.media-card .thumb {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.media-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card .info {
    padding: 0.75rem;
}

.media-card .info .filename {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-card .info .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.media-card .actions {
    padding: 0 0.75rem 0.75rem;
}

.media-card .actions button {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Create form */
.create-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s;
    color: var(--text-muted);
}

.upload-zone:hover {
    border-color: var(--accent);
    color: var(--text);
}

.selected-files {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--bg-input);
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.sf-icon { font-size: 1.1rem; }
.sf-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-size { color: var(--text-muted); font-size: 0.8rem; }
.sf-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.1rem;
    padding: 0 0.3rem;
    cursor: pointer;
}

.platform-checkboxes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Task cards */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.task-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.task-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.task-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.task-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-bottom: 0.35rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.task-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-pending { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.status-processing { background: rgba(99, 102, 241, 0.2); color: var(--accent); }
.status-completed { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.status-failed { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.content-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.content-info {
    padding: 0.75rem;
}

.content-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: capitalize;
}

.badge-type {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
}

.badge-platform {
    background: var(--bg-input);
    color: var(--text-muted);
}

.status-pending_review, .status-pending-review {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-approved {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.content-title {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.content-caption-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.content-actions {
    padding: 0 0.75rem 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body h3 {
    margin-bottom: 1rem;
}

.modal-body label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: flex-end;
}

.approve-preview {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: var(--bg-input);
}

.approve-preview img {
    width: 100%;
    object-fit: cover;
}

/* Preview modal */
.modal-preview {
    max-width: 700px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    padding: 0 0.25rem;
    line-height: 1;
}

.btn-close:hover {
    color: var(--text);
}

.preview-media {
    width: 100%;
    max-height: 50vh;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.preview-media img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
}

.preview-media video {
    max-width: 100%;
    max-height: 50vh;
}

.preview-details {
    margin-bottom: 1rem;
}

.preview-details h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1rem 0 0.5rem 0;
}

.preview-caption-item {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.caption-num {
    color: var(--accent);
    font-weight: 600;
    margin-right: 0.4rem;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-input);
    border-radius: 4px;
    color: var(--accent);
}

/* Suggestions */
.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
    align-items: center;
}

.suggestions-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.suggestion-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}

.suggestion-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Upload */
.upload-btn {
    cursor: pointer;
    display: inline-block;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Social accounts */
.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-card .platform-name {
    font-weight: 600;
    text-transform: capitalize;
}

.account-card .username {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.connect-platforms {
    margin-top: 2rem;
}

.connect-platforms h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.platform-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-platform {
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    color: white;
}

.btn-instagram { background: #e1306c; }
.btn-instagram:hover { background: #c13584; }
.btn-youtube { background: #ff0000; }
.btn-youtube:hover { background: #cc0000; }
.btn-tiktok { background: #010101; border: 1px solid #333; }
.btn-tiktok:hover { background: #1a1a1a; }
.btn-facebook { background: #1877f2; }
.btn-facebook:hover { background: #1565c0; }

/* Posts */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.post-card .post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.post-card .post-platform {
    font-weight: 600;
    text-transform: capitalize;
}

.post-card .post-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.status-draft { background: var(--bg-input); color: var(--text-muted); }
.status-scheduled { background: rgba(99, 102, 241, 0.2); color: var(--accent); }
.status-published { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.status-failed { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.post-card .post-caption {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Notifications */
.notification {
    padding: 0.75rem 1.5rem;
    margin: 0 2rem;
    margin-top: 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    animation: fadeIn 0.2s ease;
}

.notification-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.notification-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    header { padding: 1rem; }
    .tabs { padding: 0 1rem; }
    .tab-content { padding: 1rem; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .platform-buttons { flex-direction: column; }
}
