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

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

html {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --twitter-blue: #1DA1F2;
    --twitter-dark-blue: #1991DA;
    --twitter-light-blue: #E8F5FE;
    --text-primary: #14171A;
    --text-secondary: #657786;
    --text-muted: #AAB8C2;
    --background-primary: #FFFFFF;
    --background-secondary: #F7F9FA;
    --background-hover: #F7F9FA;
    --border-color: #E1E8ED;
    --border-light: #F7F9FA;
    --success-green: #17BF63;
    --error-red: #E0245E;
    --warning-orange: #FFAD1F;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --primary: #1DA1F2;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-lg: 17px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --bg-secondary: #F7F9FA;
    --border-primary: #E1E8ED;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--background-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
}

p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
}

small {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.main-container {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    background-color: var(--background-primary);
    min-height: 100vh;
    padding: 60px var(--space-md) 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav-links a {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #333333;
    background-color: var(--twitter-light-blue);
    transform: scale(1.05);
}


.content-wrapper {
    padding: 0;
}

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

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

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

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

.text-blue {
    color: var(--twitter-blue);
}

.text-success {
    color: var(--success-green);
}

.text-error {
    color: var(--error-red);
}

.bg-primary {
    background-color: var(--background-primary);
}

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

.bg-hover {
    background-color: var(--background-hover);
}

.border {
    border: 1px solid var(--border-color);
}

.border-light {
    border: 1px solid var(--border-light);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow-light {
    box-shadow: var(--shadow-light);
}

.shadow-medium {
    box-shadow: var(--shadow-medium);
}

.shadow-heavy {
    box-shadow: var(--shadow-heavy);
}

.p-xs {
    padding: var(--space-xs);
}

.p-sm {
    padding: var(--space-sm);
}

.p-md {
    padding: var(--space-md);
}

.p-lg {
    padding: var(--space-lg);
}

.p-xl {
    padding: var(--space-xl);
}

.px-xs {
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
}

.px-sm {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.px-md {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.px-lg {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.py-xs {
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
}

.py-sm {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.py-md {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.py-lg {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.m-xs {
    margin: var(--space-xs);
}

.m-sm {
    margin: var(--space-sm);
}

.m-md {
    margin: var(--space-md);
}

.m-lg {
    margin: var(--space-lg);
}

.mb-xs {
    margin-bottom: var(--space-xs);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mt-xs {
    margin-top: var(--space-xs);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1;
}

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

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.hidden {
    display: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.transition-colors {
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.transition-transform {
    transition: transform 0.2s ease-in-out;
}

.hover-bg:hover {
    background-color: var(--background-hover);
}

.hover-blue:hover {
    color: var(--twitter-blue);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-lift:hover {
    transform: translateY(-1px);
}

*:focus {
    outline: 2px solid var(--twitter-blue);
    outline-offset: 2px;
}

::selection {
    background-color: var(--twitter-light-blue);
    color: var(--twitter-blue);
}

@media (min-width: 576px) {
    .main-container {
        max-width: 100%;
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 768px) {
    .main-container {
        max-width: 100%;
        padding: 0 var(--space-xl);
    }

    .container {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 992px) {
    .main-container {
        max-width: 1200px;
        padding: 0 var(--space-xxl);
    }

    .container {
        padding: 0 var(--space-xl);
    }

    .post,
    .post-full,
    .auth-form {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    #posts-container {
        width: 90%;
        margin: 0 auto;
        max-width: 500px;
    }
}

@media (min-width: 1200px) {
    .main-container {
        max-width: 1400px;
        padding: 0 var(--space-xxl);
    }

    .container {
        padding: 0 var(--space-xxl);
    }

    .post,
    .post-full,
    .auth-form {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    #posts-container {
        width: 60%;
        margin: 0 auto;
        max-width: 900px;
    }
}

@media (max-width: 575px) {
    body {
        padding: 0;
    }

    .main-container {
        max-width: 100%;
        padding: 0 var(--space-sm);
        border-radius: 0;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .px-md {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .py-md {
        padding-top: var(--space-sm);
        padding-bottom: var(--space-sm);
    }

    .p-md {
        padding: var(--space-sm);
    }
}

@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
        --background-hover: #E0E0E0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

@keyframes dots {
    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60% {
        content: '...';
    }

    80%,
    100% {
        content: '';
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
    animation: slideInUp 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.navbar {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 1001;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 0;
    padding: 0;
}

.navbar .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
}

.navbar h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333333;
}

.navbar h1 a {
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-colors);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar h1 a:hover {
    color: var(--twitter-blue);
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: var(--transition-transform);
    flex-shrink: 0;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand-text {
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition-colors);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--font-size-sm);
}

.nav-links span {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.language-switcher {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    text-decoration: none;
    transition: var(--transition-colors);
    cursor: pointer;
}

.lang-link:hover {
    background-color: var(--background-hover);
    transform: scale(1.1);
}

.lang-link.active {
    background-color: var(--twitter-light-blue);
    border: 2px solid var(--twitter-blue);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition-colors);
}

.mobile-menu-toggle:hover {
    background-color: var(--background-hover);
}

.mobile-menu-toggle.active {
    background-color: var(--error-red);
    color: white;
    border: none;
}

.mobile-menu-toggle.active:hover {
    background-color: #c41e3a;
}

.mobile-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    z-index: 999;
}

.mobile-nav-menu.show {
    display: block;
    animation: slideInDown 0.2s ease-out;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
}

.mobile-nav-links a,
.mobile-nav-links span {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-colors);
    text-align: center;
}

.mobile-nav-links a:hover {
    background-color: var(--background-hover);
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 6px 12px;
        position: relative;
        height: 44px;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        font-size: var(--font-size-sm);
        flex-wrap: wrap;
    }

    .nav-links a,
    .nav-links span {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-xs);
        white-space: nowrap;
    }

    .language-switcher {
        display: flex !important;
        gap: var(--space-xs);
        order: -1;
    }

    .language-switcher .lang-link {
        width: 28px;
        height: 28px;
        font-size: 16px;
        border: 2px solid transparent;
    }

    .language-switcher .lang-link.active {
        border-color: var(--twitter-blue);
    }

    .mobile-menu-toggle {
        display: none;
    }

    .navbar h1 {
        font-size: 16px;
    }

    .navbar-brand-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 4px 8px;
        height: 40px;
    }

    .navbar h1 {
        font-size: 14px;
    }

    .navbar-brand-text {
        font-size: 14px;
    }

    .navbar-brand-text {
        display: none;
    }

    .nav-links {
        gap: var(--space-xs);
    }

    .nav-links a,
    .nav-links span {
        padding: 2px 6px;
        font-size: 11px;
    }

    .nav-links span:not(:last-child) {
        display: none;
    }
}

.profile-header {
    background-color: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-xl) var(--space-lg);
}

.user-info h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.user-email {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xs);
}

.user-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.join-date {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.profile-stats {
    background-color: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
}

.stats-grid {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    display: block;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.follow-actions {
    text-align: center;
}

.btn-follow,
.btn-unfollow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: var(--transition-colors);
    min-width: 120px;
}

.btn-follow {
    background-color: var(--twitter-blue);
    color: white;
    border: 1px solid var(--twitter-blue);
}

.btn-follow:hover {
    background-color: var(--twitter-dark-blue);
    border-color: var(--twitter-dark-blue);
}

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

.btn-unfollow:hover {
    background-color: var(--error-red);
    color: white;
}

.user-posts {
    background-color: var(--background-primary);
    margin-top: 40px;
}

.user-posts h3 {
    padding: var(--space-lg);
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.posts-list {
    background-color: var(--background-primary);
}

.auth-required,
.error-message {
    text-align: center;
    padding: var(--space-xxl) var(--space-lg);
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: var(--space-lg);
}

.auth-required h2,
.error-message h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.auth-required p,
.error-message p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.success-message {
    background-color: rgba(23, 191, 99, 0.1);
    border: 1px solid var(--success-green);
    color: var(--success-green);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    text-align: center;
    font-weight: var(--font-weight-medium);
    animation: slideInDown 0.3s ease-out;
}

.error-message {
    background-color: rgba(224, 36, 94, 0.1);
    border: 1px solid var(--error-red);
    color: var(--error-red);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    text-align: center;
    font-weight: var(--font-weight-medium);
    animation: slideInDown 0.3s ease-out;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

.modal.show {
    opacity: 1;
}

.modal:not(.show) {
    opacity: 0;
}

@media (max-width: 768px) {
    .modal {
        padding: var(--space-sm);
        align-items: flex-start;
        padding-top: var(--space-lg);
    }

    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: var(--space-md);
    }

    .modal-header h3 {
        font-size: var(--font-size-base);
    }

    .modal-body {
        padding: var(--space-md);
        max-height: calc(95vh - 120px);
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: var(--space-sm);
        margin-top: var(--space-md);
        padding-top: var(--space-md);
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: var(--space-md);
    }

    #editorjs {
        min-height: 150px;
        padding: var(--space-sm);
        font-size: var(--font-size-sm);
    }

    .form-group label {
        font-size: var(--font-size-sm);
    }

    .character-counter {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .modal {
        padding: var(--space-xs);
        padding-top: var(--space-md);
    }

    .modal-content {
        max-height: 98vh;
        border-radius: var(--radius-sm);
    }

    .modal-header {
        padding: var(--space-sm) var(--space-md);
    }

    .modal-body {
        padding: var(--space-sm) var(--space-md);
        max-height: calc(98vh - 100px);
    }

    .btn-new-post .post-icon {
        font-size: var(--font-size-base);
    }

    #editorjs {
        min-height: 120px;
        padding: var(--space-xs);
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: var(--space-lg) var(--space-md);
    }

    .profile-stats {
        padding: var(--space-md);
    }

    .stats-grid {
        gap: var(--space-lg);
        justify-content: space-around;
    }

    .stat-item {
        flex: 1;
    }

    .user-posts h3 {
        padding: var(--space-md);
    }
}

.post {
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    box-sizing: border-box;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 161, 242, 0.1), transparent);
    transition: left 0.5s ease-in-out;
}

.post:hover {
    background-color: var(--background-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--twitter-blue);
}

.post:hover::before {
    left: 100%;
}

.post:active {
    transform: translateY(0);
}

.post:last-child {
    margin-bottom: 0;
}

.post-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.post-author {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: var(--transition-colors);
}

.post-author:hover {
    color: var(--twitter-blue);
}

.post-date {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
}

.post-content {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-sm);
    word-wrap: break-word;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.post-image {
    margin-top: var(--space-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

.post-full {
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin: 20px auto;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.post-full .post-header {
    margin-bottom: 24px;
}

.post-full .post-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.post-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.post-meta .post-author a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.post-meta .post-author a:hover {
    color: var(--twitter-blue);
}

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

.post-full .post-content {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 16px 0;
    padding: 0;
}

.post-full .post-image {
    margin: 24px 0;
    text-align: center;
}

.post-full .post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-edit,
.btn-delete {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.btn-edit:hover {
    background-color: var(--background-hover);
}

.btn-delete {
    background-color: var(--error-red);
    color: white;
    border: 1px solid var(--error-red);
}

.btn-delete:hover {
    background-color: #222222;
}

.post-navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-back,
.btn-profile {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-back {
    background-color: transparent;
    color: var(--twitter-blue);
    border: 2px solid var(--twitter-blue);
}

.btn-back:hover {
    background-color: var(--twitter-blue);
    color: white;
    transform: translateY(-1px);
}

.btn-profile {
    background-color: var(--background-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-profile:hover {
    background-color: var(--background-hover);
}

.no-posts {
    text-align: center;
    padding: var(--space-xxl) var(--space-lg);
    color: var(--text-secondary);
}

.no-posts h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.no-posts p {
    margin-bottom: var(--space-md);
}

.suggestions {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background-color: var(--background-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.suggestions h4 {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.user-suggestion {
    padding: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.user-suggestion a {
    color: var(--twitter-blue);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.user-suggestion a:hover {
    text-decoration: underline;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--background-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
    position: relative;
}

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

.modal-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition-colors);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    padding: var(--space-lg);
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.btn-new-post:hover {
    transform: translateY(-2px);
    background-color: var(--twitter-blue);
    box-shadow: var(--shadow-medium);
}

.btn-new-post:active {
    transform: translateY(0);
}

.btn-new-post .post-icon {
    font-size: var(--font-size-lg);
}

.create-post {
    background-color: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
}

.create-post h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.form-group small {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    line-height: var(--line-height-normal);
}

.input-error {
    color: var(--error-red);
    font-size: var(--font-size-xs);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.input-error::before {
    content: '⚠️';
    font-size: var(--font-size-sm);
}

.btn-primary {
    background-color: var(--twitter-blue);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.btn-primary:hover {
    background-color: var(--twitter-dark-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
.form-input {
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    background-color: var(--background-primary);
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
    resize: vertical;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
textarea:hover,
.form-input:hover {
    border-color: var(--text-secondary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
.form-input:focus {
    outline: none;
    border-color: var(--twitter-blue);
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.2);
    transform: translateY(-1px);
}

input.error,
textarea.error {
    border-color: var(--error-red);
    box-shadow: 0 0 0 2px rgba(224, 36, 94, 0.2);
    animation: shake 0.5s ease-in-out;
}

input.success,
textarea.success {
    border-color: var(--success-green);
    box-shadow: 0 0 0 2px rgba(23, 191, 99, 0.2);
}

#editorjs {
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    min-height: 200px;
    transition: all 0.2s ease-in-out;
}

#editorjs:hover {
    border-color: var(--text-secondary);
}

#editorjs:focus-within {
    border-color: var(--twitter-blue);
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.2);
}

.ce-block__content {
    max-width: none !important;
}

.ce-toolbar__content {
    max-width: none !important;
}

.ce-paragraph {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
}

.ce-header {
    color: var(--text-primary);
}

.character-counter {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: right;
    margin-top: var(--space-xs);
    padding: var(--space-xs) 0;
    transition: color 0.2s ease-in-out;
}

.character-counter.warning {
    color: var(--warning-orange);
}

.character-counter.error {
    color: var(--error-red);
}

textarea {
    min-height: 120px;
    line-height: var(--line-height-normal);
}

textarea::placeholder,
input::placeholder {
    color: var(--text-muted);
}

.auth-form {
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.auth-link {
    text-align: center;
    margin-top: var(--space-lg);
}

.auth-link a {
    color: var(--twitter-blue);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

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

button,
.btn,
.btn-primary,
.btn-secondary,
.btn-edit,
.btn-delete,
.btn-back,
.btn-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-colors);
    min-height: 36px;
    font-family: inherit;
    white-space: nowrap;
}

button[type="submit"],
.btn-primary {
    background-color: var(--twitter-blue);
    color: white;
    border-color: var(--twitter-blue);
}

button[type="submit"]:hover,
.btn-primary:hover {
    background-color: var(--twitter-dark-blue);
    border-color: var(--twitter-dark-blue);
}

button[type="submit"]:disabled,
.btn-primary:disabled {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

button:not(:disabled),
.btn:not(.disabled) {
    transform: translateY(0);
    transition: all 0.2s ease-in-out;
}

button:not(:disabled):hover,
.btn:not(.disabled):hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

button:not(:disabled):active,
.btn:not(.disabled):active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary,
.btn-back,
.btn-profile {
    background-color: transparent;
    color: var(--twitter-blue);
    border-color: var(--twitter-blue);
}

.btn-secondary:hover,
.btn-back:hover,
.btn-profile:hover {
    background-color: var(--twitter-light-blue);
}

.btn-edit {
    background-color: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.btn-edit:hover {
    background-color: #0d9f4f;
    border-color: #0d9f4f;
}

.btn-delete {
    background-color: var(--error-red);
    color: white;
    border-color: var(--error-red);
}

.btn-delete:hover {
    background-color: #c91e42;
    border-color: #c91e42;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
    min-height: 28px;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
    min-height: 44px;
}

.btn-group {
    display: flex;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    button,
    .btn,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-base);
    }

    .btn-group {
        flex-direction: column;
        gap: var(--space-md);
    }

    .btn-group button,
    .btn-group .btn {
        width: 100%;
    }

    .post:hover {
        transform: none;
        box-shadow: none;
    }

    .post:active {
        background-color: var(--background-hover);
        transform: scale(0.98);
    }

    .post {
        padding: var(--space-lg) var(--space-md);
    }

    .post-actions {
        gap: var(--space-md);
        flex-wrap: wrap;
    }

    .post-actions button,
    .post-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .post {
        padding: var(--space-md) var(--space-sm);
    }

    .create-post {
        padding: var(--space-md) var(--space-sm);
    }

    .auth-form {
        margin: var(--space-lg) var(--space-sm);
        padding: var(--space-lg) var(--space-md);
    }

    .btn-group {
        gap: var(--space-sm);
    }

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

    .post-actions button,
    .post-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

.success-message,
.error-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-weight: var(--font-weight-medium);
    animation: slideInDown 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#loading {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--twitter-blue);
    animation: spin 1s ease-in-out infinite;
    margin-right: var(--space-sm);
}

.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.empty-state {
    text-align: center;
    padding: var(--space-xxl) var(--space-lg);
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-xl);
}

.empty-state p {
    margin-bottom: var(--space-md);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-state {
    text-align: center;
    padding: var(--space-xxl) var(--space-lg);
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: var(--space-lg);
}

.error-state-icon {
    font-size: 48px;
    color: var(--error-red);
    margin-bottom: var(--space-lg);
}

.retry-button {
    margin-top: var(--space-lg);
}

.page-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-primary);
}

.page-header h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    margin: 0;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--space-md);
    background-color: var(--background-primary);
    box-sizing: border-box;
}

.login-page {
    background: linear-gradient(135deg, #1DA1F2 0%, #1991DA 100%);
    min-height: 100vh;
}

.login-page .container {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding-top: 80px;
}

.feed,
.personal-feed {
    background-color: transparent;
    padding: 20px;
}

#posts-container {
    max-width: 100%;
    margin: 0 auto;
}

.post-detail {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.login-url-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.url-box {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
}

.login-link {
    color: #007bff;
    text-decoration: none;
}

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

.url-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

.login-page .auth-header h1 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

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

.login-page .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
    font-size: 14px;
}

.login-page .form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.login-page .form-group input:focus {
    outline: none;
    border-color: #1DA1F2;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
    transform: translateY(-2px);
}

.login-page button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: #1DA1F2;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-page button[type="submit"]:hover {
    background: #1991DA;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.3);
}

.login-page .success-message {
    background: #17BF63;
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.5s ease-out;
}

.login-page .error-message {
    background: #E0245E;
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    animation: shake 0.5s ease-out;
}

.login-page .auth-link {
    text-align: center;
    margin-top: 24px;
}

.login-page .auth-link a {
    color: #1DA1F2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-page .auth-link a:hover {
    color: #1991DA;
    text-decoration: underline;
}

.login-page .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.login-page .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    height: 48px;
}

.login-page .navbar h1 {
    margin: 0;
    font-size: 18px;
}

.login-page .navbar h1 a {
    color: #333333;
    font-weight: 700;
    text-decoration: none;
}

.login-page .nav-links {
    display: flex !important;
    align-items: center;
    gap: 16px;
}

.login-page .navbar .nav-links a {
    color: #666666;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.login-page .navbar .nav-links a:hover {
    color: #333333;
}

.login-page .language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-page .lang-link {
    font-size: 16px;
    text-decoration: none;
}

.login-page .mobile-menu-toggle {
    display: none !important;
}

#quill-editor {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--background-primary);
    transition: all 0.2s ease-in-out;
}

#quill-editor:hover {
    border-color: var(--text-secondary);
}

#quill-editor.ql-focus {
    border-color: var(--twitter-blue);
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.2);
}

.ql-toolbar {
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    background-color: var(--background-secondary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: var(--space-sm) var(--space-md);
}

.ql-toolbar .ql-formats {
    margin-right: var(--space-sm);
}

.ql-toolbar button {
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    transition: var(--transition-colors);
}

.ql-toolbar button:hover {
    color: var(--twitter-blue);
    background-color: var(--twitter-light-blue);
}

.ql-toolbar button.ql-active {
    color: var(--twitter-blue);
    background-color: var(--twitter-light-blue);
}

.ql-toolbar .ql-picker {
    color: var(--text-secondary);
}

.ql-toolbar .ql-picker:hover {
    color: var(--twitter-blue);
}

.ql-toolbar .ql-picker.ql-expanded {
    color: var(--twitter-blue);
}

.ql-editor {
    border: none !important;
    padding: var(--space-md) !important;
    font-size: var(--font-size-base) !important;
    line-height: var(--line-height-normal) !important;
    color: var(--text-primary) !important;
    font-family: inherit !important;
    min-height: 120px;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted) !important;
    font-style: normal !important;
    font-size: var(--font-size-base) !important;
}

.ql-editor p {
    margin-bottom: var(--space-sm);
}

.ql-editor strong {
    font-weight: var(--font-weight-bold);
}

.ql-editor em {
    font-style: italic;
}

.ql-editor u {
    text-decoration: underline;
}

.ql-editor a {
    color: var(--twitter-blue);
    text-decoration: none;
}

.ql-editor a:hover {
    text-decoration: underline;
}

.ql-editor ol,
.ql-editor ul {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
}

.ql-editor li {
    margin-bottom: var(--space-xs);
}

.ql-picker-options {
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
}

.ql-picker-item {
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-sm);
}

.ql-picker-item:hover {
    background-color: var(--background-hover);
    color: var(--twitter-blue);
}

.form-group .character-counter {
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: right;
    transition: color 0.2s ease-in-out;
}

.form-group .character-counter.warning {
    color: var(--warning-orange);
}

.form-group .character-counter.error {
    color: var(--error-red);
    font-weight: var(--font-weight-semibold);
}

@media (max-width: 768px) {
    .ql-toolbar {
        padding: var(--space-xs) var(--space-sm);
    }

    .ql-toolbar .ql-formats {
        margin-right: var(--space-xs);
    }

    .ql-toolbar button {
        padding: var(--space-xs);
        font-size: var(--font-size-sm);
    }

    .ql-editor {
        padding: var(--space-sm) !important;
        min-height: 100px;
    }
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--background-secondary);
    margin: var(--space-md) 0;
}

.video-container iframe,
.video-container video,
.video-container embed,
.video-container object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}

.video-container.aspect-4-3 {
    padding-bottom: 75%;
}

.video-container.aspect-1-1 {
    padding-bottom: 100%;
}

.video-container.aspect-21-9 {
    padding-bottom: 42.86%;
}

.post-content iframe[src*="youtube"],
.post-content iframe[src*="youtu.be"],
.post-content iframe[src*="vimeo"],
.post-content iframe[src*="dailymotion"],
.post-content iframe[src*="twitch"] {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

@supports not (aspect-ratio: 16 / 9) {
    .post-content iframe[src*="youtube"],
    .post-content iframe[src*="youtu.be"],
    .post-content iframe[src*="vimeo"],
    .post-content iframe[src*="dailymotion"],
    .post-content iframe[src*="twitch"] {
        height: calc(100vw * 0.5625);
        max-height: 400px;
        min-height: 200px;
    }
}

.post-content iframe {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}

.embed-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: var(--space-md) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--background-secondary);
    box-shadow: var(--shadow-sm);
}

.embed-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}

.image-block {
    max-width: 100%;
    overflow: hidden;
    margin: var(--space-md) 0;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}

.image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.embed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--background-secondary);
    color: var(--text-muted);
    border-radius: var(--radius-md);
}

.embed-loading::before {
    content: '📹';
    font-size: 2rem;
    margin-right: var(--space-sm);
}

.post-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.post-content video,
.post-content object,
.post-content embed {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}

.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-xxl);
    padding: var(--space-xxl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--twitter-blue), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-logo img {
    height: 48px;
    width: auto;
    transition: var(--transition-transform);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-colors);
}

.footer-logo-text:hover {
    color: var(--twitter-blue);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    transition: all 0.2s ease-in-out;
    position: relative;
}

.footer-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--twitter-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-nav a:hover {
    color: var(--twitter-blue);
    background-color: var(--twitter-light-blue);
    transform: translateY(-2px);
}

.footer-nav a:hover::before {
    width: 80%;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-xl);
    transition: all 0.3s ease-in-out;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

.social-link:nth-child(1) {
    animation-delay: 0.1s;
}

.social-link:nth-child(2) {
    animation-delay: 0.2s;
}

.social-link:nth-child(3) {
    animation-delay: 0.3s;
}

.social-link:nth-child(4) {
    animation-delay: 0.4s;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-medium);
    border-color: var(--twitter-blue);
}

.social-link.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.social-link.github:hover {
    background: #333;
    color: white;
}

.social-link.linkedin:hover {
    background: #0077B5;
    color: white;
}

.social-link.email:hover {
    background: var(--success-green);
    color: white;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.footer-tagline {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin: 0;
    font-style: italic;
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

.footer-version {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    background: var(--background-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr 1fr;
        text-align: left;
        align-items: start;
    }

    .footer-logo {
        align-items: flex-start;
        text-align: left;
    }

    .footer-nav {
        justify-content: center;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .footer-social {
        justify-content: flex-end;
    }

    .footer-info {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: var(--space-xxl) 0;
    }

    .footer-nav {
        flex-direction: row;
        gap: var(--space-lg);
    }
}

@media (max-width: 767px) {
    .footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .footer-container {
        padding: 0 var(--space-md);
    }

    .footer-nav {
        gap: var(--space-md);
    }

    .footer-nav a {
        font-size: var(--font-size-sm);
        padding: var(--space-xs) var(--space-sm);
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
    }
}

[dir="rtl"] .footer-nav {
    direction: rtl;
}

[dir="rtl"] .footer-social {
    direction: rtl;
}

[dir="rtl"] .footer-info {
    text-align: right;
}

@media (min-width: 768px) {
    [dir="rtl"] .footer-content {
        text-align: right;
    }

    [dir="rtl"] .footer-logo {
        align-items: flex-end;
        text-align: right;
    }

    [dir="rtl"] .footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .video-container {
        margin: var(--space-3) 0;
        padding-bottom: 60%;
    }

    .embed-container {
        margin: var(--space-3) 0;
    }

    .post-content iframe[src*="youtube"],
    .post-content iframe[src*="youtu.be"],
    .post-content iframe[src*="vimeo"] {
        aspect-ratio: 16 / 10;
    }

    @supports not (aspect-ratio: 16 / 10) {
        .post-content iframe[src*="youtube"],
        .post-content iframe[src*="youtu.be"],
        .post-content iframe[src*="vimeo"] {
            height: calc(100vw * 0.625);
            max-height: 300px;
            min-height: 180px;
        }
    }
}

@media (max-width: 480px) {
    .video-container {
        padding-bottom: 65%;
        margin: var(--space-2) 0;
    }

    .post-content iframe[src*="youtube"],
    .post-content iframe[src*="youtu.be"],
    .post-content iframe[src*="vimeo"] {
        aspect-ratio: 4 / 3;
    }

    @supports not (aspect-ratio: 4 / 3) {
        .post-content iframe[src*="youtube"],
        .post-content iframe[src*="youtu.be"],
        .post-content iframe[src*="vimeo"] {
            height: calc(100vw * 0.75);
            max-height: 250px;
            min-height: 150px;
        }
    }
}

@media (min-width: 1200px) {
    .post-content iframe[src*="youtube"],
    .post-content iframe[src*="youtu.be"],
    .post-content iframe[src*="vimeo"] {
        max-height: 500px;
    }

    .video-container {
        max-width: 800px;
        margin: var(--space-6) auto;
    }
}

@supports (container-type: inline-size) {
    .post-content {
        container-type: inline-size;
    }

    @container (max-width: 400px) {
        .video-container {
            padding-bottom: 75%;
        }
    }

    @container (min-width: 400px) and (max-width: 600px) {
        .video-container {
            padding-bottom: 62.5%;
        }
    }

    @container (min-width: 600px) {
        .video-container {
            padding-bottom: 56.25%;
        }
    }
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--background-secondary) 25%, transparent 25%),
        linear-gradient(-45deg, var(--background-secondary) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--background-secondary) 75%),
        linear-gradient(-45deg, transparent 75%, var(--background-secondary) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.video-container iframe {
    z-index: 2;
    position: relative;
}

.video-container,
.video-container iframe {
    transition: all 0.3s ease;
}

.video-container iframe:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media print {
    .video-container {
        display: none;
    }

    .video-container::after {
        content: '🎥 Video content (not available in print)';
        display: block;
        padding: var(--space-md);
        background: var(--background-secondary);
        text-align: center;
        border: 1px dashed var(--border-primary);
    }
}

.raw-html-block {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--background-secondary);
    position: relative;
}

.raw-html-block::before {
    content: 'HTML';
    position: absolute;
    top: -8px;
    left: 12px;
    background-color: var(--background-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.raw-html-block * {
    max-width: 100%;
    word-wrap: break-word;
}

.raw-html-block img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: var(--space-xs) 0;
}

.raw-html-block video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.raw-html-block iframe {
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.raw-html-block table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-sm) 0;
}

.raw-html-block table th,
.raw-html-block table td {
    padding: var(--space-xs);
    border: 1px solid var(--border-color);
    text-align: left;
}

.raw-html-block table th {
    background-color: var(--background-hover);
    font-weight: 600;
}

.raw-html-block pre {
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
}

.raw-html-block code {
    background-color: var(--background-hover);
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .raw-html-block {
        padding: var(--space-sm);
        margin: var(--space-sm) 0;
    }
    
    .raw-html-block table {
        font-size: var(--font-size-sm);
    }
    
    .raw-html-block table th,
    .raw-html-block table td {
        padding: var(--space-xs);
    }
}

.edit-post-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg);
    background-color: var(--background-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
}

.edit-post-form .form-group {
    margin-bottom: var(--space-lg);
}

.edit-post-form .form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.edit-post-form .form-input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: border-color 0.2s ease;
}

.edit-post-form .form-input:focus {
    outline: none;
    border-color: var(--twitter-blue);
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.1);
}

.edit-post-form .form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.edit-post-form .btn-primary,
.edit-post-form .btn-secondary {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.edit-post-form .btn-primary {
    background-color: var(--twitter-blue);
    color: white;
}

.edit-post-form .btn-primary:hover {
    background-color: var(--twitter-dark-blue);
}

.edit-post-form .btn-secondary {
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.edit-post-form .btn-secondary:hover {
    background-color: var(--background-hover);
}

.edit-post-form .character-counter {
    text-align: right;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.edit-post-form .character-counter.warning {
    color: var(--warning-orange);
}

.edit-post-form .character-counter.error {
    color: var(--error-red);
}

.navigation-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.navigation-links .btn {
    padding: var(--space-md) var(--space-lg);
    background-color: var(--twitter-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.navigation-links .btn:hover {
    background-color: var(--twitter-dark-blue);
}

@media (max-width: 768px) {
    .edit-post-form {
        margin: var(--space-md);
        padding: var(--space-md);
    }
    
    .edit-post-form .form-actions {
        flex-direction: column;
    }
    
    .edit-post-form .btn-primary,
    .edit-post-form .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .navigation-links {
        flex-direction: column;
    }
    
    .navigation-links .btn {
        text-align: center;
    }
}

.private-content-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    text-align: center;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-style: italic;
}

.access-status {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: center;
}

.access-status.access-granted {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.access-status.access-denied {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.private-content-helper {
    margin: var(--space-sm) 0;
    padding: var(--space-sm);
    background: var(--background-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.private-content-helper h4 {
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.private-content-helper .helper-buttons {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.private-content-helper button {
    padding: var(--space-xs) var(--space-sm);
    background: var(--twitter-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.private-content-helper button:hover {
    background: var(--twitter-dark-blue);
}

@media (max-width: 768px) {
    .private-content-helper .helper-buttons {
        flex-direction: column;
    }
    
    .private-content-helper button {
        width: 100%;
        text-align: center;
    }
}

.script-loading-indicator {
    display: inline-block;
    margin: var(--space-xs) 0;
    padding: var(--space-xs) var(--space-sm);
    background: #e3f2fd;
    color: #1565c0;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    border: 1px solid #bbdefb;
}

.script-loading-indicator::before {
    content: '📜 ';
}

/* Professional refresh - simple and clean overrides */
:root {
    --twitter-blue: #0f6edc;
    --twitter-dark-blue: #0b5dc0;
    --twitter-light-blue: #e8f1ff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --background-primary: #ffffff;
    --background-secondary: #f4f7fb;
    --border-color: #d9e2ef;
    --shadow-light: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-medium: 0 14px 32px rgba(15, 23, 42, 0.12);
}

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 110, 220, 0.08), transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.08), transparent 40%),
        var(--background-secondary);
}

.navbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.navbar .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 20px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
}

.main-content {
    padding-top: 78px;
    padding-bottom: 24px;
}

.feed,
.personal-feed,
.post-detail,
.user-posts,
.profile-header,
.profile-stats,
.auth-form,
.edit-post-form,
.post-full {
    border-radius: 16px;
}

.post,
.post-full,
.auth-form,
.edit-post-form,
.profile-header,
.profile-stats,
.user-posts {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.post {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.post:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 110, 220, 0.35);
}

.btn-primary,
button[type="submit"] {
    background: linear-gradient(135deg, var(--twitter-blue), #257ce0);
    border: 1px solid var(--twitter-blue);
    box-shadow: 0 10px 20px rgba(15, 110, 220, 0.2);
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--twitter-dark-blue), #1e6dcb);
}

.btn-secondary {
    background: #f8fafc;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.form-input,
input[type="text"],
input[type="email"],
textarea {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
}

.footer {
    margin-top: 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(135deg, #eef4ff 0%, #f7fafc 100%);
}

@media (max-width: 768px) {
    .container,
    .navbar .container {
        padding: 0 12px;
    }

    .main-content {
        padding-top: 70px;
    }
}

.card-panel {
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-light);
    padding: 20px;
    margin-bottom: 16px;
}

.earn-hero p,
.card-panel p {
    color: var(--text-secondary);
}

.earn-cta-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.earn-list {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--text-primary);
}

.earn-list li {
    margin-bottom: 8px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.step-card {
    background: #f8fbff;
    border: 1px solid #dce8f8;
    border-radius: 12px;
    padding: 14px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.kpi-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    background: #f8fbff;
}

.kpi-card span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 4px;
}

.kpi-card strong {
    font-size: 22px;
    color: var(--text-primary);
}

.table-wrap {
    overflow-x: auto;
}

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

.simple-table th,
.simple-table td {
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    padding: 10px;
    font-size: 14px;
}

.simple-table th {
    color: var(--text-secondary);
    font-weight: 700;
}

.payout-item {
    margin-bottom: 12px;
}

.feed-inline-ad {
    margin: 14px 0;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #f8fbff;
}

.feed-inline-ad ins.adsbygoogle {
    min-height: 90px;
}

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

@media (max-width: 768px) {
    .steps-grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

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

/* Static Pages Styling */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
}

.static-page h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-color);
}

.static-page h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.static-page h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.static-page p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.static-page ul {
    margin-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.static-page ul li {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.static-page a {
    color: var(--twitter-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.static-page a:hover {
    color: var(--twitter-dark-blue);
    text-decoration: underline;
}

.static-page .page-section {
    margin-bottom: var(--space-xl);
}

.static-page .last-updated {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.static-page strong {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.static-page .btn-primary {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: var(--twitter-blue);
    color: white;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: background 0.2s;
}

.static-page .btn-primary:hover {
    background: var(--twitter-dark-blue);
    text-decoration: none;
}