* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #87CEEB;
    --primary-dark: #5FA8D3;
    --primary-light: #B0E0F6;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.login-box h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.telegram-login-btn {
    width: 100%;
    padding: 14px;
    background: #0088cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.telegram-login-btn:hover {
    background: #006da8;
}

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
}

.header-nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 15px;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.logout-btn {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: var(--bg-light);
}

/* Profile Dropdown Menu */
.profile-menu-container {
    position: relative;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: rgba(135, 206, 235, 0.1);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.profile-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(176, 224, 246, 0.1));
    color: var(--primary-color);
}

.profile-dropdown-item svg {
    flex-shrink: 0;
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Feed Layout */
.feed-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.feed-main {
    min-height: 400px;
}

/* Post Card */
.post-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
}

.author-name:hover {
    color: var(--primary-color);
}

.post-time {
    font-size: 13px;
    color: var(--text-muted);
}

.post-content {
    padding: 0 20px 15px;
}

.post-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.post-text {
    color: var(--text-light);
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.post-media {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.post-actions {
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--bg-light);
}

.action-btn.liked {
    color: #ff4757;
}

/* Premium Content */
.premium-locked {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border-radius: 8px;
    margin: 15px 20px;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #87CEEB 0%, #5FA8D3 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(135, 206, 235, 0.3);
}

/* Sidebar */
.feed-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.sidebar-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.profile-mini {
    display: flex;
    gap: 12px;
    align-items: center;
}

.name {
    font-weight: 600;
    color: var(--text-dark);
}

.link {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--bg-light);
}

/* Profile */
.profile-header {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1;
}

.profile-name-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-name-section h1 {
    font-size: 28px;
    display: flex;
    align-items: center;
}

.author-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.3);
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.profile-bio {
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 600px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: 20px;
}

/* Authors Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.author-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    margin-bottom: 15px;
}

.author-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.author-bio {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 40px;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.author-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Form */
.input,
.textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

/* Create Post */
.create-post-container {
    max-width: 700px;
    margin: 0 auto;
}

.post-form {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.file-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input:hover {
    border-color: var(--primary-color);
    background: rgba(135, 206, 235, 0.05);
}

.media-preview {
    margin-top: 15px;
}

.media-preview img,
.media-preview video {
    max-width: 100%;
    border-radius: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-state svg {
    margin-bottom: 20px;
}

.empty-state h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Page Title */
.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Delete Button */
.delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    margin-left: auto;
    transition: color 0.3s;
}

.delete-btn:hover {
    color: #ff4757;
}

/* Balance Display */
.balance-display {
    background: linear-gradient(135deg, #87CEEB 0%, #5FA8D3 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.3);
}

/* Footer */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 40px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-support p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 14px;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0088cc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.support-link:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Tier Cards */
.tiers-list {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.tier-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tier-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.tier-card.subscribed {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(176, 224, 246, 0.1) 100%);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tier-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.tier-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.tier-description {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Access badges */
.access-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.access-badge.free {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.access-badge.followers {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    color: #004085;
}

.access-badge.tier {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.access-badge.paid {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

/* Responsive */
@media (max-width: 968px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }

    .feed-sidebar {
        position: static;
    }

    .header-nav span {
        display: none;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-stats {
        justify-content: center;
    }
    
    .profile-name-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Verified Badge - Instagram Style */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #1DA1F2;
    border-radius: 50%;
    margin-left: 5px;
    position: relative;
}

.verified-badge::after {
    content: '✓';
    color: white;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
}

.verified-badge-large {
    width: 22px;
    height: 22px;
    margin-left: 8px;
}

.verified-badge-large::after {
    font-size: 16px;
}

/* Avatar Upload Button */
.avatar-upload-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.6);
}

.avatar-upload-btn svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Avatar Editor Modal */
.avatar-editor-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
}

.avatar-drop-zone {
    border: 3px dashed var(--primary-color);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.05) 0%, rgba(176, 224, 246, 0.05) 100%);
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-drop-zone:hover {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(176, 224, 246, 0.1) 100%);
    border-color: var(--primary-dark);
}

.avatar-drop-zone.drag-over {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.2) 0%, rgba(176, 224, 246, 0.2) 100%);
    border-color: var(--primary-dark);
    transform: scale(1.02);
}

.avatar-drop-zone svg {
    margin-bottom: 15px;
    opacity: 0.5;
}

.avatar-drop-zone h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.avatar-drop-zone p {
    color: var(--text-muted);
    font-size: 14px;
}

.avatar-editor-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-editor-controls button {
    padding: 8px 16px;
    font-size: 14px;
}

/* Cropper круглая маска */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-view-box {
    box-shadow: 0 0 0 1px rgba(135, 206, 235, 0.8);
    outline: 0;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .balance-display {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .avatar-editor-controls {
        grid-template-columns: 1fr 1fr;
    }
    
    .avatar-editor-controls button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .avatar-drop-zone {
        padding: 40px 15px;
    }
    
    .avatar-drop-zone h3 {
        font-size: 16px;
    }
    
    .avatar-drop-zone svg {
        width: 48px;
        height: 48px;
    }
    
    .balance-actions {
        grid-template-columns: 1fr !important;
    }
    
    .balance-display {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
    
    .avatar-upload-btn {
        width: 40px;
        height: 40px;
        bottom: 5px;
        right: 5px;
    }
    
    .avatar-upload-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 80px;
    right: -400px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transition: right 0.3s ease;
    max-width: 350px;
}

.notification.show {
    right: 20px;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: linear-gradient(135deg, #87CEEB 0%, #5FA8D3 100%);
    color: white;
}

.notification-error .notification-icon {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: white;
}

.notification-message {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
}

/* Modal Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
    opacity: 0;
}

.modal-overlay.show {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 1;
}

.modal-dialog {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-dialog-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e1e8ed;
}

.modal-dialog-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
}

.modal-dialog-body {
    padding: 24px;
}

.modal-dialog-body p {
    margin: 0 0 16px 0;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
}

.modal-dialog-body p:last-child {
    margin-bottom: 0;
}

.modal-dialog-details {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(176, 224, 246, 0.1) 100%);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-size: 14px;
    color: var(--text-light);
}

.modal-input {
    margin-top: 12px;
}

.modal-dialog-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-dialog-footer button {
    min-width: 100px;
}

/* Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(135, 206, 235, 0.6);
}

.fab-button:active {
    transform: scale(1.05);
}

.fab-icon-plus,
.fab-icon-close {
    color: white;
    position: absolute;
    transition: all 0.3s ease;
}

.fab-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.fab-button.active .fab-icon-plus {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.fab-button.active .fab-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--text-dark);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    transform: scale(0.9);
    opacity: 0;
    animation: fabMenuItemAppear 0.3s ease forwards;
}

.fab-menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

.fab-menu-item:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes fabMenuItemAppear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fab-menu-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(176, 224, 246, 0.1) 100%);
}

.fab-menu-icon {
    font-size: 24px;
    line-height: 1;
}

.fab-menu-text {
    font-weight: 600;
    font-size: 15px;
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-button {
        width: 56px;
        height: 56px;
    }
    
    .fab-menu {
        bottom: 70px;
    }
    
    .fab-menu-item {
        padding: 10px 16px;
    }
    
    .fab-menu-icon {
        font-size: 20px;
    }
    
    .fab-menu-text {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 10px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0;
    }

    .nav-link svg {
        margin: 0;
    }

    .logout-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-display {
        display: none;
    }
}

