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

:root {
    --primary: #007aff;
    --primary-hover: #0051d5;
    --secondary: #8e8e93;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #e8e8ed;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border: #d2d2d7;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Apple-style scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(-45deg, #059669, #10b981, #34d399, #6ee7b7);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

.login-box {
    background: var(--bg-primary);
    padding: 56px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    max-width: 440px;
    width: 100%;
}

.login-logo {
    height: 28px;
    margin-bottom: 40px;
}

.login-box h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.005em;
    line-height: 1.1;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 40px;
    line-height: 1.47059;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 17px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.form-group input {
    padding: 14px 16px;
}

.form-group textarea {
    padding: 14px 16px;
}

.form-group select {
    padding: 14px 48px 14px 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Global select styling for dropdown arrow spacing */
select {
    padding-right: 48px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    line-height: 1.47059;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 6px;
}

.toggle-password:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.toggle-password:focus {
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 17px;
}

.checkbox-label span {
    line-height: 1;
    padding-top: 1px;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 51px;
    height: 31px;
    background: var(--border);
    border-radius: 31px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--success);
}

.checkbox-label input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-label input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 21px;
    line-height: 1.42859;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-logout {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: -0.022em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    width: 100%;
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-1px);
}

.btn-logout {
    background: rgba(255, 59, 48, 0.08);
    color: var(--danger);
    padding: 10px 20px;
    font-size: 15px;
    width: 100%;
}

.btn-logout:hover {
    background: rgba(255, 59, 48, 0.15);
}

/* Sidebar Separator */
.sidebar-separator {
    height: 1px;
    background: var(--border);
    margin: 12px 16px;
}

/* Dashboard Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.sidebar {
    position: fixed;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 72px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    z-index: 100;
}

.sidebar.animate-in {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInSidebar 0.4s ease-out forwards;
}

@keyframes slideInSidebar {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 10px;
    margin-bottom: 10px;
}

.sidebar-logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    text-decoration: none;
    color: #86868b;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-item:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.nav-item.active {
    background: #e8e8ed;
    color: #1d1d1f;
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.tooltip-container {
    position: relative;
}

.tooltip {
    position: absolute;
    left: auto;
    right: 100%;
    margin-right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: black;
    color: white;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.tooltip-right {
    left: 100%;
    right: auto;
    margin-left: 10px;
    margin-right: 0;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
}

.sidebar-footer {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-avatar {
    margin-top: 8px;
}

.sidebar-footer-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    color: #86868b;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-footer-btn:hover {
    background: #f5f5f7;
    color: #1d1d1f;
    transform: scale(1.05);
}

.user-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1d1d1f;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar:hover {
    background: #3a3a3c;
    transform: scale(1.05);
}

.avatar-initials {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.user-menu {
    position: fixed;
    bottom: 20px;
    left: 88px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 280px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.user-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-menu-info {
    flex: 1;
    overflow: hidden;
}

.user-menu-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-email {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-actions {
    padding: 8px;
}

.user-menu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    background: var(--bg-secondary);
}

.user-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 0 10px;
    word-break: break-all;
    line-height: 1.38462;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 88px;
    padding: 20px 56px;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

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

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

.section-header h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.003em;
    line-height: 1.08349;
}

.btn-action {
    padding: 8px 16px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-box svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.search-box input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    width: 100%;
    padding: 0;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: var(--bg-primary);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--text-primary);
    color: white;
}

/* Lists */
.articles-list,
.themes-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sends-list {
    display: block;
}

.article-item,
.theme-item {
    background: var(--bg-primary);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    display: flex;
    gap: 10px;
}

.article-item:hover,
.theme-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--border);
}

.article-item button {
    transition: opacity 0.2s, background-color 0.2s;
}

.article-item button:hover {
    opacity: 0.7;
    background-color: rgba(0, 122, 255, 0.1);
    border-radius: 8px;
}

.article-image-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

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

.article-header,
.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex: 1;
}

.article-title,
.theme-name {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.022em;
    line-height: 1.19048;
}

.article-meta {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    line-height: 1.42859;
}

.article-dates-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 16px;
}

.status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.status-draft {
    background: rgba(255, 149, 0, 0.12);
    color: var(--warning);
}

.status-published {
    background: rgba(52, 199, 89, 0.12);
    color: var(--success);
}

.article-actions,
.theme-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-icon {
    padding: 8px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-publish {
    background: var(--success);
    color: white;
}

.btn-publish:hover {
    background: var(--success);
    opacity: 0.85;
}

.btn-unpublish {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.08);
}

.btn-unpublish:hover {
    background: rgba(255, 149, 0, 0.15);
}

.btn-delete {
    color: var(--danger);
    background: rgba(255, 59, 48, 0.08);
}

.btn-delete:hover {
    background: rgba(255, 59, 48, 0.15);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    overflow: hidden;
}

.modal.active {
    display: flex;
}

body.modal-open {
    overflow: hidden !important;
    height: 100vh;
}

body.modal-open .admin-layout {
    overflow: hidden !important;
}

body.modal-open .main-content {
    overflow: hidden !important;
}

body.modal-open .content-section {
    overflow: hidden !important;
}

body.modal-open .company-profile {
    overflow: hidden !important;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-large {
    max-width: 80%;
}

.modal-company {
    max-width: 520px;
}

.modal-request-article {
    max-width: 1000px;
    max-height: 95vh;
}

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

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.009em;
}

.modal-close {
    background: var(--bg-secondary);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--bg-secondary);
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    width: auto;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.loading-container .spinner {
    width: 28px;
    height: 28px;
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.6);
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state-text {
    font-size: 19px;
    line-height: 1.52381;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        padding: 40px 32px;
    }

    .section-header h1 {
        font-size: 40px;
    }

    .login-box {
        padding: 40px;
    }

    .articles-list,
    .themes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 12px 16px;
    }

    .nav-item {
        white-space: nowrap;
        margin-bottom: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 32px 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .section-header h1 {
        font-size: 32px;
    }

    .section-header .btn-primary {
        width: 100%;
    }

    .articles-list,
    .themes-list {
        grid-template-columns: 1fr;
    }

    .article-header,
    .theme-header {
        flex-direction: column;
        gap: 16px;
    }

    .article-actions,
    .theme-actions {
        width: 100%;
        justify-content: stretch;
    }

    .btn-icon {
        flex: 1;
    }

    .login-box {
        padding: 32px 24px;
    }

    .login-box h1 {
        font-size: 32px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .filters {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-primary);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.toast.removing {
    animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

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

.toast-message {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.022em;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

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

.toast.success {
    border-color: var(--success);
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.info {
    border-color: var(--primary);
}

.toast.info .toast-icon {
    color: var(--primary);
}

/* Selection */
::selection {
    background: rgba(0, 122, 255, 0.2);
    color: var(--text-primary);
}

/* View Tabs */
.view-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 10px;
}

.view-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.view-tab:hover {
    background: rgba(0, 0, 0, 0.05);
}

.view-tab.active {
    background: var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

/* Calendar View */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}

.calendar-header h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.calendar-nav {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: var(--bg-tertiary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 12px 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-day {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 140px;
    width: 100%;
    padding: 10px;
    cursor: default;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    border-color: var(--primary);
    border-width: 2px;
}

.calendar-day-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    flex-shrink: 0;
}

.calendar-day.today .calendar-day-number {
    color: var(--primary);
}

.calendar-articles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.calendar-article-item {
    background: var(--bg-secondary);
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-left: 3px solid var(--primary);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.calendar-article-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(2px);
}

.calendar-article-item.draft {
    border-left-color: var(--warning);
}

.calendar-article-item.published {
    border-left-color: var(--success);
}

.calendar-more-articles {
    background: var(--bg-tertiary);
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.calendar-more-articles:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* Image Selector */
.image-selector {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 12px;
}


.current-image-wrapper {
    position: relative;
    width: 300px;
    height: 195px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--success);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.current-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 8px 10px;
}

.image-status {
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.image-options-container {
    flex-direction: column;
    gap: 12px;
}

.regenerate-section {
    display: flex;
    gap: 8px;
    align-items: center;
}

.unsplash-query-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.unsplash-query-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-regenerate {
    padding: 14px 14px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn-regenerate:hover {
    background: var(--primary-hover);
}

.unsplash-limit-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.unsplash-limit-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.unsplash-limit {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.image-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-options-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.image-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-option {
    position: relative;
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
}

.image-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-option.selected {
    border-color: var(--success);
    border-width: 3px;
}

.image-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-option-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.image-option:hover .image-option-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.image-option.selected .image-option-overlay {
    background: rgba(52, 199, 89, 0.3);
}

.image-option-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.image-option.selected .image-option-check {
    opacity: 1;
    transform: scale(1);
}

.image-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

.image-loading .spinner {
    margin-right: 12px;
}

/* Article Dates */
.article-dates {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
    margin-bottom: 24px;
    justify-content: center;
}

.date-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
}

.date-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.date-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.date-value-input {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.date-value-input:focus {
    outline: none;
    color: var(--primary);
}

.date-value-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    margin-left: 4px;
}

.date-value-input:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.date-separator {
    width: 1px;
    height: 12px;
    background: var(--border);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

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

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success);
}

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

/* Blog Tabs */
.blog-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 32px;
    margin-top: 24px;
    width: fit-content;
}

.blog-tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.blog-tab.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

/* Blog Dashboard Styles */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: transparent;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stat-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 10px;
    order: 0;
}

.stat-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    order: 2;
}

.stat-content p {
    font-size: 14px;
    color: var(--text-secondary);
    order: 1;
    margin: 0;
}

.dashboard-section {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
}

.dashboard-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.strategies-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0 0 16px 0;
}

/* Strategies Styles */
.service-strategies-group {
    margin-bottom: 32px;
}

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

.service-strategies-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

.strategy-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

.strategy-item:hover {
    background: var(--bg-tertiary);
}

.strategy-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.strategy-item-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.strategy-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.badge-success {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.empty-message {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Service Selector */
.service-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.service-option {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 90px;
    display: flex;
    flex-direction: column;
}

.service-option:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.service-option.selected {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.service-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.service-option-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.service-option-keyword {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(0, 122, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.service-option-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-option-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: none;
    align-items: center;
    justify-content: center;
}

.service-option-check svg {
    stroke: white;
}

.service-option.selected .service-option-check {
    display: flex;
}

.service-option.selected .service-option-keyword {
    margin-right: 32px;
}

/* Chips Input */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 32px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.chip-remove {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    line-height: 1;
    transition: background 0.2s ease;
}

.chip-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dashboard Styles */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
    padding: 24px 0;
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
}

#dashContent {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#dashContent.show {
    opacity: 1;
    transform: translateY(0);
}

.dash-header h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.003em;
}

.period-tabs {
    display: flex;
    gap: 0;
}

.period-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

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

.period-tab.active {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 120px 40px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    margin-bottom: 32px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.empty-state p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Hero Metrics */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.hero-metric-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

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

.hero-metric-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-metric-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-metric-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-metric-change {
    font-size: 14px;
    font-weight: 600;
}

.hero-metric-change.positive {
    color: var(--success);
}

.hero-metric-change.negative {
    color: var(--danger);
}

.hero-chart {
    width: 100%;
    height: 60px;
}

/* Chart Card */
.chart-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border);
}

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

.chart-header h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}

.chart-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

.chart-period {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 10px;
}

.period-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.period-btn.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Channel Cards */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.channel-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.channel-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-header h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.channel-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.channel-link:hover {
    opacity: 0.7;
}

.channel-stats {
    display: flex;
    gap: 24px;
}

.channel-stat {
    flex: 1;
}

.channel-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}

.channel-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Disconnected Channel State */
.channel-card.disconnected {
    opacity: 0.45;
    filter: grayscale(0.8);
    pointer-events: none;
    position: relative;
}

.channel-card.disconnected::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    opacity: 0.4;
    border-radius: 16px;
    pointer-events: none;
}

.channel-card.disconnected .channel-stat-value,
.channel-card.disconnected .channel-header h3,
.channel-card.disconnected .channel-link {
    color: var(--text-tertiary);
}

/* Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.insight-card {
    background: linear-gradient(135deg, var(--primary) 0%, #0051d5 100%);
    border-radius: 16px;
    padding: 28px;
    color: white;
}

.insight-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.insight-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.insight-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

/* Top Content */
.top-content-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.top-content-item {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-content-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.top-content-info h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.top-content-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

.top-content-metric {
    text-align: right;
}

.top-content-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}

.top-content-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.metric-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.metric-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

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

.metric-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon-facebook {
    background: #1877f2;
    color: white;
}

.metric-icon-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.metric-icon-linkedin {
    background: #0077b5;
    color: white;
}

.metric-icon-tiktok {
    background: #000000;
    color: white;
}

.metric-body {
    display: flex;
    flex-direction: column;
}

.metric-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.dash-section > h2 {
    padding: 10px;
}

.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 10px 10px 10px;
}

.dash-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.dash-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.dash-link:hover {
    opacity: 0.7;
}

.dash-articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-article-item {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dash-article-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.dash-article-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dash-article-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

.dash-article-status {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.dash-article-status.published {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.dash-article-status.draft {
    background: rgba(255, 149, 0, 0.1);
    color: var(--warning);
}

/* Onboarding Styles */
.onboarding-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.onboarding-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-tertiary);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #34d399);
    transition: width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 0%;
}

.onboarding-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.onboarding-logo {
    position: fixed;
    top: 32px;
    left: 40px;
    z-index: 999;
}

.onboarding-logo img {
    height: 28px;
}

.onboarding-step {
    display: none;
    width: 100%;
    max-width: 980px;
    animation: fadeInUp 0.5s ease;
}

.onboarding-step.active {
    display: block;
}

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

.step-content {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    display: flex;
    overflow: hidden;
    min-height: 540px;
}

.step-video {
    flex: 0 0 360px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.video-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-control-btn svg {
    width: 20px;
    height: 20px;
}

.step-text {
    flex: 1;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
}

.step-number {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.onboarding-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
    line-height: 1.05;
    color: var(--text-primary);
}

.onboarding-subtitle {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.42105;
}

.onboarding-text {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.47059;
}

.onboarding-text:last-of-type {
    margin-bottom: 36px;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text-primary);
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.53333;
}

.onboarding-input,
.onboarding-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
}

.onboarding-input:focus,
.onboarding-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.onboarding-textarea {
    resize: vertical;
    min-height: 120px;
}

.step-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.step-actions button {
    min-width: 120px;
}

.success-icon {
    font-size: 72px;
    text-align: center;
    margin-bottom: 24px;
}

.company-name-placeholder {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .step-video {
        flex: 0 0 280px;
    }

    .step-text {
        padding: 48px 40px;
    }
}

@media (max-width: 768px) {
    .onboarding-logo {
        top: 24px;
        left: 24px;
    }

    .onboarding-logo img {
        height: 24px;
    }

    .step-content {
        flex-direction: column;
        min-height: auto;
    }

    .step-video {
        flex: 0 0 240px;
        width: 100%;
    }

    .step-text {
        padding: 40px 32px;
    }

    .onboarding-title {
        font-size: 32px;
    }

    .step-title {
        font-size: 24px;
    }

    .onboarding-subtitle {
        font-size: 19px;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .onboarding-logo {
        top: 20px;
        left: 20px;
    }

    .step-video {
        flex: 0 0 200px;
    }

    .step-text {
        padding: 32px 24px;
    }

    .onboarding-title {
        font-size: 28px;
    }

    .step-title {
        font-size: 22px;
    }
}
/* ============================================
   COMPANY PROFILE VIEW - Apple-style Experience
   ============================================ */

.company-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
}

/* Hero Section */
.company-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
}

.company-hero-content {
    flex: 1;
}

.company-name {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.company-industry {
    font-size: 19px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.company-ai-message {
    font-size: 21px;
    color: var(--text-primary);
    line-height: 1.47;
    font-weight: 500;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-edit-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-profile:hover {
    border-color: var(--primary);
    background: rgba(0, 122, 255, 0.04);
}

/* Strategy Guide Section */
.strategy-guide {
    margin-bottom: 36px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.03), rgba(0, 122, 255, 0.01));
    border-radius: 24px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.strategy-guide-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.strategy-guide-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.strategy-guide-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.strategy-guide-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.content-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.content-pillar {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.content-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pillar-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.pillar-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.pillar-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillar-topics li {
    font-size: 13px;
    color: var(--text-primary);
    padding: 8px 0;
    border-top: 1px solid var(--bg-secondary);
    line-height: 1.4;
}

.pillar-topics li:first-child {
    border-top: none;
    padding-top: 0;
}

.strategy-tip {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(52, 199, 89, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(52, 199, 89, 0.2);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.strategy-tip svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* How It Works Section */
.how-it-works {
    margin-bottom: 56px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.works-card {
    background: var(--bg-primary);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.works-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.works-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(0, 122, 255, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.works-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.works-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-card-highlight {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 122, 255, 0.02));
    border-color: rgba(0, 122, 255, 0.2);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Company Information Section - Apple Style */
.company-info-section {
    margin-top: 28px;
}

.company-info-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.info-card {
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 20px;
    border: none;
}

.info-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.info-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
}

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

.info-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.info-item p {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-text {
    white-space: pre-wrap;
}

.info-item .info-link {
    color: var(--primary);
    text-decoration: none;
}

.info-item p a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.info-item p a:hover {
    opacity: 0.7;
}

.info-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.info-links a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .info-card {
        padding: 24px;
    }

    .info-card-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Services Section - Apple Style */
.services-section {
    margin-top: 48px;
    margin-bottom: 48px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.services-header .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.services-header .section-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.btn-add-service {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-service:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-add-service svg {
    flex-shrink: 0;
}

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

.empty-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 32px;
    background: var(--bg-primary);
    border: 2px dashed var(--border);
    border-radius: 18px;
}

.empty-services-icon {
    margin-bottom: 20px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-services h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-services p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-primary);
    border: none;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
}

.service-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.service-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.service-card-keyword {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(0, 122, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    align-self: flex-start;
}

.service-card-actions {
    display: flex;
    gap: 4px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.12);
}

.btn-icon-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.service-card-title-section {
    flex: 1;
    margin-right: 12px;
}

.service-card-title-section h3 {
    margin: 0 0 4px 0;
}

.service-card-audience {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.service-card-description {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card-section {
    margin-bottom: 14px;
}

.service-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.service-card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.service-card-features {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.service-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.service-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.service-card-tag {
    font-size: 12px;
    color: var(--primary);
    background: rgba(0, 122, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.service-card-tag-more {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.service-card-tags-empty {
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: italic;
}

.service-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-card-badge {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 980px;
}

/* Service Modal - Wizard */
.modal-wizard {
    max-width: 80%;
    max-height: 90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
    width: 80%;
}

.modal-wizard .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 48px;
}

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.wizard-step.active {
    opacity: 1;
}

.wizard-step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.wizard-step.active .wizard-step-number {
    background: var(--primary);
    color: white;
}

.wizard-step span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Service Tabs (Edit mode) */
.service-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    gap: 4px;
}

.service-tab {
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -1px;
}

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

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

.wizard-content {
    display: none;
}

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

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--danger);
    border-radius: 10px;
    color: var(--danger);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-1px);
}

.btn-regenerate-files {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-regenerate-files:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.btn-regenerate-files svg {
    flex-shrink: 0;
}

.wizard-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.wizard-section-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.wizard-recommended-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.wizard-recommended-badge svg {
    width: 14px;
    height: 14px;
}

.form-details {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.form-details summary {
    padding: 14px 16px;
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.form-details summary:hover {
    background: var(--bg-tertiary);
}

.form-details summary::-webkit-details-marker {
    display: none;
}

.form-details[open] summary {
    border-bottom: 1px solid var(--border);
}

.form-details .form-group {
    margin: 16px;
}

.form-details .form-group:last-child {
    margin-bottom: 16px;
}

.btn-tertiary {
    padding: 10px 18px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tertiary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

    .btn-add-service {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .wizard-progress {
        gap: 16px;
        padding: 16px;
    }

    .wizard-step span {
        display: none;
    }
}

/* Company Profile - Insights Section - Apple-inspired with subtle color accents */
.company-insights-section {
    margin-bottom: 48px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.company-insight-card {
    padding: 24px;
    border-radius: 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.company-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color, var(--primary)), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.company-insight-card:hover::before {
    opacity: 1;
}

.company-insight-highlight {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.02), rgba(52, 199, 89, 0.00));
}

.company-insight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.company-insight-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-insight-icon-green {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.12), rgba(52, 199, 89, 0.06));
    color: #28a745;
}

.company-insight-icon-blue {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(0, 122, 255, 0.06));
    color: var(--primary);
}

.company-insight-icon-orange {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.12), rgba(255, 149, 0, 0.06));
    color: var(--warning);
}

.company-insight-icon-red {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.12), rgba(255, 59, 48, 0.06));
    color: var(--danger);
}

.company-insight-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.company-insight-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Company Profile - Strategy Section */
.company-strategy-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.company-strategy-card {
    padding: 32px;
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-strategy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.company-strategy-header {
    margin-bottom: 16px;
}

.company-strategy-title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.company-strategy-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

.company-strategy-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
}

/* Form sections in modal */
.form-section {
    margin-bottom: 40px;
}

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

.form-section-title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-section-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Compact form style (Apple-like) */
.form-group-compact {
    margin-bottom: 12px;
}

.form-group-compact label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group-compact input,
.form-group-compact textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group-compact input:focus,
.form-group-compact textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group-icon {
    position: relative;
}

.form-group-icon input {
    padding-left: 42px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.form-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.form-group-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .company-name {
        font-size: 48px;
    }

    .content-pillars,
    .works-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .company-insights-section,
    .company-strategy-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .company-profile {
        padding: 24px 16px;
    }

    .company-hero {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 48px;
    }

    .company-name {
        font-size: 36px;
    }

    .company-industry {
        font-size: 17px;
    }

    .strategy-guide {
        padding: 24px 20px;
    }

    .strategy-guide-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

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

    .company-insights-section {
        gap: 12px;
    }

    .company-insight-card,
    .company-strategy-card {
        padding: 20px;
    }

    .btn-edit-profile {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   SOCIAL MODULE STYLES
   ============================================================================ */

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.channel-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.channel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.channel-card.connected {
    border-color: rgba(52, 199, 89, 0.3);
    background: rgba(52, 199, 89, 0.02);
}

.channel-card.disconnected {
    opacity: 0.6;
}

.channel-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.channel-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.channel-followers {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.channel-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
}

.channel-card.connected .channel-status {
    background: rgba(52, 199, 89, 0.1);
    color: #28a745;
}

.channel-card.disconnected .channel-status {
    background: rgba(142, 142, 147, 0.1);
    color: var(--text-tertiary);
}

.performance-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.performance-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.performance-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.performance-item h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.performance-stats {
    display: flex;
    gap: 24px;
    font-size: 15px;
    color: var(--text-secondary);
}

.performance-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Channels Configuration Modal */
.channels-config-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.channel-config-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.channel-config-item:hover:not(.channel-disabled) {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.channel-config-item.channel-disabled {
    opacity: 0.5;
}

.channel-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.channel-config-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-config-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.channel-config-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.channel-config-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.channel-config-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.status-connected {
    background: rgba(52, 199, 89, 0.1);
    color: #28a745;
}

.status-badge.status-disconnected {
    background: rgba(142, 142, 147, 0.1);
    color: var(--text-tertiary);
}

.status-badge.status-disabled {
    background: rgba(142, 142, 147, 0.08);
    color: var(--text-tertiary);
}

.channel-config-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-connected-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    gap: 8px;
    font-size: 15px;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
}

.btn-small {
    padding: 6px 16px;
    font-size: 15px;
}

/* Instructions Box */
.instructions-box {
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.instructions-box h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.instructions-box ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.instructions-box li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.instructions-box a {
    color: var(--primary);
    text-decoration: none;
}

.instructions-box a:hover {
    text-decoration: underline;
}

.instructions-box strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* LinkedIn Connection Details */
.connection-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.detail-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 15px;
    color: var(--text-primary);
}

.channel-user-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 8px 0;
    line-height: 1.4;
}

.channel-user-info strong {
    color: var(--text-primary);
    font-size: 15px;
}

.channel-user-info small {
    font-size: 13px;
    opacity: 0.8;
}

.channel-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 4px 0;
}

.channel-card.expired {
    border-color: rgba(255, 149, 0, 0.3);
    background: rgba(255, 149, 0, 0.05);
}

.status-warning {
    background: rgba(255, 149, 0, 0.1) !important;
    color: var(--warning) !important;
}

/* Cache busting comment - 1759430670 */


/* ============ EMAIL VIEW STYLES ============ */

/* Campaign Info in Table */
.campaign-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campaign-name {
    font-weight: 500;
    color: var(--text-primary);
}

.campaign-subject {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Campaigns List (Dashboard) */
.campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.campaign-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.campaign-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.campaign-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.campaign-item-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.campaign-item-subject {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.campaign-item-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.campaign-item-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Badge variants */
.badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

/* Responsive adjustments for email view */
@media (max-width: 768px) {
    .campaign-item-stats {
        flex-direction: column;
        gap: 8px;
    }

    .table-actions {
        flex-wrap: wrap;
    }
}

/* Email view styles */
.campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.campaign-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.contacts-grid .empty-state {
    grid-column: 1 / -1;
}

/* Email Builder */
.modal-email-builder {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
    margin: 0 !important;
}

.email-builder {
    display: grid;
    grid-template-columns: 250px 1fr 700px;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

/* Blocks Panel */
.builder-blocks {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 20px;
    overflow-y: auto;
}

.builder-blocks h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.blocks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.block-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: grab;
    transition: all 0.2s;
}

.block-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.block-item:active {
    cursor: grabbing;
}

.block-item svg {
    flex-shrink: 0;
}

.block-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Canvas */
.builder-canvas {
    display: flex;
    flex-direction: column;
    background: #f5f5f7;
    overflow-y: auto;
}

.canvas-toolbar {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.canvas-toolbar input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.email-canvas {
    flex: 1;
    padding: 0;
    min-height: 600px;
    overflow-y: auto;
}

.email-canvas.dragging-active {
    cursor: grabbing !important;
}

.email-canvas.dragging-active * {
    cursor: grabbing !important;
}

.canvas-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background: transparent;
}

.canvas-placeholder p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Email Blocks in Canvas */
.email-block {
    position: relative;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 0px;
    cursor: move;
    transition: all 0.2s ease;
}

.email-block:hover {
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(0, 122, 255, 0.02);
}

/* Full-width blocks (like hero) */
.email-block-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.email-block.dragging {
    opacity: 0.4;
    transform: scale(0.98);
    cursor: grabbing;
}

.email-block.drag-over {
    border-top: 3px solid #007aff;
    border-bottom: 3px solid #007aff;
    background: rgba(0, 122, 255, 0.05);
}

/* Canvas card cuando se arrastra bloque nuevo */
.email-canvas-card.canvas-drag-over {
    outline: 2px dashed #007aff;
    outline-offset: -2px;
    background: rgba(0, 122, 255, 0.02);
}

/* Indicadores de inserción para bloques nuevos */
.email-block.insert-before {
    border-top: 3px solid #007aff !important;
    margin-top: 4px;
}

.email-block.insert-after {
    border-bottom: 3px solid #007aff !important;
    margin-bottom: 4px;
}

.block-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.email-block:hover .block-controls {
    opacity: 1;
}

.block-control-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.block-control-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.block-control-btn svg {
    color: #1d1d1f;
}

/* Preview Panel */
.builder-preview {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.builder-preview h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.preview-container {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================================================
   TEXT EDITOR STYLES
   ============================================================================ */

.editor-btn {
    transition: all 0.2s ease;
}

.editor-btn:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--primary) !important;
}

.editor-btn:active {
    transform: scale(0.95);
}

#blockTextContent[contenteditable] {
    outline: none;
}

#blockTextContent[contenteditable]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

#blockTextContent h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 16px 0 8px 0;
}

#blockTextContent h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 14px 0 8px 0;
}

#blockTextContent p {
    margin: 8px 0;
}

#blockTextContent ul {
    margin: 8px 0;
    padding-left: 24px;
}

#blockTextContent li {
    margin: 4px 0;
}

#blockTextContent a {
    color: var(--primary);
    text-decoration: underline;
}

#blockTextContent strong {
    font-weight: bold;
}

#blockTextContent em {
    font-style: italic;
}

#blockTextContent u {
    text-decoration: underline;
}
