
/* ==========================================================================
   Postly WordPress Plugin - Public Styles (V3.0 Unified)
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

.postly-generator, .postly-dashboard {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.postly-card:hover, .postly-action-card:hover, .gallery-card:hover, .postly-plan-card:hover {
    will-change: transform;
}

/* 1. Variables & Root
   ========================================================================== */

:root {
    --postly-primary: #1595fb;
--postly-primary-gradient: linear-gradient(135deg, #00f2fe, #0077ff, #0a22ff);
    --postly-secondary: #f1f5f9;
    --postly-accent: #6366f1;
    --postly-success: #10b981;
    --postly-warning: #f59e0b;
    --postly-danger: #ef4444;
    --postly-info: #3b82f6;
    --postly-bg: #f8fafc;
    --postly-card-bg: #ffffff;
    --postly-text-main: #1f2937;
    --postly-text-muted: #6b7280;
    --postly-border: #e2e8f0;
    --postly-radius: 12px;
    --postly-radius-lg: 20px;
    --postly-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --postly-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --postly-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 2. Global Resets & Layout
   ========================================================================== */

.postly-dashboard-container, .postly-generator, .postly-calendar-page, .postly-my-posts, .postly-instagram-page, .postly-brand-setup, .postly-planner-container, .postly-settings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: var(--postly-font);
    color: var(--postly-text-main);
    background: transparent;
    box-sizing: border-box;
}

/* Ensure all elements inside use border-box */

.postly-dashboard-container *, .postly-planner-container *, .postly-generator * {
    box-sizing: border-box;
}

/* 3. Headers
   ========================================================================== */

.postly-dashboard-header, .postly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 0 10px;
}

.postly-header-content h1, .postly-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: var(--postly-text-main);
    letter-spacing: -0.5px;
}

.postly-header-content p, .postly-header p {
    color: var(--postly-text-muted);
    margin: 0;
    font-size: 16px;
}

/* Centered Header Variant (Old Pages) */

.postly-header.text-center {
    flex-direction: column;
    text-align: center;
}

/* 4. Grids & Layouts
   ========================================================================== */

.postly-dashboard-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
}

.postly-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.postly-grid-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 992px) {

    .postly-dashboard-grid, .postly-grid-2col {
        grid-template-columns: 1fr;
    }

    /* 1. Container & Header Ajustări */

    .postly-main-container-fixed {
        margin: 15px auto;
        padding: 0 15px;
    }

    .postly-header-card-fixed {
        padding: 20px 15px;
        margin-bottom: 20px;
        position: relative;
        z-index: 90;
    }

    /* Afișăm butonul Hamburger */

    .postly-mobile-btn {
        display: block;
        margin-right: 15px;
    }

    /* Ajustăm Textul Header-ului */

    .header-text-group h1 {
        font-size: 20px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .header-text-group p {
        display: block;
        font-size: 13px;
        color: #64748b;
    }

    /* Ajustăm Butonul CTA */

    .postly-btn-gradient {
        padding: 14px 20px;
        width: 100%;
        font-size: 15px;
        font-weight: 700;
        justify-content: center;
        text-align: center;
        text-decoration: none !important;
        border: none;
        box-shadow: 0 4px 12px rgba(255, 75, 43, 0.3);
    }

    .btn-text-desktop {
        display: inline;
    }

    /* Ascundem textul "Genereaza Postare" */

    .btn-icon {
        margin: 0;
        font-size: 18px;
    }

    /* Lasam doar steluta */

    /* 2. SIDEBAR TRANSFORMAT ÎN DRAWER */

    .postly-sidebar-fixed {
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        width: 260px;
        height: 100vh;
        background: #ffffff;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        overflow-y: auto;
        border-radius: 0;
        border: none;
        z-index: 9999;
        padding-top: 50px;
    }

    /* Clasa care se adaugă când e deschis */

    .postly-sidebar-fixed.open {
        transform: translateX(0);
    }

    /* Buton X de închidere în sidebar */

    .close-sidebar-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        color: #64748b;
        cursor: pointer;
    }

    /* Overlay Negru */

    .postly-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    .postly-overlay.active {
        display: block;
    }

    /* 3. Grid-ul de Content devine o coloană */

    .postly-flex-container {
        display: block;
    }

    /* Sidebar-ul nu mai ocupă loc în flux */

    /* Grid-ul tău intern (presupunând clasele standard) */

    .postly-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Stats grid pe mobil */

    .postly-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Header Stack Vertical (Titlu sus, Buton jos) */

    .header-inner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    /* Afisam Hamburger Button */

    .postly-hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 26px;
        cursor: pointer;
        padding: 5px;
        color: #1e293b;
        flex-shrink: 0;
    }

    /* Text Header Compact */

    .header-text-group {
        flex-grow: 1;
    }

    /* Header Right (Butonul) - Full Width Dedesubt */

    .header-right {
        width: 100%;
    }

    /* Fix pentru link styling mostenire */

    .postly-btn-gradient:hover, .postly-btn-gradient:focus, .postly-btn-gradient:active {
        text-decoration: none !important;
        color: white !important;
    }

    /* Afisam "Generează Postare Nouă" */

    .btn-text-mobile {
        display: none;
    }

    .postly-sidebar-fixed.mobile-active {
        transform: translateX(0);
    }

    /* Buton X Inchidere */

    .postly-close-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: #f1f5f9;
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        font-size: 20px;
        line-height: 1;
        color: #64748b;
        cursor: pointer;
        transition: background 0.2s;
    }

    .postly-close-btn:hover {
        background: #e2e8f0;
    }

    /* Overlay Negru */

    .postly-mobile-overlay {
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
    transform: translateZ(0);
}

    .postly-mobile-overlay.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}
}

/* 5. Cards & Containers
   ========================================================================== */

.postly-card {
    background: var(--postly-card-bg);
    border-radius: var(--postly-radius-lg);
    padding: 24px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid var(--postly-secondary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.postly-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
}

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

.postly-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--postly-text-main);
}

/* 6. Buttons & Interactions
   ========================================================================== */

.postly-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--postly-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

/* Gradient Button (Primary Action) */

.postly-btn-gradient {
    background-color: #1595FB;
    background-size: 200% 200%;
    color: white !important;
    animation: gradient-anim 5s ease infinite;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

@keyframes gradient-anim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.postly-btn-gradient:hover {
    box-shadow: 0 10px 20px rgba(253, 29, 29, 0.3);
    transform: translateY(-2px);
    color: white;
}

/* Primary Button (Standard) */

.postly-btn-primary {
    background: var(--postly-primary);
    color: white !important; 
}

.postly-btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    color: white;
}

/* Secondary Button */

.postly-btn-secondary {
    background: var(--postly-secondary);
    color: var(--postly-text-main);
}

.postly-btn-secondary:hover {
    background: #e2e8f0;
    color: var(--postly-text-main);
}

/* Outline Button */

.postly-btn-outline {
    background: transparent;
    border: 1px solid var(--postly-border);
    color: var(--postly-text-muted);
}

.postly-btn-outline:hover {
    border-color: var(--postly-text-muted);
    color: var(--postly-text-main);
}

/* Text Button */

.postly-btn-text {
    background: transparent;
    color: var(--postly-text-muted);
    width: 100%;
    margin-top: 10px;
    font-size: 13px;
    padding: 8px;
}

.postly-btn-text:hover {
    color: var(--postly-text-main);
    background: var(--postly-bg);
}

/* Utility Button Classes */

.postly-btn-block {
    width: 100%;
}

.postly-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.postly-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Magic AI Button */

.postly-btn-magic {
    padding: 8px 16px;
    font-size: 13px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.postly-btn-magic:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

/* 7. Dashboard Specific: Credits Card
   ========================================================================== */

.postly-credits-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.postly-credits-circle-container {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: var(--postly-secondary);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

.postly-credits-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.postly-credits-number strong {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--postly-text-main);
}

.postly-credits-number .total {
    font-size: 11px;
    color: var(--postly-text-muted);
}

.postly-credits-details {
    flex: 1;
}

.reset-info {
    font-size: 13px;
    color: var(--postly-text-muted);
    margin: 0 0 10px 0;
}

/* 8. Dashboard Specific: Instagram & Brand
   ========================================================================== */

.postly-account-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--postly-bg);
    padding: 15px;
    margin-bottom: 15px;   
    border-radius: 16px;
    border: 1px solid var(--postly-border);
}

.postly-story-ring {
    padding: 2px;
    background: var(--postly-primary-gradient);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.postly-avatar-wrapper {
    background: white;
    padding: 2px;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.postly-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.postly-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--postly-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--postly-text-muted);
    border-radius: 50%;
}

.postly-account-info {
    flex: 1;
}

.account-handle {
    font-size: 14px;
    color: var(--postly-text-main);
    margin-bottom: 2px;
    font-weight: 600;
}

.account-stats {
    font-size: 12px;
    color: var(--postly-text-muted);
}

.postly-status-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--postly-success);
    margin-left: auto;
    display: block;
    margin-top: 5px;
}

/* Brand Header */

.postly-brand-card {
    background: #fff;
}

.postly-brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.brand-icon.gradient-bg {
    width: 48px;
    height: 48px;
    background-color: #1595FB;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(131, 58, 180, 0.2);
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-name strong {
    font-size: 16px;
    color: var(--postly-text-main);
}

.brand-category {
    font-size: 12px;
    color: var(--postly-text-muted);
    background: var(--postly-bg);
    padding: 2px 8px;
    border-radius: 10px;
    width: fit-content;
    margin-top: 2px;
}

.brand-desc {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 9. Dashboard Specific: Stats Grid
   ========================================================================== */

.postly-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.postly-stat-box {
    background: white;
    padding: 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--postly-secondary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-purple {
    background: #f3e8ff !important;
    color: #9333ea;
}

.icon-pink {
    background: #fce7f3 !important;
    color: #db2777;
}

.icon-orange {
    background: #ffedd5 !important;
    color: #ea580c;
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--postly-text-main);
    line-height: 1.1;
}

.stat-label {
    font-size: 12px;
    color: var(--postly-text-muted);
    font-weight: 500;
}

/* 10. Dashboard Specific: Action Tiles (Vibrant)
   ========================================================================== */

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--postly-text-main);
    margin-bottom: 15px;
    margin-top: 10px;
}

.postly-actions-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.postly-action-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.postly-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-right: 20px;
    flex-shrink: 0;
}

.action-icon.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.action-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.action-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.action-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--postly-text-main);
    font-weight: 700;
}

.action-details p {
    margin: 0;
    font-size: 13px;
    color: var(--postly-text-muted);
    font-weight: 500;
}

.action-arrow {
    margin-left: auto;
    color: var(--postly-border);
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s;
    transform: translateX(0);
}

.postly-action-card:hover .action-arrow {
    transform: translateX(5px);
}

/* Tile Theme Hovers */

.purple-card:hover {
    border-color: #d8b4fe;
    background: linear-gradient(to right, #f4f4ff, white);
}

.purple-card:hover .action-arrow {
    color: #9333ea;
}

.blue-card:hover {
    border-color: #7dd3fc;
    background: linear-gradient(to right, #f0f9ff, white);
}

.blue-card:hover .action-arrow {
    color: #0284c7;
}

.orange-card:hover {
    border-color: #fdba74;
    background: linear-gradient(to right, #fff7ed, white);
}

.orange-card:hover .action-arrow {
    color: #ea580c;
}

/* 11. Tips & Tricks Card
   ========================================================================== */

.postly-tips-card {
    background: linear-gradient(to bottom, #fff, #fefce8);
    border-color: #fef9c3;
}

.postly-tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    display: flex;
    gap: 15px;
}

.tip-emoji {
    font-size: 24px;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.tip-content p {
    margin: 0;
    font-size: 13px;
    color: var(--postly-text-muted);
}

.tip-content strong {
    display: block;
    font-size: 14px;
    color: var(--postly-text-main);
    margin-bottom: 2px;
}

/* 12. Badges & Labels
   ========================================================================== */

.postly-badge-gradient {
background: linear-gradient(135deg, #76dfff 0%, #001cff 100%);
  color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.postly-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.postly-status-draft {
    color: var(--postly-text-muted);
}

.postly-status-scheduled {
    color: #d97706;
}

.postly-status-published {
    color: #059669;
}

.postly-status-failed {
    color: #dc2626;
}

/* 13. Forms (Generator & Settings)
   ========================================================================== */

.postly-form-group {
    margin-bottom: 20px;
}

.postly-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
}

.postly-input, .postly-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: #f8fafc;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.postly-input:focus, .postly-textarea:focus {
    outline: none;
    border-color: var(--postly-primary);
    box-shadow: 0 0 0 4px rgba(131, 58, 180, 0.1);
    background: white;
}

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

/* 14. Empty States & Notices
   ========================================================================== */

.postly-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--postly-text-muted);
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.postly-empty-state p {
    margin-bottom: 15px;
    font-size: 14px;
}

.postly-notice {
    padding: 15px;
    border-radius: var(--postly-radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.postly-notice-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.postly-notice-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.postly-notice-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

/* 15. Calendar Specific
   ========================================================================== */

#postly-calendar {
    background: white;
    padding: 20px;
    border-radius: var(--postly-radius);
    font-family: var(--postly-font);
}

/* Calendar events styling overrides usually needed for FullCalendar */

.fc-event {
    border-radius: 4px !important;
    border: 1px solid transparent !important;
    font-size: 13px !important;
    cursor: pointer;
    padding: 2px 4px !important;
    margin-bottom: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    background-color: #3788d8;
    color: #fff !important;
    display: block !important;
}

.fc-event-main {
    padding: 4px;
}

/* =========================================
   16. Quick Navigation Menu
   ========================================= */

.postly-quick-nav {
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.nav-item {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #6a727b !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--postly-border);
}

.nav-item:hover {
    background: var(--postly-bg);
    color: var(--postly-text-main);
    transform: translateY(-2px);
    border-color: var(--postly-primary);
}

.nav-item.active {
    background: var(--postly-primary-gradient);
    color: white !important;
    box-shadow: 0 4px 10px rgba(131, 58, 180, 0.2);
}

/* =========================================
   17. Generator Specific Styles
   ========================================= */

/* Header Credits */

.postly-credits-badge {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--postly-border);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.credits-label {
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 5px;
}

.credits-value {
    font-size: 16px;
    color: var(--postly-primary);
    font-weight: 800;
}

/* Form Elements */

.helper-text {
    display: flex;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    align-items: center;
    gap: 6px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-weight: bold;
    font-size: 18px;
}

.input-with-icon input {
    padding-left: 35px;
}

/* Compact Position Grid */

.postly-position-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 140px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.pos-option {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    width: 36px;
}

.pos-option:hover {
    border-color: #1595fb;
}

.pos-option input {
    display: none;
}

.pos-option span {
    font-size: 14px;
    color: var(--postly-text-muted);
    line-height: 1;
}

.pos-option input:checked + span {
    color: var(--postly-primary);
    font-weight: bold;
}

.pos-option:has(input:checked) {
    border-color: #1595fb;
    background: #1595fb;
}

/* Text Effect Previews (CSS Only) */

.postly-effect-preview.bold-shadow {
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.postly-effect-preview.effect-3d {
    font-weight: bold;
    text-shadow: 1px 1px 0 #ccc, 2px 2px 0 #bbb;
}

.postly-effect-preview.gradient {
    background: linear-gradient(45deg, #f09433, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.postly-effect-preview.neon {
    color: #10b981;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    font-weight: bold;
}

.postly-effect-preview.outlined {
    -webkit-text-stroke: 1px #333;
    color: transparent;
    font-weight: bold;
}

/* Advanced Section */

.postly-advanced-options {
    background: var(--postly-bg);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid var(--postly-border);
}

.postly-section-divider {
    border-bottom: 1px solid var(--postly-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.postly-section-divider h3 {
    font-size: 15px;
    color: var(--postly-text-main);
    margin: 0;
}

/* Action Buttons */

.postly-action-buttons.vertical {
    flex-direction: row !important;
    gap: 12px !important;
    display: flex !important;
    align-items: center !important;
    margin-top: 20px !important;
}

.divider {
    border: 0;
    border-top: 1px solid var(--postly-border);
    margin: 20px 0;
}

/* Mobile - Transformă în dropdown/hamburger */

@media (max-width: 768px) {

    .postly-quick-nav {
        position: relative;
    }

    /* Ascunde toate itemele initial */

    .nav-item {
        display: none;
    }

    /* Arată doar item-ul activ */

    .nav-item.active {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
    }

    /* Buton pentru expand */

    .nav-item.active::after {
        content: '▼';
        font-size: 12px;
        transition: transform 0.3s;
    }

    /* Când dai click, arată toate */

    .postly-quick-nav.expanded .nav-item {
        display: flex;
    }

    .postly-quick-nav.expanded {
        flex-direction: column;
        gap: 6px;
    }

    .postly-quick-nav.expanded .nav-item.active::after {
        content: '▲';
    }

    .postly-plan-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .banner-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .postly-settings-wrapper {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .settings-tab {
        white-space: nowrap;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-badge {
        margin: 10px auto 0;
    }

    .profile-details-grid {
        grid-template-columns: 1fr;
    }

    .danger-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .connect-grid-layout {
        grid-template-columns: 1fr;
    }

    .account-row-item {
        flex-direction: column;
        text-align: center;
    }

    .meta-info {
        justify-content: center;
    }

    .postly-idea-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .idea-actions {
        width: 100%;
        justify-content: space-between;
    }

    .postly-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
        padding: 0;
    }

    .postly-header-content {
        width: 100%;
    }

    .postly-header-actions {
        width: 100%;
    }

    .postly-header-actions .postly-btn {
        width: 100%;
        justify-content: center;
    }

    .postly-dashboard-container, .postly-generator, .postly-calendar-page, .postly-my-posts, .postly-instagram-page, .postly-brand-setup, .postly-planner-container, .postly-settings {
        padding: 0;
    }

    .postly-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .postly-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .postly-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .postly-action-card {
        padding: 18px;
    }

    .action-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-right: 15px;
    }

    .action-details h4 {
        font-size: 16px;
    }

    .action-details p {
        font-size: 13px;
    }

    .postly-stat-box {
        padding: 18px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 13px;
    }

    .postly-credits-wrapper {
        flex-direction: row;
        gap: 15px;
    }

    .postly-credits-circle-container {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .postly-credits-number strong {
        font-size: 20px;
    }

    .postly-credits-details {
        flex: 1;
    }

    .reset-info {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .postly-tips-card .postly-card-header {
        margin-bottom: 15px;
    }

    .tip-item {
        gap: 12px;
    }

    .tip-emoji {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .tip-content strong {
        font-size: 13px;
    }

    .tip-content p {
        font-size: 12px;
    }

    .postly-header h1 {
        font-size: 24px;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .postly-header p {
        font-size: 14px;
        color: var(--postly-text-muted);
    }

    .section-title {
        font-size: 17px;
        margin-bottom: 12px;
        margin-top: 5px;
    }

    .postly-card-header h3 {
        font-size: 16px;
    }

    .postly-account-card {
        padding: 15px;
        gap: 12px;
    }

    .postly-story-ring {
        width: 45px;
        height: 45px;
    }

    .account-handle {
        font-size: 15px;
    }

    .account-stats {
        font-size: 12px;
    }

    .postly-brand-card {
        padding: 15px;
    }

    .brand-icon.gradient-bg {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .brand-name strong {
        font-size: 15px;
    }

    .brand-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .postly-actions-grid {
        gap: 12px;
        margin-bottom: 20px;
    }

    .postly-empty-state {
        padding: 20px 15px;
    }

    .empty-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    /* Mockup full width pe mobil */

    .postly-instagram-mockup {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin-bottom: 20px;
    }

    /* Edit Panel full width */

    .postly-edit-panel {
        width: 100% !important;
        flex: 1 1 100% !important;
        padding: 15px !important;
    }

    /* 3. Butoanele unul sub altul pe mobil */

    .postly-action-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .postly-action-buttons button {
        width: 100% !important;
        grid-column: auto !important;
    }

    /* Butonul de back din header */

    .editor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .editor-header a {
        width: 100%;
        text-align: center;
    }

    .fc-event {
        font-size: 11px !important;
        padding: 1px 2px !important;
    }

    .fc-daygrid-day-frame {
        min-height: 50px !important;
    }

    .fc-toolbar-title {
        font-size: 16px !important;
    }

    /* Header Generator: Stack vertical */

    .postly-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .header-content {
        width: 100%;
        text-align: left;
    }

    /* Badge Credite */

    .postly-credits-badge {
        width: 100%;
        justify-content: space-between;
        padding: 10px 15px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-top: 5px;
    }
}

/* =========================================
   18. Modern Form Styling (Fix)
   ========================================= */

/* Visual Style Selector (Grid Layout) */

.postly-style-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.postly-style-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.postly-style-option:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Hide default radio */

.postly-style-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selected State */

.postly-style-option:has(input:checked) {
    border-color: #1595fb;
    background: #f4f4ff;
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.15);
}

.postly-style-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    transition: transform 0.2s;
}

.postly-style-option:hover .postly-style-icon {
    transform: scale(1.1);
}

.postly-style-name {
    font-weight: 600;
    color: var(--postly-text-main);
    font-size: 14px;
}

.postly-style-option input:checked ~ .postly-style-name {
    color: #1595fb;
}

.input-with-icon .postly-input {
    padding-left: 45px;
}

.helper-text strong {
    color: #0f172a;
}

/* Mobile Responsive Grid */

@media (max-width: 600px) {

    .postly-style-options {
        grid-template-columns: 1fr 1fr;
    }

    .postly-grid-2col {
        grid-template-columns: 1fr;
    }

    .posts-gallery-grid {
        grid-template-columns: 1fr;
    }

    .card-image-wrapper {
        height: 220px;
    }

    .postly-action-buttons.vertical {
        flex-direction: column !important;
    }

    .postly-action-buttons.vertical .postly-btn {
        width: 100% !important;
    }
}

/* Small Gradient Button for AI Enhance */

.postly-btn-gradient-small {
    background-color: #1595fb;
    background-size: 200% 200%;
    color: white !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
    transition: all 0.2s ease;
    animation: gradient-anim 5s ease infinite;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.postly-btn-gradient-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
    color: white;
    filter: brightness(1.05);
}

/* =========================================
   19. Content Planner Styles
   ========================================= */

.postly-plan-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.postly-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #d8b4fe;
}

/* Header: Type Badge & Date */

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.post-type-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-type-badge i {
    font-size: 14px;
}

/* Date & Time Styling */

.post-date-badge {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.post-date-badge .day {
    font-weight: 900;
    color: #1f2937;
    font-size: 18px;
}

.post-date-badge .time {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Title & Content */

.plan-post-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #111827;
    font-weight: 700;
}

.plan-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.plan-post-content p {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid #e2e8f0;
}

.plan-post-content p strong {
    color: #1595fb;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Meta Tags (Hashtags & CTA) */

.plan-post-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
}

.meta-tag {
    font-size: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    color: #4b5563;
    font-weight: 500;
}

.cta-tag {
    background: #f2f4fd;
    border-color: #cfd4fb;
    color: #2776db;
}

/* Actions Footer */

.plan-card-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Gradient Button - Use in Generator */

.btn-use-generator {
    flex: 1;
    background: linear-gradient(45deg, #1595fb, #1595fb);
    background-size: 200% 200%;
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(131, 58, 180, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: gradient-anim 5s ease infinite;
}

.btn-use-generator:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(131, 58, 180, 0.4);
    color: white !important;
}

.btn-use-generator::before {
    content: '⚡';
}

/* Dismiss Button */

.btn-dismiss-card {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.btn-dismiss-card:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

/* =========================================
   20. Planner & Nav Fixes (Final)
   ========================================= */

/* History Grid */

.postly-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Modern History Card */

.postly-history-card {
    background: white;
    border: 1px solid var(--postly-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.postly-history-card:hover {
    border-color: var(--postly-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.history-card-top {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.history-icon-wrapper {
    width: 48px;
    height: 48px;
    background: #f4fbff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-icon {
    font-size: 24px;
}

.history-info h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: var(--postly-text-main);
    font-weight: 700;
}

.history-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-date {
    font-size: 13px;
    color: var(--postly-text-muted);
}

.history-count.badge {
    display: inline-block;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--postly-text-main);
    width: fit-content;
}

/* Action Buttons in Card */

.history-card-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.history-card-actions .btn-view-plan {
    flex: 1;
    justify-content: center;
}

.history-card-actions .btn-delete-plan {
    width: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #fee2e2;
    color: #ef4444;
    background-color: #ffffff;
}

.history-card-actions .btn-delete-plan:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

/* =========================================
   23. Generated Plan Grid (3 Columns Fixed)
   ========================================= */

/* Grid Layout for Generated Posts */

.plan-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Container for Generated Section */

#postly-generated-plan {
    width: 100%;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

/* Header Spacing */

.postly-section-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive Adjustments for Grid */

@media (max-width: 1100px) {

    .plan-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {

    .plan-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   24. Plan Preload Banner (Modern)
   ========================================= */

.postly-plan-banner {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #1595fb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    animation: slideDown 0.4s ease-out;
}

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

.banner-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.banner-icon {
    font-size: 24px;
    background: #f3e8ff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #1595fb;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.banner-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.banner-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    align-items: center;
}

.banner-type {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #374151;
}

/* Actions */

.banner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.btn-back-plan {
    text-decoration: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    transition: color 0.2s;
}

.btn-back-plan:hover {
    color: #1595fb;
}

.btn-clear-preload {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-clear-preload:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* =========================================
   25. Advanced Text Options Styling
   ========================================= */

/* Text Effect Cards (Grid Layout) */

.postly-text-effect-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.postly-effect-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.postly-effect-option:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Hide Radio Buttons */

.postly-effect-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Active State */

.postly-effect-option:has(input:checked) {
    border-color: #1595fb;
    background: #f4f4ff;
}

.postly-effect-preview {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

.postly-effect-name {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.postly-effect-option input:checked ~ .postly-effect-name {
    color: #1595fb;
}

.pos-option:has(input:checked) span {
    color: white;
}

/* Color Picker Inputs */

.postly-color-picker-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.postly-color-input {
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.postly-color-presets {
    display: flex;
    gap: 8px;
}

.postly-color-preset {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    padding: 0;
}

.postly-color-preset:hover {
    transform: scale(1.1);
    border-color: #1595fb;
}

/* =========================================
   26. Calendar Page Styling
   ========================================= */

.postly-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    width: 100%;
}

/* Controls & Legend */

.postly-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-legend {
    display: flex;
    gap: 15px;
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--postly-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--postly-text-muted);
    font-weight: 500;
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item.status-scheduled .dot {
    background: #fbbf24;
}

.legend-item.status-published .dot {
    background: #166534;
}

.legend-item.status-draft .dot {
    background: #94a3b8;
}

.legend-item.status-failed .dot {
    background: #ef4444;
}

.fc-header-toolbar {
    margin-bottom: 25px !important;
}

.fc-button {
    background: white !important;
    border: 1px solid var(--postly-border) !important;
    color: var(--postly-text-main) !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    box-shadow: none !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
}

.fc-button-active {
    background: var(--postly-bg) !important;
    border-color: var(--postly-primary) !important;
    color: var(--postly-primary) !important;
}

.fc-daygrid-day {
    transition: background 0.2s;
}

.fc-daygrid-day:hover {
    background: #f8fafc;
}

.postly-fc-event {
    border-radius: 6px !important;
    padding: 2px 4px !important;
    font-size: 12px !important;
    border: 1px solid !important;
    cursor: pointer;
    margin-bottom: 2px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.fc-event-title {
    font-weight: 500;
}

/* Modal Styling */

.postly-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.postly-modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.postly-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
}

.postly-modal-close:hover {
    color: #1f2937;
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-body {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =========================================
   27. Brand Setup Wizard Styling
   ========================================= */

.postly-brand-setup-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    width: 100%;
}

/* Wizard Progress Bar */

.postly-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.postly-wizard-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    color: var(--postly-text-muted);
}

.step-circle {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
}

.postly-wizard-progress .step.active .step-circle {
    border-color: var(--postly-primary);
    background: #f3e8ff;
    color: var(--postly-primary);
    transform: scale(1.1);
}

.postly-wizard-progress .step.active .step-label {
    color: var(--postly-primary);
}

.postly-wizard-progress .step.completed .step-circle {
    background: var(--postly-primary);
    border-color: var(--postly-primary);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
    transform: translateY(-14px);
    z-index: 1;
}

/* Wizard Form */

.postly-wizard-form {
    padding: 40px;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    margin-bottom: 5px;
    color: var(--postly-text-main);
}

.step-header p {
    color: var(--postly-text-muted);
    font-size: 14px;
}

/* Tone Selector (Chips) */

.postly-tone-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tone-option {
    cursor: pointer;
}

.tone-option input {
    display: none;
}

.tone-option span {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.tone-option input:checked + span {
    background: #1595fb;
    color: white;
    box-shadow: 0 4px 10px rgba(131, 58, 180, 0.3);
}

/* Actions */

.wizard-actions {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.wizard-actions.right {
    justify-content: flex-end;
}

/* Success Box */

.postly-success-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #166534;
    margin-bottom: 20px;
}

.postly-success-box h3 {
    margin: 0 0 5px 0;
    color: #15803d;
}

/* Error State */

.error-border {
    border-color: #ef4444 !important;
    background: #fef2f2;
}

/* =========================================
   28. Settings Page Styling (Sidebar Layout)
   ========================================= */

.postly-settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    width: 100%;
}

.postly-settings-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Sidebar Navigation */

.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-tab {
    background: transparent;
    border: none;
    text-align: left;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--postly-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-tab:hover {
    background: white;
    color: var(--postly-text-main);
}

.settings-tab.active {
    background: white;
    color: var(--postly-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.settings-tab .icon {
    font-size: 18px;
}

/* Tab Content Areas */

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Subscription Styles */

.subscription-overview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.plan-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.plan-name {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
}

.renewal-date {
    font-size: 13px;
    color: #6b7280;
}

.credits-box {
    margin-top: 15px;
}

.credits-bar-wrapper {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.credits-bar {
    height: 100%;
    background: linear-gradient(90deg, #1595fb, #fd1d1d);
    border-radius: 4px;
}

.credits-numbers {
    font-size: 13px;
    text-align: right;
    color: #6b7280;
}

/* Pricing Grid */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pricing-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: #d8b4fe;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.pricing-card.featured {
    border: 2px solid #1595fb;
    background: #f4f4ff;
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1595fb;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 10px;
}

.card-top {
    text-align: center;
    margin-bottom: 20px;
}

.card-top h4 {
    margin: 0;
    font-size: 16px;
    color: #4b5563;
}

.price {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin-top: 5px;
}

.price span {
    font-size: 12px;
    font-weight: normal;
    color: #6b7280;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #4b5563;
}

.features-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Connected Accounts List */

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.connected-account-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.account-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.account-details h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.account-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: auto;
}

.status-dot.active {
    background: #10b981;
}

.btn-disconnect {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

/* Toggle Switch */

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.toggle-info {
    display: flex;
    flex-direction: column;
}

.toggle-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.toggle-desc {
    font-size: 12px;
    color: #6b7280;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1595fb;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Danger Zone */

.danger-zone {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #fee2e2;
    background: #fef2f2;
    border-radius: 12px;
}

.danger-zone h3 {
    color: #b91c1c;
    margin-top: 0;
}

.danger-zone p {
    color: #7f1d1d;
    font-size: 13px;
}

.postly-btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.postly-btn-danger:hover {
    background: #dc2626;
}

/* =========================================
   29. New Settings Tabs Styling (Insta & Account)
   ========================================= */

/* Header Wrapper Shared */

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

.postly-card-header-wrapper h3 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}

.postly-card-header-wrapper .text-muted {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* --- Instagram Grid & Cards --- */

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.instagram-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.instagram-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: #d8b4fe;
}

.insta-card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.insta-avatar-wrapper {
    position: relative;
}

.insta-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f4f6;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.status-indicator.status-active {
    background-color: #10b981;
}

.status-indicator.status-expired {
    background-color: #ef4444;
}

.insta-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #111827;
}

.insta-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.stat-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.insta-card-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.postly-btn-danger-outline {
    background: transparent;
    border: 1px solid #fee2e2;
    color: #ef4444;
}

.postly-btn-danger-outline:hover {
    background: #fef2f2;
}

/* Empty State */

.empty-state-card {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
    padding: 40px 20px;
}

/* --- Account Profile Card --- */

.profile-card {
    padding: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar img {
    border-radius: 50%;
    border: 3px solid #e2e8f0;
}

.profile-names h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.profile-role {
    color: #6b7280;
    font-size: 14px;
}

.profile-badge {
    margin-left: auto;
    background: #1595fb;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.detail-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.detail-value i {
    color: #9ca3af;
    font-size: 16px;
}

/* Danger Zone Refined */

.danger-zone-wrapper {
    margin-top: 40px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 12px;
    overflow: hidden;
}

.danger-header {
    background: #fee2e2;
    padding: 15px 20px;
    border-bottom: 1px solid #fecaca;
}

.danger-header h4 {
    margin: 0;
    color: #b91c1c;
    font-size: 15px;
}

.danger-content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.danger-content p {
    margin: 0;
    color: #7f1d1d;
    font-size: 14px;
}

/* =========================================
   30. Instagram Connect Page Styling
   ========================================= */

.connect-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-top: 30px;
}

/* Info Column */

.connect-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card h3 {
    margin-top: 0;
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 20px;
}

.postly-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.postly-benefits-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.postly-benefits-list li:last-child {
    margin-bottom: 0;
}

.postly-benefits-list .icon {
    font-size: 24px;
    background: #f3f4f6;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.postly-benefits-list .text strong {
    display: block;
    font-size: 15px;
    color: #111827;
    margin-bottom: 3px;
}

.postly-benefits-list .text p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Warning / Requirements Card */

.warning-card {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.warning-card h3 {
    color: #92400e;
}

.req-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.req-icon {
    font-size: 18px;
}

.req-item strong {
    display: block;
    font-size: 14px;
    color: #92400e;
}

.req-item p {
    margin: 0;
    font-size: 12px;
    color: #b45309;
}

/* Action Column */

.connect-action-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-card {
    text-align: center;
    padding: 40px 30px;
    border: 2px solid #e2e8f0;
}

.insta-logo-large img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.action-card h2 {
    font-size: 24px;
    margin: 0 0 10px 0;
}

.action-card p {
    color: #6b7280;
    margin-bottom: 30px;
}

.security-note {
    font-size: 12px !important;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* FAQ */

.postly-faq details {
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.postly-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.postly-faq summary::after {
    content: '+';
    font-weight: bold;
}

.postly-faq details[open] summary::after {
    content: '-';
}

.postly-faq p {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Connected Accounts List (Narrow View) */

.postly-container-narrow {
    max-width: 1200px;
    margin: 30px auto;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.card-header-flex h2 {
    margin: 0;
    font-size: 20px;
}

.account-row-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.2s;
}

.account-row-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.account-avatar-col {
    position: relative;
    flex-shrink: 0;
}

.account-avatar-col img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.account-avatar-col .status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-radius: 50%;
}

.status-active {
    background: #10b981;
}

.status-token_expired {
    background: #ef4444;
}

.account-info-col {
    flex-grow: 1;
}

.account-info-col h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.meta-info {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-status {
    font-size: 12px;
    margin-top: 5px;
}

.token-status.valid {
    color: #10b981;
}

.token-status.expired {
    color: #ef4444;
    font-weight: 600;
}

.account-actions-col {
    flex-shrink: 0;
}

/* =========================================
   31. My Posts Gallery Styling
   ========================================= */

.postly-myposts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Filter Tabs */

.filter-tabs-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-tab {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-tab:hover {
    background: #f8fafc;
    color: #1f2937;
}

.filter-tab.active {
    background: #1f2937;
    color: white;
    border-color: #1f2937;
}

.count-badge {
    background: #e2e8f0;
    color: #4b5563;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.filter-tab.active .count-badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Grid Layout */

.posts-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Gallery Card */

.gallery-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

/* Image Area */

.card-image-wrapper {
    position: relative;
    height: 280px;
    background: #f3f4f6;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.no-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.no-image-placeholder .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

/* Status Badge */

.status-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.status-scheduled {
    color: #2563eb;
}

.status-published {
    color: #10b981;
}

.status-draft {
    color: #6b7280;
}

.status-failed {
    color: #ef4444;
}

/* Content Area */

.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.date-info.future {
    color: #2563eb;
    font-weight: 600;
}

.card-caption {
    font-size: 14px;
    color: #374151;
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex-grow: 1;
}

.error-msg-small {
    font-size: 11px;
    color: #ef4444;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Actions */

.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-edit {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-edit:hover {
    background: #e5e7eb;
    color: #111827;
}

.btn-view {
    background: #ecfdf5;
    color: #10b981;
}

.btn-view:hover {
    background: #d1fae5;
}

.btn-delete {
    background: #fef2f2;
    color: #ef4444;
}

.btn-delete:hover {
    background: #fee2e2;
}

/* Empty State */

.empty-state-large {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    margin-top: 20px;
}

.empty-state-large h3 {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.empty-state-large p {
    color: #6b7280;
    margin-bottom: 30px;
}

/* Stil comun pentru toate butoanele din grup */

.postly-action-buttons.vertical .postly-btn {
    flex: 1 !important;
    font-size: 13px !important;
    padding: 10px 15px !important;
    white-space: nowrap !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
}

/* 1. Butonul Publică (Gradient & Bold) */

#postly-publish-now {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    flex: 1.5 !important;
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.25) !important;
}

#postly-publish-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 39, 67, 0.35) !important;
}

/* 2. Butonul Programează (Albastru deschis / Secundar) */

#postly-schedule-post {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
    font-weight: 600 !important;
}

#postly-schedule-post:hover {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
}

/* 3. Butonul Save Draft (Gri / Terțiar) */

#postly-save-draft {
    background: white !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
}

#postly-save-draft:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #475569 !important;
}

/* =========================================
   36. Generator Mockup Refined (SVG & Details)
   ========================================= */

/* Mockup Container */

.postly-instagram-mockup {
    flex: 0 0 auto !important;
    max-width: 400px !important;
    width: 100% !important;
    border: 1px solid #dbdbdb !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    overflow: hidden !important;
    margin: 0 auto;
}

/* Header */

.postly-mockup-header {
    height: 60px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #efefef !important;
}

.postly-mockup-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #dbdbdb !important;
    border: 1px solid #efefef !important;
    margin-right: 10px !important;
    position: relative;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

/* Username bold */

.postly-mockup-username {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #262626 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    margin-top: 1px !important;
}

/* Actions Bar */

.postly-mockup-actions {
    padding: 8px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 40px !important;
}

.actions-left {
    display: flex !important;
    gap: 16px !important;
}

/* SVG Icons Styles */

.action-icon svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    transition: transform 0.1s ease-in-out !important;
    color: #262626 !important;
}

.action-icon svg:hover {
    color: #8e8e8e !important;
}

.action-icon:active svg {
    transform: scale(0.9) !important;
}

/* Caption Area Details */

.postly-mockup-caption {
    padding: 0 16px 16px 16px !important;
}

.likes-count {
    margin-bottom: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #262626 !important;
}

.caption-text {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    color: #262626 !important;
}

.caption-text strong {
    margin-right: 5px !important;
}

.comments-link {
    color: #8e8e8e !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
    cursor: pointer !important;
}

.time-ago {
    font-size: 10px !important;
    color: #8e8e8e !important;
    text-transform: uppercase !important;
    margin-top: 4px !important;
    letter-spacing: 0.2px !important;
}

/* Image Aspect Ratio Enforcement */

.postly-mockup-image {
    width: 100% !important;
    border-bottom: 1px solid #efefef !important;
    aspect-ratio: 4 / 5 !important;
}

/* =========================================
   37. Generator Mockup Final Polish
   ========================================= */

/* 1. Fix Badge "Flux 1.1 Pro" */

.postly-image-badge {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-family: monospace !important;
    z-index: 10 !important;
    pointer-events: none !important;
    backdrop-filter: blur(2px);
    display: none !important;
}

/* Dacă ai o imagine înăuntru (pentru viitor) */

.postly-mockup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. Ajustare Text Profil */

.postly-mockup-profile {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

/* ==========================================================================
   Image Prompt Enhancer - Modern UI
   ========================================================================== */

/* Header-ul câmpului de descriere */

.postly-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.postly-field-header label {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.postly-btn-gradient-small:active {
    transform: translateY(0);
}

/* Containerul de preview (Result Box) */

.postly-enhancement-preview {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-top: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

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

/* Header-ul din interiorul box-ului de preview */

.postly-enhancement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.postly-enhancement-header strong {
    color: #4b5563;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.postly-enhancement-header strong::before {
    content: "✨";
}

/* Acțiuni (Butoane Folosește / Anulează) */

.enhancement-actions {
    display: flex;
    gap: 10px;
}

.postly-btn-pill {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    background: transparent;
}

.postly-btn-pill.primary {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.postly-btn-pill.primary:hover {
    background-color: #e5e7eb;
    color: #111827;
    border-color: #9ca3af;
}

.postly-btn-pill.reject {
    color: #9ca3af;
}

.postly-btn-pill.reject:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* Textul generat */

.postly-enhancement-content {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    font-style: italic;
}

/* Spinner simplu */

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-right: 5px;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Stare Loading Buton */

.postly-btn-gradient-small.loading {
    opacity: 0.7;
    cursor: not-allowed;
    background: #ccc;
    pointer-events: none;
}

/* Stare Success Buton Accept */

.postly-btn-pill.success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

/* Highlight efect la apariție */

.postly-enhancement-preview.highlight {
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

/* Containerul general */

.postly-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0;
}

/* --- STILIZARE PICKR (BUTTON PRINCIPAL) --- */

.pcr-button {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    background: var(--pcr-color) !important;
    position: relative !important;
}

/* ELIMINARE TOTALĂ TRIUNGHI/ICONIȚE */

.pcr-button::before, .pcr-button::after {
    content: "" !important;
    display: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Hover */

.pcr-button:hover {
    transform: scale(1.05) !important;
    border-color: #d1d5db !important;
}

/* --- STILIZARE PRESETS VIZIBILE --- */

.postly-visible-presets {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.preset-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
}

.preset-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Fereastra Pop-up stilizată */

.pcr-app {
    z-index: 99999 !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

/* Spinner-ul principal */

.postly-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stiluri pentru pași */

.postly-steps-visual div {
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.postly-steps-visual div.active {
    color: #6366f1;
    border-bottom: 2px solid #6366f1;
    font-weight: bold;
}

.postly-steps-visual div.completed {
    color: #10b981;
}

/* Badge-ul de lângă label */

.ai-badge {
    font-size: 9px;
    background: #eef2ff;
    color: #6366f1;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Hint-ul de sub picker */

.postly-input-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #888;
    font-style: italic;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.postly-input-hint i {
    color: #6366f1;
}

.postly-idea-banner {
    background: linear-gradient(to right, #fdfbfb, #ebedee);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.idea-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.idea-icon-circle {
    width: 35px;
    height: 35px;
    background: #fff;
    color: #6366f1;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.idea-text h4 {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.idea-text p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #777;
}

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

/* Butonul "Finuț" - Transparent default */

.btn-idea-cta {
    background: transparent;
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-idea-cta:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    transform: translateY(-1px);
}

.btn-close-banner {
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.btn-close-banner:hover {
    color: #ff4757;
}

/* Stil pentru Badge */

.status-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.used {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge.suggested {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Stil pentru Cardul întreg când e folosit */

.postly-plan-card.used {
    background-color: #fafafa;
    border-color: #e5e7eb;
    opacity: 0.85;
}

.postly-plan-card.used:hover {
    opacity: 1;
    background-color: #fff;
}

/* 2. Layout Grid adaptabil */

.postly-preview-grid-forced {
    flex-wrap: wrap !important;
    gap: 20px !important;
}

/* 2. Textul evenimentului trebuie să fie vizibil */

.fc-event-title, .fc-event-time {
    color: inherit !important;
    font-weight: 500;
}

/* 3. Status Colors (Suprascrie JS-ul dacă e nevoie) */

.fc-event.status-scheduled {
    background-color: #fef3c7 !important;
    border-color: #fbbf24 !important;
    color: #92400e !important;
}

.fc-event.status-published {
    background-color: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

.fc-event.status-failed {
    background-color: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

.fc-event.status-draft {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

/* 4. Asigură înălțimea celulelor */

.fc-daygrid-day-frame {
    min-height: 80px !important;
}

/* 5. Elimină orice overflow care ar putea ascunde evenimentele */

.fc-daygrid-day-events {
    margin-top: 2px;
    padding-bottom: 2px;
}

/* =========================================
   DESKTOP STYLES (Ce aveai deja bun)
   ========================================= */

.postly-main-container-fixed {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.postly-header-card-fixed {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 25px 30px;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
    width: 100%;
}

.header-inner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stiluri Header Text */

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

.header-text-group h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #1e293b;
}

.header-text-group p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Buton Hamburger (Ascuns pe Desktop) */

.postly-mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1e293b;
    padding: 0;
}

/* Buton Close (Ascuns pe Desktop) */

.close-sidebar-btn {
    display: none;
}

/* Overlay (Ascuns pe Desktop) */

.postly-overlay {
    display: none;
}

/* Layout Flex Desktop */

.postly-flex-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar Desktop */

.postly-sidebar-fixed {
    width: 260px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 30px;
    z-index: 100;
    height: fit-content;
}

/* Stiluri Meniu (Generale) */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 15px;
}

.brand-emoji {
    font-size: 22px;
}

.brand-text {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
}

.menu-item:hover {
    color: #1e293b;
    text-decoration: none !important;
}

.menu-item.active {
    background: #f4fbff;
    color: #1595FB;
    font-weight: 700;
}

.menu-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.menu-item.active .menu-icon {
    color: #1595FB;
}

.menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 10px 0;
}

.sidebar-user {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

/* Content Area */

.postly-content-area {
    flex-grow: 1;
    min-width: 0;
}

/* =========================================
   HAMBURGER & MOBILE DRAWER STYLES
   ========================================= */

/* Default: Ascundem elementele mobile pe Desktop */

.postly-hamburger-btn {
    display: none;
}

.postly-close-btn {
    display: none;
}

.postly-mobile-overlay {
    display: none;
}

.btn-text-mobile {
    display: none;
}

.postly-btn-gradient:hover, .postly-btn-gradient:focus {
    text-decoration: none !important;
}

/* =========================================
   FIX GLOBAL: RESET LINK STYLES (NO UNDERLINE)
   ========================================= */

/* 1. Toate link-urile din Dashboard Postly */

.postly-main-container-fixed a, .postly-sidebar-fixed a, .postly-content-area a, .postly-header-card-fixed a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 2. Link-uri la Hover (Opțional: Doar schimbare culoare, fără linie) */

.postly-main-container-fixed a:hover, .postly-sidebar-fixed a:hover, .postly-content-area a:hover, .postly-header-card-fixed a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* 4. Specific pentru Butoane (Gradient, Outline, etc.) */

.postly-btn, .postly-btn-gradient, .postly-btn-outline, .postly-action-card {
    text-decoration: none !important;
}

/* 5. Specific pentru Carduri Actiuni (Dashboard Dreapta) */

.postly-action-card h4, .postly-action-card p {
    text-decoration: none !important;
}

/* =========================================
   MOBIL - SINGURA MEDIA QUERY 992px
   ========================================= */
@media (max-width: 992px) {

    /* CONTAINER */
    .postly-main-container-fixed {
        padding: 0 12px;
        margin: 10px auto;
    }

    /* HEADER - rămâne pe o linie */
    .postly-header-card-fixed {
        padding: 12px 15px;
        margin-bottom: 12px;
    }

.header-inner-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
}

.header-left {
    width: 100%;
    flex: unset;
    gap: 10px;
}

    .header-text-group h1 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .header-text-group p {
        display: none;
    }

    /* Hamburger vizibil */
    .postly-hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
    }

.header-right {
    width: 100% !important;
}

.postly-btn-gradient {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    justify-content: center;
}

    .btn-text-desktop {
        display: inline !important;
    }

    /* LAYOUT - sidebar iese din flux */
    .postly-flex-container {
        display: block !important;
        width: 100%;
    }

    .postly-content-area {
        width: 100% !important;
        min-width: 0;
        display: block;
    }

    /* SIDEBAR DRAWER - GPU transform */
    .postly-sidebar-fixed {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15) !important;
        padding: 20px 16px !important;
        padding-top: 55px !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform;
        /* Reset sticky */
        sticky: unset;
    }

    .postly-sidebar-fixed.mobile-active {
        transform: translateX(0) !important;
    }

    /* Buton X vizibil */
    .postly-close-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* DASHBOARD GRID - o coloană */
    .postly-dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100%;
    }

    .postly-dashboard-left,
    .postly-dashboard-right {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* CARDURI - spațiu între ele */
    .postly-card {
        padding: 16px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
    }

    /* STATS - 3 coloane */
    .postly-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .postly-stat-box {
        padding: 12px !important;
        gap: 8px;
    }

    .stat-value { font-size: 16px; }
    .stat-label { font-size: 10px; }
    .stat-icon  { width: 32px; height: 32px; font-size: 15px; }

    /* ACTIONS */
    .postly-actions-grid {
        gap: 8px;
        margin-bottom: 12px;
    }

    .postly-action-card {
        padding: 12px !important;
    }

    /* OVERLAY */
    .postly-mobile-overlay {
        visibility: hidden;
        pointer-events: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9990;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .postly-mobile-overlay.active {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }
}

/* =========================================
   EXTRA SMALL < 480px
   ========================================= */
@media (max-width: 480px) {
    .postly-stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .postly-main-container-fixed {
        padding: 0 8px;
    }

    .postly-card {
        padding: 12px !important;
    }
}


/* =========================================
   EXTRA SMALL (< 400px)
   ========================================= */
@media (max-width: 400px) {

    /* Stats 1 coloană pe telefoane foarte mici */
    .postly-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .postly-card {
        padding: 12px;
    }

    .header-text-group h1 {
        font-size: 15px;
    }
}
/* Fix: sidebar peste orice element al temei */
.postly-sidebar-fixed {
    z-index: 999999 !important; /* Mai mare decât orice meniu WordPress */
}

.postly-mobile-overlay {
    z-index: 999998 !important;
}

/* Fix specific pentru WP Admin Bar (z-index: 99999) */
@media (max-width: 992px) {
    .postly-sidebar-fixed {
        /* Admin bar are 32px înălțime pe mobil */
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
    }
}
/* =========================================
   ONBOARDING EMPTY STATE CARDS (Modern)
   ========================================= */

/* Setăm accente per card (fără HTML extra) */
.postly-card-instagram.not-connected {
    --ob-accent-1: #dc2743;
    --ob-accent-2: #bc1888;
    --ob-soft: rgba(220, 39, 67, 0.10);
    --ob-border: rgba(220, 39, 67, 0.22);
}

.postly-card-brand.not-configured {
    --ob-accent-1: #1595fb;
    --ob-accent-2: #6d28d9;
    --ob-soft: rgba(131, 58, 180, 0.10);
    --ob-border: rgba(131, 58, 180, 0.22);
}

/* Card look: gradient + highlight + shadow mai “premium” */
.postly-card-instagram.not-connected,
.postly-card-brand.not-configured {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ob-border);
    background:
        radial-gradient(900px 240px at -10% -20%, var(--ob-soft), transparent 55%),
        radial-gradient(700px 220px at 110% 0%, rgba(255, 255, 255, 0.9), transparent 55%),
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.86));
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255,255,255,0.8) inset;
    backdrop-filter: blur(6px);
}

/* “Shine” subtil */
.postly-card-instagram.not-connected::before,
.postly-card-brand.not-configured::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.0) 0%,
        rgba(255,255,255,0.55) 22%,
        rgba(255,255,255,0.0) 46%
    );
    transform: translateX(-55%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.postly-card-instagram.not-connected:hover::before,
.postly-card-brand.not-configured:hover::before {
    transform: translateX(55%);
}

/* “Accent bar” modern în colț */
.postly-card-instagram.not-connected::after,
.postly-card-brand.not-configured::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--ob-accent-1), var(--ob-accent-2));
    opacity: 0.16;
    filter: blur(2px);
    pointer-events: none;
}

/* Container empty state */
.postly-onboarding-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 0 2px 0;
    gap: 10px;
}

/* Badge: mai “chip” + blur */
.onboarding-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.badge-step-1 { border-color: rgba(220, 39, 67, 0.22); }
.badge-step-2 { border-color: rgba(131, 58, 180, 0.22); }

/* Icon: în “tile” modern */
.onboarding-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 30px;
    line-height: 1;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255,255,255,0.85) inset;
}

/* Titlu + text */
.onboarding-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.onboarding-desc {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.55;
    max-width: 320px;
}

/* CTA: mai “app-like” + focus states */
.onboarding-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    width: 100%;
    max-width: 360px;
    transform: translateZ(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    outline: none;
}

.onboarding-cta:hover { transform: translateY(-2px); }
.onboarding-cta:active { transform: translateY(0); }

.onboarding-cta:focus-visible {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

/* CTA Instagram */
.cta-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(220, 39, 67, 0.26);
}

/* CTA Brand */
.cta-brand {
    background: linear-gradient(135deg, #1595fb, #6d28d9);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(131, 58, 180, 0.24);
}

/* Mic “shine” pe buton */
.onboarding-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255,255,255,0.0), rgba(255,255,255,0.28), rgba(255,255,255,0.0));
    transform: translateX(-60%);
    transition: transform 0.55s ease;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.onboarding-cta:hover::after { transform: translateX(60%); }

/* Hint */
.onboarding-hint {
    font-size: 11px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Respectă preferințe motion */
@media (prefers-reduced-motion: reduce) {
    .postly-card-instagram.not-connected::before,
    .postly-card-brand.not-configured::before,
    .onboarding-cta,
    .onboarding-cta::after {
        transition: none !important;
    }
}
.btn-idea-cta {
    border: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    background: white !important;
    display: inline-flex !important;
    align-items: center !important;
}

.btn-idea-cta:hover {
    border-color: #1595fb !important;
    color: #1595fb !important;
    background: white !important;
}
/* Settings Sub-Nav */
.settings-subnav {
    display: flex;
    gap: 6px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.settings-subnav .settings-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.settings-subnav .settings-tab:hover {
    background: #f1f5f9;
    color: #334155;
}

.settings-subnav .settings-tab.active {
    background: #f3f0ff;
    color: #1595fb;
    font-weight: 600;
}

/* Tab panes */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

@media (max-width: 600px) {
    .settings-subnav {
        gap: 4px;
    }
    .settings-subnav .settings-tab {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }
    .settings-subnav .settings-tab .icon {
        display: none; /* pe mobil f. mic, scoatem emoji */
    }
}
#postly-event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    background: transparent;
}

#postly-event-modal .postly-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    position: relative;
    margin: auto;
}
/* Calendar wrapper */
.postly-calendar-wrapper {
    width: 100%;
    min-height: 600px;
}

#postly-calendar {
    width: 100%;
    min-height: 600px;
}
.sub-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.sub-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.sub-detail-row:last-child {
    border-bottom: none;
}

.sub-detail-row:nth-child(even) {
    background: #f8fafc;
}

.sub-detail-label {
    color: #6b7280;
    font-weight: 500;
}

.sub-detail-value {
    color: #111827;
    font-weight: 600;
    text-align: right;
}


@media (max-width: 992px) {
    .postly-sidebar-fixed {
        z-index: 9999 !important; /* exact peste #top care e 9998 */
    }

    .postly-mobile-overlay {
        z-index: 9997 !important; /* sub sidebar, sub header */
    }
}
.error-border {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}
/* Containerul pentru detaliile utilizatorului */
.sidebar-user .user-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Numele utilizatorului */
.sidebar-user .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

/* Link-ul de deconectare cu roșu */
.postly-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 500;
    color: #EF4444; /* Roșu Tailwind */
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.postly-logout-link:hover {
    color: #B91C1C; /* Roșu mai închis la hover */
}

/* Ca să arate bine iconița */
.postly-logout-link svg {
    margin-top: 1px;
}
/* ===== IMAGE REFERENCE ===== */
.postly-ref-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}
.postly-ref-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1595fb;
    cursor: pointer;
    flex-shrink: 0;
}
.postly-ref-checkbox-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.postly-ref-type-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.postly-ref-type-btn {
    flex: 1;
    cursor: pointer;
}
.postly-ref-type-btn input[type="radio"] {
    display: none;
}
.postly-ref-type-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    background: #f9fafb;
}
.postly-ref-type-btn input[type="radio"]:checked + span {
    border-color: #1595fb;
    background: #f4f4ff;
    color: #1595fb;
}
.postly-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: #fafafa;
    color: #6b7280;
    font-size: 13px;
}
.postly-upload-dropzone:hover,
.postly-upload-dropzone.dragover {
    border-color: #1595fb;
    background: #f4f4ff;
    color: #1595fb;
}
.postly-upload-dropzone.has-file {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #16a34a;
}
.postly-upload-icon {
    opacity: 0.5;
}
.postly-ref-type-btn span {
    /* înlocuiește align-items: center cu flex-start */
    align-items: flex-start;
}
.ref-type-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.ref-type-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.ref-type-content strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.ref-type-content small {
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.85;
}
/* ── Mobile Fix: Instagram Connect Page ONLY ── */

@media (max-width: 768px) {

    .postly-page-instagram .connect-grid-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px;
    }

    .postly-page-instagram .connect-info-col,
    .postly-page-instagram .connect-action-col {
        width: 100% !important;
        min-width: 0 !important;
    }

    .postly-page-instagram .connect-action-col { order: -1; }
    .postly-page-instagram .connect-info-col   { order: 1;  }

    .postly-page-instagram .action-card {
        text-align: center;
        padding: 24px 20px;
    }

    .postly-page-instagram .insta-logo-large img {
        width: 64px;
        height: 64px;
    }

    .postly-page-instagram .insta-logo-large {
        margin-bottom: 12px;
    }

    .postly-page-instagram .action-card h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .postly-page-instagram .action-card p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .postly-page-instagram #postly-connect-btn {
        width: 100%;
        font-size: 15px;
        padding: 14px 16px;
    }

    .postly-page-instagram .postly-benefits-list li {
        gap: 10px;
    }

    .postly-page-instagram .postly-benefits-list .text p {
        font-size: 13px;
    }

    .postly-page-instagram .faq-card,
    .postly-page-instagram .info-card,
    .postly-page-instagram .warning-card {
        padding: 20px 16px;
    }

    .postly-page-instagram .req-item {
        gap: 10px;
    }

    .postly-page-instagram .req-item p {
        font-size: 13px;
    }

    /* Scoped strict — nu mai afectează Settings sau alte pagini */
    .postly-page-instagram .postly-content-area {
        padding: 0 !important;
    }
}

@media (max-width: 480px) {

    .postly-page-instagram .postly-header-card-fixed .header-text-group h3 {
        font-size: 16px;
    }

    .postly-page-instagram .postly-header-card-fixed .header-text-group p {
        font-size: 12px;
    }

    .postly-page-instagram .security-note {
        font-size: 11px !important;
        flex-wrap: wrap;
        text-align: center;
    }
}
/* ── Mobile Fix: Settings Page ── */

@media (max-width: 768px) {

    /* ── 1. Sub-nav tabs: scroll orizontal fin ── */
    .postly-page-settings .settings-subnav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 6px;
        scrollbar-width: none; /* Firefox */
    }

    .postly-page-settings .settings-subnav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .postly-page-settings .settings-tab {
        flex-shrink: 0;       /* nu se micșorează — permite scroll */
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 13px;
        gap: 5px;
    }

    .postly-page-settings .settings-tab .icon svg {
        width: 13px;
        height: 13px;
    }

    /* ── 2. Grid plan + credite → coloană verticală ── */
    .postly-page-settings .subscription-overview {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin: 14px 0 !important;
    }

    /* Cardul de credite — mai compact pe mobil */
    .postly-page-settings .subscription-overview > div:last-child {
        padding: 14px !important;
    }

    /* Titlul planului mai mic */
    .postly-page-settings .plan-details h4 {
        font-size: 18px !important;
    }

    /* ── 3. Header card: titlu + badge pe rânduri separate ── */
    .postly-page-settings .postly-card .postly-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* ── 4. Sub-detail rows: label deasupra, valoare dedesubt ── */
    .postly-page-settings .sub-detail-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }

    .postly-page-settings .sub-detail-label {
        font-size: 12px;
        color: #9ca3af;
        font-weight: 500;
    }

    .postly-page-settings .sub-detail-value {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        justify-content: flex-start !important; /* override inline flex-end */
    }

    /* ── 5. Rândul din Istoric Plăți — badge + sumă + buton pe rând ── */
    .postly-page-settings .sub-detail-row .sub-detail-value {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* ── 6. Butoane acțiuni (Gestionează / Anulează / Reactivează) ── */
    .postly-page-settings .postly-card > div[style*="display:flex"][style*="flex-wrap:wrap"] {
        flex-direction: column;
    }

    .postly-page-settings .postly-card > div[style*="display:flex"][style*="flex-wrap:wrap"] a {
        width: 100%;
        justify-content: center;
    }

    /* ── 7. Content area padding ── */
    .postly-page-settings .postly-content-area {
        padding: 0 !important;
    }
}

@media (max-width: 480px) {

    /* Titlul paginii Settings mai mic */
    .postly-page-settings .postly-header-card-fixed .header-text-group h3 {
        font-size: 16px;
    }

    /* Badge status lângă titlu — font mai mic */
    .postly-page-settings .postly-status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* Butonul Upgrade — full width */
    .postly-page-settings .postly-btn-gradient {
        width: 100%;
        justify-content: center;
    }
}
.postly-logo-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.postly-logo-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo-col-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-col-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}
.logo-col-badge--dark  { background: #1a1a1a; color: #fff; }
.logo-col-badge--light { background: #f0f0f0; color: #333; border: 1px solid #ddd; }

.logo-col-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.logo-col-hint {
    font-size: 11px;
    color: #9ca3af;
}

.postly-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.postly-dropzone:hover {
    border-color: #1595fb;
    background: #f4f4ff;
}

.dropzone-text    { font-size: 13px; font-weight: 500; color: #374151; margin: 0; }
.dropzone-subtext { font-size: 12px; color: #9ca3af; margin: 0; }
.dropzone-link    { color: #1595fb; text-decoration: underline; cursor: pointer; }

.postly-logo-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-preview-bg {
    width: 100%;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
.logo-preview-bg--light { background: #f3f4f6; }
.logo-preview-bg--dark  { background: #1f2937; }

.postly-logo-preview-wrap img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.logo-remove-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all .2s;
}
.logo-remove-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

@media (max-width: 600px) {
    .postly-logo-upload-grid { grid-template-columns: 1fr; }
}
/* Grid uniform pentru carduri */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* Card — înălțime consistentă */
.instagram-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top section */
.insta-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Wrapper avatar — dimensiune fixă */
.insta-avatar-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0; /* ← nu se micșorează */
}

/* ✅ FIX PRINCIPAL — avatar dimensiune fixă */
.insta-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;  /* taie imaginea să încapă fără deformare */
    display: block;
}

/* Indicatorul de status (punctul verde) */
.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.status-active  { background: #22c55e; }
.status-expired { background: #ef4444; }

/* Info text lângă avatar */
.insta-info {
    flex: 1;
    min-width: 0; /* previne overflow pe text lung */
}

.insta-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}