/* ========================================
   Content Planner Page Styles
======================================== */

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.content-header-left h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.content-header-left p {
    font-size: 14px;
    color: var(--gray-400);
}

.content-header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

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

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-700);
    border-top-color: var(--red-500);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

.loading-spinner.large {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

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

.loading-state p {
    color: var(--gray-400);
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--gray-800);
    border-radius: 12px;
    border: 1px solid var(--gray-700);
}

.empty-state svg {
    color: var(--gray-500);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 24px;
}

.empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   Calendar Styles
======================================== */

.calendar-container {
    background: var(--gray-800);
    border-radius: 12px;
    border: 1px solid var(--gray-700);
    overflow: hidden;
    max-width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-700);
    flex-wrap: wrap;
    gap: 16px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendar-nav-btn {
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 8px;
    padding: 8px;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: var(--gray-600);
    color: #fff;
}

.calendar-month {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    min-width: 180px;
    text-align: center;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400);
}

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

/* Article Type Colors */
.legend-dot.type-how-to {
    background: #3b82f6; /* Blue - How-To guides */
}

.legend-dot.type-explainer {
    background: #8b5cf6; /* Purple - Explainers */
}

.legend-dot.type-list {
    background: #f59e0b; /* Amber - Listicles */
}

.legend-dot.type-comparison {
    background: #10b981; /* Emerald - Comparisons */
}

.legend-dot.type-review {
    background: #ec4899; /* Pink - Reviews */
}

/* GEO Content Type */
.legend-dot.geo {
    background: #06b6d4; /* Cyan - GEO articles */
}

.legend-divider {
    width: 1px;
    height: 16px;
    background: var(--gray-600);
    margin: 0 4px;
}

/* Calendar Grid */
.calendar-grid {
    padding: 0;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--gray-850);
    border-bottom: 1px solid var(--gray-700);
}

.calendar-weekday {
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
}

/* Calendar Day Cell */
.calendar-day {
    min-height: 120px;
    border-right: 1px solid var(--gray-700);
    border-bottom: 1px solid var(--gray-700);
    padding: 8px;
    position: relative;
    background: var(--gray-800);
    transition: all 0.3s ease;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: var(--gray-750);
}

.calendar-day.other-month {
    background: var(--gray-850);
    opacity: 0.5;
}

.calendar-day.today {
    background: rgba(239, 68, 68, 0.05);
}

.calendar-day.today .day-number {
    background: var(--red-500);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Calendar day status backgrounds - more visible! */
.calendar-day.has-scheduled {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--blue-500);
}

.calendar-day.has-generating {
    background: rgba(234, 179, 8, 0.12);
    border-left: 3px solid var(--yellow-500);
    animation: pulse-generating 2s ease-in-out infinite;
}

.calendar-day.has-pending {
    background: rgba(168, 85, 247, 0.1);
    border-left: 3px solid var(--purple-500);
}

.calendar-day.has-published {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid var(--green-500);
}

.calendar-day.has-failed {
    background: rgba(239, 68, 68, 0.12);
    border-left: 3px solid var(--red-500);
}

@keyframes pulse-generating {
    0%, 100% {
        background: rgba(234, 179, 8, 0.08);
    }
    50% {
        background: rgba(234, 179, 8, 0.18);
    }
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.day-number {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
}

.day-weekday {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: lowercase;
}

/* Keyword Card in Calendar */
.keyword-card {
    background: var(--gray-700);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid var(--blue-500);
}

.keyword-card:hover {
    background: var(--gray-650);
    transform: translateY(-1px);
}

/* Article Type Colors - Border indicates type */
.keyword-card.type-how-to {
    border-left-color: #3b82f6; /* Blue */
}

.keyword-card.type-explainer {
    border-left-color: #8b5cf6; /* Purple */
}

.keyword-card.type-list {
    border-left-color: #f59e0b; /* Amber */
}

.keyword-card.type-comparison {
    border-left-color: #10b981; /* Emerald */
}

.keyword-card.type-review {
    border-left-color: #ec4899; /* Pink */
}

/* GEO Article Card (Cyan) */
.keyword-card.geo {
    border-left-color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
}

.keyword-card.geo:hover {
    background: rgba(6, 182, 212, 0.15);
}

/* Card Type Indicator - colored dot inside card */
.card-type-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-type-indicator.type-how-to {
    background: #3b82f6;
}

.card-type-indicator.type-explainer {
    background: #8b5cf6;
}

.card-type-indicator.type-list {
    background: #f59e0b;
}

.card-type-indicator.type-comparison {
    background: #10b981;
}

.card-type-indicator.type-review {
    background: #ec4899;
}

/* Status-based styling (subtle background changes) */
.keyword-card.scheduled {
    background: var(--gray-700);
}

.keyword-card.generating {
    background: rgba(245, 158, 11, 0.1);
}

.keyword-card.published {
    background: rgba(16, 185, 129, 0.08);
}

.keyword-card.failed {
    background: rgba(244, 63, 94, 0.1);
}

.keyword-card.pending {
    background: rgba(168, 85, 247, 0.1);
}

.keyword-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.keyword-type.how-to {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.keyword-type.explainer {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.keyword-type.list {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.keyword-type.comparison {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.keyword-type.review {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

/* Content Type Badges */
.keyword-type.seo {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.keyword-type.geo {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.keyword-title {
    display: block;
    font-size: 11px;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Keyword card compact single-line layout */
.keyword-card {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.keyword-card .keyword-type {
    flex-shrink: 0;
    margin-bottom: 0;
}

.keyword-card .keyword-title {
    flex: 1;
    min-width: 0;
}

/* Calendar card with metrics - new 2-line layout */
.keyword-card .keyword-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.keyword-card .keyword-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.keyword-card .keyword-card-header .keyword-type {
    flex-shrink: 0;
}

.keyword-card .keyword-card-header .keyword-title {
    flex: 1;
    min-width: 0;
}

.keyword-card-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    padding-left: 2px;
}

.card-metric-kd {
    color: var(--gray-400);
}

.card-metric-vol {
    color: var(--gray-400);
}

/* KD color classes for calendar cards */
.card-metric-kd.kd-easy {
    color: #22c55e;
}

.card-metric-kd.kd-medium {
    color: #f59e0b;
}

.card-metric-kd.kd-hard {
    color: #ef4444;
}

/* Native title attribute provides tooltip - no custom CSS needed */

/* Link icon styling */
.card-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.card-link-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Spinning animation for generating status */
.spin-icon {
    animation: spin 2s linear infinite;
}

/* Calendar day overflow - keep hidden to prevent layout issues */
.calendar-day {
    overflow: hidden;
}

.keyword-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 10px;
    color: var(--gray-400);
}

.keyword-status svg {
    width: 12px;
    height: 12px;
}

.keyword-status.published {
    color: var(--green-500);
}

.keyword-status.published a {
    color: var(--green-500);
    text-decoration: underline;
}

/* ========================================
   Modal Styles
======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--gray-800);
    border-radius: 16px;
    border: 1px solid var(--gray-700);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.2s ease;
}

.modal-content.modal-lg {
    max-width: 600px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-700);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-700);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-200);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #fff;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--red-500);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: var(--gray-500);
}

.radio-option input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--red-500);
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #fff;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
    display: block;
}

.radio-desc {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Company Info Preview */
.company-info-preview {
    background: var(--gray-700);
    border-radius: 10px;
    padding: 16px;
}

.info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 13px;
    color: var(--gray-500);
    min-width: 80px;
}

.info-value {
    font-size: 13px;
    color: var(--gray-200);
    word-break: break-word;
}

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

.generating-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 8px;
}

.generating-state p {
    font-size: 14px;
    color: var(--gray-400);
}

/* Keywords Review */
.keywords-review {
    background: var(--gray-700);
    border-radius: 10px;
    overflow: hidden;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--gray-750);
    border-bottom: 1px solid var(--gray-600);
}

.review-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.keyword-count {
    font-size: 12px;
    color: var(--gray-400);
}

.keywords-list {
    max-height: 300px;
    overflow-y: auto;
}

.keyword-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-600);
}

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

.keyword-item input[type="checkbox"] {
    accent-color: var(--red-500);
}

.keyword-item-content {
    flex: 1;
}

.keyword-item-text {
    font-size: 13px;
    color: #fff;
}

.keyword-item-type {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}

.keyword-item-date {
    font-size: 12px;
    color: var(--gray-400);
}

/* SEO Metrics Row (KD and Volume) */
.keyword-item-metrics {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    margin-top: 4px;
}

.metric-kd {
    color: var(--gray-400);
}

.metric-vol {
    color: var(--gray-400);
}

/* KD Difficulty Color Classes */
.metric-kd.kd-easy {
    color: #22c55e; /* Green - easy to rank */
}

.metric-kd.kd-medium {
    color: #f59e0b; /* Yellow/Orange - moderate */
}

.metric-kd.kd-hard {
    color: #ef4444; /* Red - hard to rank */
}

/* Detail Modal */
.detail-status {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.scheduled {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-400);
}

.status-badge.generating {
    background: rgba(234, 179, 8, 0.2);
    color: var(--yellow-400);
}

.status-badge.published {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green-400);
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red-400);
}

.detail-info {
    background: var(--gray-700);
    border-radius: 10px;
    padding: 16px;
}

.detail-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 13px;
    color: var(--gray-500);
    min-width: 100px;
}

.detail-value {
    font-size: 13px;
    color: var(--gray-200);
    word-break: break-word;
}

.detail-value.error {
    color: var(--red-400);
}

.detail-link {
    font-size: 13px;
    color: var(--blue-400);
    text-decoration: none;
}

.detail-link:hover {
    text-decoration: underline;
}

/* Button Variants */
.btn-danger {
    color: var(--red-400);
    border-color: var(--red-800);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--red-600);
}

/* ========================================
   Responsive Styles
======================================== */

@media (max-width: 900px) {
    .calendar-day {
        min-height: 100px;
        padding: 6px;
    }

    .keyword-card {
        padding: 6px 8px;
    }

    .keyword-type {
        font-size: 9px;
        padding: 2px 4px;
    }

    .keyword-title {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .keyword-status {
        display: none;
    }
}

@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        gap: 16px;
    }

    .content-header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .calendar-nav {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-legend {
        width: 100%;
        justify-content: flex-start;
    }

    .calendar-day {
        min-height: 80px;
    }

    .day-weekday {
        display: none;
    }

    .modal-content.modal-lg {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .calendar-weekday {
        font-size: 10px;
        padding: 8px 4px;
    }

    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .day-number {
        font-size: 12px;
    }

    .keyword-card {
        padding: 4px 6px;
        border-left-width: 2px;
    }

    .keyword-type {
        display: none;
    }

    .keyword-title {
        font-size: 10px;
    }
}

/* =====================================================
   NO CREDITS STATE
   ===================================================== */

.no-credits-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.no-credits-state .no-credits-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-credits-state .no-credits-icon svg {
    color: #fbbf24;
}

.no-credits-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}

.no-credits-state p {
    font-size: 14px;
    color: var(--gray-400);
    margin: 0 0 8px;
    max-width: 360px;
    line-height: 1.5;
}

.no-credits-state .credit-note {
    color: var(--gray-500);
    font-size: 13px;
    margin-top: 16px;
}

.no-credits-state .credit-warning {
    color: #f87171;
    font-weight: 500;
}

/* =====================================================
   KEYWORD BANK MODAL
   ===================================================== */

.modal-content.modal-xl {
    max-width: 900px;
}

/* Bank Controls */
.keyword-bank-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.keyword-bank-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bank-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bank-tab:hover {
    background: var(--gray-650);
    color: var(--gray-200);
}

.bank-tab.active {
    background: var(--red-500);
    border-color: var(--red-500);
    color: #fff;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 11px;
    font-weight: 600;
}

.bank-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.keyword-bank-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.keyword-bank-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.keyword-bank-sort label {
    font-size: 13px;
    color: var(--gray-400);
    white-space: nowrap;
}

.keyword-bank-sort .form-select {
    width: auto;
    min-width: 160px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Danger Outline Button */
.btn-danger-outline {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: transparent;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

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

.btn-danger-outline svg {
    stroke: currentColor;
}

/* Small loading spinner for buttons */
.loading-spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s linear infinite;
}

/* Bank Loading State */
.keyword-bank-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.keyword-bank-loading p {
    color: var(--gray-400);
    font-size: 14px;
    margin-top: 16px;
}

/* Bank Empty State */
.keyword-bank-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--gray-750);
    border-radius: 12px;
    border: 1px dashed var(--gray-600);
}

.keyword-bank-empty svg {
    color: var(--gray-500);
    margin-bottom: 16px;
}

.keyword-bank-empty h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
}

.keyword-bank-empty p {
    font-size: 14px;
    color: var(--gray-400);
    margin: 0;
}

/* Bank Keywords List */
.keyword-bank-list {
    background: var(--gray-750);
    border-radius: 12px;
    border: 1px solid var(--gray-600);
    overflow: hidden;
}

.bank-list-header {
    display: grid;
    grid-template-columns: 1fr 60px 80px 70px 100px 80px;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-700);
    border-bottom: 1px solid var(--gray-600);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bank-list-body {
    max-height: 400px;
    overflow-y: auto;
}

.bank-list-row {
    display: grid;
    grid-template-columns: 1fr 60px 80px 70px 100px 80px;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-700);
    align-items: center;
    transition: background 0.2s ease;
}

.bank-list-row:last-child {
    border-bottom: none;
}

.bank-list-row:hover {
    background: var(--gray-700);
}

/* Bank Columns */
.bank-col-keyword {
    font-size: 13px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bank-col-kd,
.bank-col-vol,
.bank-col-score,
.bank-col-date {
    font-size: 13px;
    color: var(--gray-300);
    text-align: center;
}

.bank-col-status {
    text-align: center;
}

/* KD Badge in Bank */
.kd-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: var(--gray-600);
}

.kd-badge.kd-easy {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.kd-badge.kd-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.kd-badge.kd-hard {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Status Badge in Bank */
.bank-col-status .status-badge {
    font-size: 11px;
    padding: 4px 10px;
}

.status-badge.available {
    background: var(--gray-600);
    color: var(--gray-300);
}

.status-badge.skipped {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

/* Skipped Badge (inline with keyword) */
.skipped-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    vertical-align: middle;
}

/* Bank Footer */
.modal-footer .bank-footer-info {
    flex: 1;
    font-size: 13px;
    color: var(--gray-400);
}

/* Bank List Empty State */
.bank-list-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: 14px;
}

/* =====================================================
   LOCKED PRO DAYS (Trial Users)
   ===================================================== */

/* Calendar day locked state for trial users */
.calendar-day.locked {
    opacity: 0.65;
    background: var(--gray-850);
    pointer-events: none;
    position: relative;
}

.calendar-day.locked::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.calendar-day.locked .day-header {
    position: relative;
    z-index: 2;
}

/* PRO badge for locked days */
.calendar-day.locked .pro-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Lock icon for locked keyword cards */
.calendar-day.locked .keyword-card {
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

.calendar-day.locked .keyword-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    pointer-events: none;
}

/* Striped pattern overlay for locked days */
.calendar-day.locked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.03) 10px,
        rgba(0, 0, 0, 0.03) 20px
    );
    pointer-events: none;
    z-index: 1;
}

/* Hover state for locked days - show upgrade hint */
.calendar-day.locked:hover {
    cursor: not-allowed;
}

/* Calendar day with locked content but still hoverable */
.calendar-day.locked.has-scheduled {
    background: rgba(59, 130, 246, 0.04);
}

/* Upgrade CTA banner for trial users */
.trial-upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.trial-upgrade-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trial-upgrade-banner .banner-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    color: #f59e0b;
    flex-shrink: 0;
}

.trial-upgrade-banner .banner-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
}

.trial-upgrade-banner .banner-text p {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0;
}

.trial-upgrade-banner .btn-upgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

/* Legend item for locked/pro status */
.legend-dot.locked {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* =====================================================
   AUTO-FILL SUMMARY (Generate Keywords Modal Step 3)
   ===================================================== */

.auto-fill-summary {
    text-align: center;
    padding: 20px 0;
}

.auto-fill-summary .summary-icon {
    color: #22c55e;
    margin-bottom: 16px;
}

.auto-fill-summary .summary-icon svg {
    stroke: currentColor;
}

.auto-fill-summary h4 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px;
}

.auto-fill-summary .summary-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.auto-fill-summary .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auto-fill-summary .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.auto-fill-summary .stat-label {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.auto-fill-summary .summary-note {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.auto-fill-summary .summary-note strong {
    color: var(--primary);
}

/* Scheduled keywords preview */
.scheduled-preview {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-800);
    text-align: left;
}

.scheduled-preview h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-300);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scheduled-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scheduled-preview li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--gray-850);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.scheduled-preview li .kw-text {
    flex: 1;
    color: #fff;
    font-weight: 500;
}

.scheduled-preview li .kw-meta {
    color: var(--gray-400);
    font-size: 11px;
    margin: 0 16px;
}

.scheduled-preview li .kw-date {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
}

.scheduled-preview li.more-keywords {
    justify-content: center;
    color: var(--gray-400);
    font-style: italic;
    background: transparent;
}

/* Responsive for Bank Modal */
@media (max-width: 768px) {
    .modal-content.modal-xl {
        max-width: 100%;
    }

    .keyword-bank-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .keyword-bank-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .bank-tab {
        flex-shrink: 0;
    }

    .keyword-bank-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .keyword-bank-sort {
        flex: 1;
    }

    .keyword-bank-sort .form-select {
        flex: 1;
    }

    #clearKeywordBankBtn {
        flex-shrink: 0;
    }

    .bank-list-header,
    .bank-list-row {
        grid-template-columns: 1fr 50px 60px 60px;
        gap: 8px;
        padding: 10px 12px;
    }

    .bank-col-score,
    .bank-col-date {
        display: none;
    }

    .bank-col-keyword {
        font-size: 12px;
    }

    .bank-col-kd,
    .bank-col-vol {
        font-size: 11px;
    }

    .bank-col-status .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

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

.settings-section {
    margin-bottom: 24px;
}

.settings-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
}

.settings-section-title svg {
    color: var(--primary);
}

.settings-section-desc {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0 0 16px;
}

.settings-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-radio-option {
    display: block;
    cursor: pointer;
}

.settings-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-radio-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--gray-800);
    border: 2px solid var(--gray-700);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.settings-radio-option:hover .settings-radio-content {
    border-color: var(--gray-600);
    background: var(--gray-750);
}

.settings-radio-option.selected .settings-radio-content,
.settings-radio-option input[type="radio"]:checked ~ .settings-radio-content {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.settings-radio-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.settings-radio-icon.draft {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.settings-radio-icon.publish {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.settings-radio-text {
    flex: 1;
}

.settings-radio-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.settings-radio-desc {
    display: block;
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.4;
}

.settings-info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-300);
    line-height: 1.5;
}

.settings-info-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

/* Settings Toast */
.settings-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.settings-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.settings-toast svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* Icon-only button for settings */
.btn.btn-icon {
    padding: 8px;
    min-width: auto;
    border-radius: 8px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    color: var(--gray-300);
}

.btn.btn-icon:hover {
    background: var(--gray-750);
    border-color: var(--gray-600);
    color: #fff;
}

.btn.btn-icon svg {
    display: block;
}
