/* GuruDev — Base Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
    display: flex;
    min-height: 100vh;
    background: #f5f8fb;
    color: #3d3d4e;
    font-size: 14px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: 220px;
    background: #e8eff7;
    color: #3d4550;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    border-right: 1px solid #d4dfe9;
}

.sidebar-brand {
    padding: 10px 20px 20px;
    border-bottom: 1px solid #c8d6e3;
    margin-bottom: 10px;
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    position: relative;
    overflow: hidden;
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0%, 80%, 100% {
        filter: brightness(1);
    }
    90% {
        filter: brightness(1.4) drop-shadow(0 0 6px rgba(212, 114, 106, 0.5));
    }
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #6a8daa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar a svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar a:hover svg {
    opacity: 1;
}

.sidebar a:hover,
.sidebar a.active {
    background: #dce8f2;
    color: #2e5f85;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
    margin-left: 220px;
    padding: 32px 40px;
    flex: 1;
    width: calc(100% - 220px);
    max-width: 1400px;
}

.main-content > h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* ============================================================
   DASHBOARD — TOP BAR
   ============================================================ */

.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.dash-topbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b6b96;
    margin-bottom: 2px;
}

.dash-subtitle {
    color: #8a9fb3;
    font-size: 0.85rem;
}

.dash-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-switcher {
    padding: 8px 12px;
    border: 1px solid #d4dfe9;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    color: #3b6b96;
    cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background: #d4726a;
    color: #fff;
}

.btn-primary:hover {
    background: #c4625a;
}

.btn-outline {
    background: transparent;
    color: #6a8daa;
    border: 1px solid #d4dfe9;
}

.btn-outline:hover {
    background: #eef3f8;
    color: #3b6b96;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

/* ============================================================
   STATS ROW
   ============================================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #dde7ef;
}

.stat-card:nth-child(1) { border-top: 3px solid #a0c4de; }
.stat-card:nth-child(2) { border-top: 3px solid #a8d5c2; }
.stat-card:nth-child(3) { border-top: 3px solid #f0c6a8; }
.stat-card:nth-child(4) { border-top: 3px solid #a8c8e8; }

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b6b96;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a6a85;
    margin-bottom: 2px;
}

.stat-detail {
    font-size: 0.75rem;
    color: #97adbf;
}

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

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

.dash-col-main,
.dash-col-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dde7ef;
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3b6b96;
}

.card-link {
    font-size: 0.8rem;
    color: #6a9ec4;
    text-decoration: none;
}

.card-link:hover {
    color: #2e5f85;
}

/* ============================================================
   POST LIST
   ============================================================ */

.post-list {
    display: flex;
    flex-direction: column;
}

.post-item,
.platform-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8eff5;
}

.post-item:last-child,
.platform-item:last-child {
    border-bottom: none;
}

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

.post-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #3d3d4e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta {
    font-size: 0.75rem;
    color: #97adbf;
    margin-top: 2px;
}

/* Platform badges */
.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.platform-badge.ig {
    background: linear-gradient(135deg, #f2c6d0, #e8b4c8, #d4aec0);
    color: #8a5670;
}

.platform-badge.tt {
    background: #c8dce8;
    color: #4a6578;
}

/* Content type badge */
.content-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #eaf1f7;
    color: #6a8daa;
    flex-shrink: 0;
}

/* Status badges */
.post-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.status-queued {
    background: #e4eff8;
    color: #5889b3;
}

.status-draft {
    background: #ecf1f5;
    color: #8a9fb3;
}

.status-ready {
    background: #faf0e4;
    color: #c4956a;
}

.status-published {
    background: #e4f2ec;
    color: #6aab8e;
}

.status-failed {
    background: #f8e8e8;
    color: #c48a8a;
}

/* ============================================================
   MINI CALENDAR
   ============================================================ */

.mini-calendar {
    user-select: none;
}

.cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #97adbf;
    margin-bottom: 6px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    gap: 2px;
}

.cal-grid span {
    padding: 6px 0;
    border-radius: 6px;
    cursor: default;
}

.cal-empty {
    visibility: hidden;
}

.cal-today {
    background: #6a9ec4;
    color: #fff;
    font-weight: 700;
}

.cal-has-posts {
    position: relative;
    font-weight: 600;
    color: #6a9ec4;
}

.cal-has-posts::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #6a9ec4;
}

/* ============================================================
   PLATFORM STATUS
   ============================================================ */

.token-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.token-ok {
    background: #8cc8a8;
}

.token-warn {
    background: #e8c88a;
}

.token-error {
    background: #d4a0a0;
}

/* ============================================================
   AI FEED
   ============================================================ */

.ai-feed {
    display: flex;
    flex-direction: column;
}

.ai-item {
    padding: 10px 0;
    border-bottom: 1px solid #e8eff5;
}

.ai-item:last-child {
    border-bottom: none;
}

.ai-prompt {
    font-size: 0.8rem;
    color: #4a6a85;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-meta {
    font-size: 0.7rem;
    color: #97adbf;
    margin-top: 3px;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-body {
    background: url('../images/background.jpg') no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}


.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dde7ef;
    padding: 40px 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.auth-logo {
    width: 44px;
    height: 44px;
}

.auth-brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: #d4726a;
    letter-spacing: -0.5px;
}

.auth-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2e3e4e;
    text-align: center;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: #8a9fb3;
    text-align: center;
    margin-bottom: 24px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #dde7ef;
    transition: background 0.15s, box-shadow 0.15s;
}

.btn-google {
    background: #fff;
    color: #3d4550;
}

.btn-google:hover {
    background: #f5f8fb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.btn-apple {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.btn-apple:hover {
    background: #333;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e8ef;
}

.auth-divider span {
    padding: 0 14px;
    font-size: 0.75rem;
    color: #97adbf;
    white-space: nowrap;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a6a85;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4dfe9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2e3e4e;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder {
    color: #b0bec5;
}

.form-group input:focus {
    outline: none;
    border-color: #d4726a;
    box-shadow: 0 0 0 3px rgba(212, 114, 106, 0.15);
}

/* Auth footer link */
.auth-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #8a9fb3;
    margin-top: 20px;
}

.auth-footer a {
    color: #d4726a;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: #b85a52;
}

/* Alerts */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.alert-error {
    background: #fdf0f0;
    color: #a05252;
    border: 1px solid #f0d4d4;
}

.alert-success {
    background: #edf7f1;
    color: #3d7a5a;
    border: 1px solid #c8e6d6;
}

/* ============================================================
   SIDEBAR USER
   ============================================================ */

.sidebar-divider {
    height: 1px;
    background: #c8d6e3;
    margin: 8px 20px;
}

.sidebar-user {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid #c8d6e3;
}

.sidebar-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e5f85;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.7rem;
    color: #8a9fb3;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 0.75rem;
    color: #6a8daa;
}

.sidebar-user a:hover {
    color: #2e5f85;
    background: none;
}

/* ============================================================
   WIZARD
   ============================================================ */

.wizard-container {
    max-width: 900px;
}

.wizard-steps {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #97adbf;
    background: #eef3f8;
    transition: background 0.2s, color 0.2s;
}

.wizard-step.active {
    background: #d4726a;
    color: #fff;
}

.wizard-step.completed {
    background: #e4f2ec;
    color: #6aab8e;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    font-weight: 700;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

.wizard-desc {
    color: #8a9fb3;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.wizard-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e8eff5;
}

/* Goal Grid */
.goal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.goal-option input { display: none; }

.goal-card {
    padding: 14px;
    border: 2px solid #dde7ef;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.goal-card strong {
    display: block;
    font-size: 0.8rem;
    color: #3d3d4e;
    margin-bottom: 2px;
}

.goal-card span {
    font-size: 0.7rem;
    color: #97adbf;
}

.goal-option input:checked + .goal-card {
    border-color: #d4726a;
    background: #fdf5f4;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.platform-option input { display: none; }

.platform-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 2px solid #dde7ef;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
}

.platform-option input:checked + .platform-card {
    border-color: #d4726a;
    background: #fdf5f4;
}

.platform-badge.blog {
    background: #a8d5c2;
    color: #3a6b5a;
}

/* Form extras */
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4dfe9;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #2e3e4e;
    background: #fff;
    transition: border-color 0.15s;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4726a;
    box-shadow: 0 0 0 3px rgba(212, 114, 106, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.form-hint {
    font-size: 0.75rem;
    color: #97adbf;
    margin-top: 4px;
}

.label-optional {
    font-weight: 400;
    color: #97adbf;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-half {
    flex: 1;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d4dfe9;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    color: #3b6b96;
}

/* Generating / Loading */
.generating-state {
    text-align: center;
    padding: 60px 20px;
}

.generating-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e8eff5;
    border-top-color: #d4726a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

/* Content Edit Cards */
.content-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-edit-card {
    background: #fff;
    border: 1px solid #dde7ef;
    border-radius: 10px;
    padding: 20px;
}

.content-edit-card .card-header {
    margin-bottom: 16px;
}

.btn-regen {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    border: 1px solid #d4dfe9;
    border-radius: 6px;
    background: #fff;
    color: #6a8daa;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-regen:hover {
    background: #f5f8fb;
    color: #d4726a;
}

.image-prompt-box,
.content-notes {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f5f8fb;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #4a6a85;
}

.content-angle {
    font-size: 0.75rem;
    color: #97adbf;
    font-style: italic;
}

/* Schedule Items */
.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #dde7ef;
    border-radius: 10px;
}

.schedule-info strong {
    font-size: 0.85rem;
    color: #3d3d4e;
}

.schedule-datetime {
    padding: 8px 12px;
    border: 1px solid #d4dfe9;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
}

/* ============================================================
   CONTENT TABLE
   ============================================================ */

.content-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.content-table {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dde7ef;
    overflow: hidden;
}

.content-table table {
    width: 100%;
    border-collapse: collapse;
}

.content-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8a9fb3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e8eff5;
}

.content-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f5f9;
}

.content-table tr:last-child td {
    border-bottom: none;
}

.content-preview {
    color: #3d3d4e;
    max-width: 300px;
}

.content-date {
    color: #97adbf;
    font-size: 0.8rem;
    white-space: nowrap;
}

.content-actions {
    white-space: nowrap;
}

.btn-sm {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #d4dfe9;
    border-radius: 6px;
    background: #fff;
    color: #6a8daa;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-sm:hover {
    background: #f5f8fb;
}

.btn-sm-danger {
    color: #c48a8a;
    border-color: #f0d4d4;
}

.btn-sm-danger:hover {
    background: #fdf5f5;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8a9fb3;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: #3d3d4e;
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ============================================================
   CALENDAR TIMELINE
   ============================================================ */

.calendar-timeline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-day {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #e8eff5;
}

.calendar-date {
    width: 100px;
    flex-shrink: 0;
}

.cal-day-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8a9fb3;
}

.cal-day-num {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3b6b96;
}

.calendar-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #dde7ef;
    border-radius: 8px;
    position: relative;
}

.calendar-event-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background 0.15s;
}

.calendar-event-link:hover {
    background: #f5f8fb;
}

.calendar-delete {
    padding: 0 8px;
}

.btn-delete-x {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #c48a8a;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-x:hover {
    background: #fdf5f5;
    color: #a05252;
}

.btn-outline-danger {
    color: #c48a8a;
    border-color: #f0d4d4;
}

.btn-outline-danger:hover {
    background: #fdf5f5;
    color: #a05252;
}

/* ============================================================
   SERIES
   ============================================================ */

.series-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.series-card .series-meta {
    font-size: 0.8rem;
    color: #4a6a85;
    margin-bottom: 12px;
}

.series-card .series-meta p {
    margin-bottom: 4px;
}

.series-template {
    padding: 10px 14px;
    background: #f5f8fb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.series-template-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #8a9fb3;
    margin-bottom: 4px;
}

.series-template-text {
    font-size: 0.8rem;
    color: #4a6a85;
    font-style: italic;
}

.series-actions {
    display: flex;
    gap: 8px;
}

/* Batch day cards */
.batch-day {
    margin-bottom: 16px;
}

.batch-platform-content {
    padding: 12px 0;
    border-bottom: 1px solid #e8eff5;
}

.batch-platform-content:last-child {
    border-bottom: none;
}

.batch-platform-content strong {
    display: block;
    font-size: 0.8rem;
    color: #3b6b96;
    margin-bottom: 8px;
}

.batch-platform-content textarea,
.batch-platform-content input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d4dfe9;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    margin-bottom: 8px;
}

/* Review form */
.review-form {
    max-width: 700px;
}

.edit-image-area {
    margin-bottom: 8px;
}

.edit-image-preview {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dde7ef;
}

.edit-image-preview img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

/* ============================================================
   IMAGE SECTION (wizard)
   ============================================================ */

.image-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8eff5;
}

.image-section label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a6a85;
    margin-bottom: 8px;
}

.image-preview-area {
    width: 100%;
    min-height: 120px;
    border: 2px dashed #d4dfe9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f9fbfd;
}

.image-placeholder {
    color: #97adbf;
    font-size: 0.85rem;
    padding: 30px;
}

.image-preview-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.image-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-generate-image {
    background: #d4726a;
    color: #fff;
    border-color: #d4726a;
}

.btn-generate-image:hover {
    background: #c4625a;
}

.btn-upload-image {
    cursor: pointer;
}

/* ============================================================
   PRODUCTS
   ============================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card .product-desc {
    font-size: 0.85rem;
    color: #4a6a85;
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-card .product-meta {
    font-size: 0.8rem;
    color: #6a8daa;
    margin-bottom: 14px;
}

.product-card .product-meta p {
    margin-bottom: 4px;
}

.product-card .product-meta strong {
    color: #4a6a85;
}

.product-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e8eff5;
}

.label-required {
    color: #d4726a;
}

/* ============================================================
   SETTINGS
   ============================================================ */

.settings-card {
    max-width: 600px;
    margin-bottom: 16px;
}

.settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-username {
    font-size: 1rem;
    font-weight: 700;
    color: #3d3d4e;
}

.settings-connected-date {
    font-size: 0.75rem;
    color: #97adbf;
}

.settings-token-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-token-text {
    font-size: 0.8rem;
    color: #4a6a85;
}

.settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8eff5;
}

.settings-connect-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.settings-connect-info h3 {
    font-size: 1rem;
    color: #3d3d4e;
    margin-bottom: 6px;
}

.settings-connect-info p {
    font-size: 0.85rem;
    color: #6a8daa;
}

.settings-info {
    max-width: 600px;
    margin-bottom: 16px;
}

.settings-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3b6b96;
    margin-bottom: 12px;
}

.settings-info ul,
.settings-info ol {
    padding-left: 20px;
    font-size: 0.85rem;
    color: #4a6a85;
    line-height: 1.8;
}

.settings-info strong {
    color: #3d3d4e;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 10px 0;
    }
    .sidebar-brand {
        font-size: 0;
        padding: 0 10px 10px;
    }
    .sidebar a {
        font-size: 0;
        padding: 12px 10px;
        text-align: center;
    }
    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
        padding: 20px;
    }
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}
