.navbar {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 999;
    transition: all 0.3s ease;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
}
.navbar.scrolled {
    background: rgba(25, 25, 27, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.8rem 1.5rem;
}
.sidebar {
    z-index: 1001;
}
.sidebar-overlay {
    z-index: 1000;
}
.post-container {
    max-width: 800px;
    margin: 80px auto 0;
    padding: 2rem;
    width: 100%;
}
.post-header {
    margin-bottom: 2.5rem;
    text-align: left;
}
.post-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #f5f5f7;
}
.media-upload-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2rem;
}
.square-upload {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.banner-upload {
    width: 100%;
    height: 250px;
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}
.square-upload:hover, .banner-upload:hover {
    background: rgba(255,255,255,0.06);
    border-color: #ff6b00;
    transform: scale(1.005);
}
.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-icon {
    width: 32px;
    height: 32px;
    stroke: #a1a1a6;
    margin-bottom: 8px;
}
.upload-text {
    font-size: 0.75rem;
    color: #a1a1a6;
    font-weight: 500;
}
.form-group {
    margin-bottom: 1.8rem;
}
.form-label {
    display: block;
    margin-bottom: 10px;
    color: #f5f5f7;
    font-size: 0.95rem;
    font-weight: 600;
}
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 18px;
    color: #f5f5f7;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}
.form-input:focus {
    border-color: #ff6b00;
    background: rgba(255, 255, 255, 0.08);
}
.form-input.duplicate {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.05);
}
.duplicate-message {
    display: none;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #ff3b30;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.duplicate-message svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #ff3b30;
    stroke-width: 2;
    flex-shrink: 0;
}
textarea.form-input {
    resize: vertical;
    min-height: 120px;
}
.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #a1a1a6;
    margin-top: 6px;
}
.char-counter.warning {
    color: #ff9f0a;
}
.char-counter.danger {
    color: #ff3b30;
}
.platform-selector {
    display: flex;
    gap: 12px;
}
.platform-btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #a1a1a6;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.platform-btn.active {
    background: #f5f5f7;
    color: #111;
    border-color: #f5f5f7;
}
.download-links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.link-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.link-name-input {
    width: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 18px;
    color: #f5f5f7;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}
.link-url-input {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 18px;
    color: #f5f5f7;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}
.link-name-input:focus, .link-url-input:focus {
    border-color: #ff6b00;
    background: rgba(255, 255, 255, 0.08);
}
.btn-remove-link {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.btn-remove-link:hover {
    background: #ff3b30;
    color: white;
}
.btn-add-link {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: #ff6b00;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
    transition: all 0.2s;
}
.btn-add-link:hover {
    background: rgba(255, 107, 0, 0.2);
}
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 3.5rem;
    padding-bottom: 4rem;
}
.btn-post {
    flex: 2;
    background: #ff6b00;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-post:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-post:hover:not(:disabled) {
    background: #e66000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}
.btn-cancel {
    flex: 1;
    background: rgba(255,255,255,0.05);
    color: #f5f5f7;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-cancel:hover {
    background: rgba(255,255,255,0.1);
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 10002;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.custom-modal {
    background: #1a1a1c;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}
.modal-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}
.modal-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 14px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 2rem;
    outline: none;
}
.modal-btns {
    display: flex;
    gap: 12px;
}
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.notification {
    background: #1a1a1c;
    color: #fff;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}
.notification.active {
    transform: translateX(0);
}
.notification.error {
    border-left: 4px solid #ff3b30;
}
.notification.success {
    border-left: 4px solid #34c759;
}
.notification.warning {
    border-left: 4px solid #ff9f0a;
}
.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.notification-content {
    font-size: 0.9rem;
    font-weight: 500;
}
.gallery-container {
    margin-top: 10px;
    width: 100%;
}
.gallery-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ff6b00 rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}
.gallery-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
    background: #ff6b00;
    border-radius: 10px;
}
.gallery-track {
    display: flex;
    gap: 16px;
    flex-direction: row;
    min-width: min-content;
}
.gallery-card {
    position: relative;
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: #ff6b00;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-card .remove-gallery-img {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ff3b30;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}
.gallery-card .remove-gallery-img:hover {
    background: #ff3b30;
    color: white;
    transform: scale(1.05);
}
.gallery-add-card {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #a1a1a6;
}
.gallery-add-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: #ff6b00;
    color: #ff6b00;
    transform: scale(1.02);
}
.gallery-add-card svg {
    width: 40px;
    height: 40px;
}
.gallery-add-card span {
    font-size: 0.85rem;
    font-weight: 500;
}
@media (max-width: 768px) {
    .navbar { left: 0; padding: 1rem; }
    .banner-upload { height: 180px; }
    .post-container { padding: 1.5rem; margin-top: 60px; }
    .post-header h1 { font-size: 1.8rem; }
    .notification { min-width: auto; width: calc(100vw - 40px); }
    .link-row { flex-direction: column; align-items: stretch; }
    .link-name-input { width: 100%; }
    .btn-remove-link { width: 100%; height: 48px; }
    .gallery-card, .gallery-add-card {
        width: 240px;
        height: 150px;
    }
}
