        :root {
            --primary-gradient: linear-gradient(135deg, #0088cc 0%, #00a2ed 100%);
            --primary-color: #0088cc;
            --primary-hover: #006699;
            --edit-color: #f39c12;
            --edit-hover: #d35400;
            --delete-color: #e74c3c;
            --delete-hover: #c0392b;
            --bg-color: #f0f4f8;
            --card-bg: #ffffff;
            --text-main: #2c3e50;
            --text-sub: #7f8c8d;
            --border-color: #e2e8f0;
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
        }
        html {
            overflow-x: hidden;
        }
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            overflow-x: hidden;
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
        }
        /* Post Loading Skeleton - matches post-item layout with shimmer effect */
        .skeleton-item {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 16px 20px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 14px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
            margin-bottom: 14px;
        }
        .skeleton-item:last-child {
            margin-bottom: 0;
        }
        .skeleton-cover {
            flex-shrink: 0;
            width: 64px;
            height: 64px;
            border-radius: 20%;
        }
        .skeleton-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .skeleton-line {
            height: 10px;
            border-radius: 6px;
        }
        .skeleton-line.skeleton-meta {
            width: 35%;
            height: 8px;
        }
        .skeleton-line.skeleton-title {
            width: 70%;
            height: 14px;
        }
        .skeleton-line.skeleton-url {
            width: 50%;
            height: 8px;
        }
        .skeleton-cover,
        .skeleton-line {
            background: linear-gradient(90deg, #e9edf2 25%, #f5f7fa 37%, #e9edf2 63%);
            background-size: 400% 100%;
            animation: skeleton-shimmer 1.4s ease infinite;
        }
        @keyframes skeleton-shimmer {
            0% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        /* Hero Section Styling - Compact & Sleek Text Style */
        .hero-section {
            background: var(--primary-gradient);
            color: white;
            width: 100%;
            padding: 20px 20px;
            text-align: center;
            box-sizing: border-box;
            box-shadow: 0 4px 20px rgba(0, 136, 204, 0.15);
            margin-bottom: 25px;
        }
        .hero-title {
            font-family: 'Inter', sans-serif;
            font-size: 38px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: -1px;
            margin: 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .hero-subtitle {
            font-family: 'Inter', sans-serif;
            font-size: 13px;
            font-weight: 600;
            opacity: 0.9;
            margin: 6px 0 0 0;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #bae6fd;
        }
        /* ফ্লোটিং কম্পোজ বাটন (FAB) - Posts ট্যাবে ভাসমান, tap করলে Compose খুলবে */
        .fab-compose {
            position: fixed;
            right: 20px;
            bottom: calc(20px + env(safe-area-inset-bottom, 0px));
            z-index: 60;
            width: 58px;
            height: 58px;
            border: none;
            border-radius: 50%;
            background: var(--primary-gradient);
            color: #fff;
            font-size: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(0, 136, 204, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .fab-compose:hover {
            transform: scale(1.06);
            box-shadow: 0 10px 24px rgba(0, 136, 204, 0.45), 0 3px 8px rgba(0, 0, 0, 0.18);
        }
        .fab-compose:active {
            transform: scale(0.95);
        }
        /* Container */
        .container {
            width: 100%;
            max-width: 100%;
            padding: 0 30px 40px 30px;
            box-sizing: border-box;
        }
        /* Card Layout styling */
        .card {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 30px;
            box-shadow: var(--shadow);
            margin-bottom: 25px;
            border: 1px solid var(--border-color);
        }
        /* Top header bar for the composer: back button, title, post action */
        .composer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 14px;
            background: var(--card-bg);
            border-radius: 14px;
        }
        .composer-back-btn {
            background: transparent;
            border: none;
            color: var(--text-main);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: background 0.2s ease;
        }
        .composer-back-btn:hover {
            background: rgba(0, 0, 0, 0.06);
        }
        .composer-header-title {
            flex: 1;
            text-align: center;
            font-size: 17px;
            font-weight: 800;
            color: var(--text-main);
            margin: 0;
        }
        /* SOCIAL MEDIA COMPOSER STYLING */
        .composer-card {
            background: var(--bg-color);
            padding: 10px 12px 24px 12px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            border: 1px solid rgba(226, 232, 240, 0.8);
            border-left: none;
            border-right: none;
            border-radius: 0;
            box-shadow: none;
            box-sizing: border-box;
            position: relative;
            left: 50%;
            right: 50%;
            width: 100vw;
            margin-left: -50vw;
            margin-right: -50vw;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        /* হেডিং বক্স ও মেইন কনটেন্ট বক্স আলাদা রাখার জন্য কন্টেইনার (শুধু গ্যাপ, নিজস্ব বর্ডার নেই) */
        .composer-inputs {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        /* Standalone heading/title box */
        .composer-title-field {
            width: 100%;
            border: 1px solid #e2e8f0;
            outline: none;
            padding: 16px;
            font-size: 18px;
            font-weight: 700;
            color: #0f172a;
            background: #fafafa;
            box-sizing: border-box;
            font-family: inherit;
            border-radius: 12px;
            transition: all 0.2s ease;
        }
        .composer-title-field:focus {
            border-color: #93c5fd;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.08);
        }
        .composer-title-field::placeholder {
            color: #94a3b8;
            font-weight: 600;
        }
        /* Quill Editor overrides - এখন এটি একটি স্বতন্ত্র বক্স */
        #editor-container {
            border: 1px solid #e2e8f0 !important;
            border-radius: 12px;
            font-size: 16px;
            font-family: inherit;
            background: #fafafa;
            transition: all 0.2s ease;
            overflow: hidden;
        }
        #editor-container:focus-within {
            border-color: #93c5fd !important;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.08);
        }
        /* লেখার জন্য প্রশস্ত, আরামদায়ক জায়গা — কন্টেন্ট বাড়লে বক্সও বাড়বে, পেজ স্ক্রল হবে */
        .ql-editor {
            min-height: 140px;
            padding: 22px 24px 30px 24px !important;
            font-size: 16px;
            line-height: 1.85;
            color: #1e293b;
            font-family: inherit;
        }
        .ql-editor.ql-blank::before {
            font-style: normal;
            color: #94a3b8;
            font-size: 16px;
            left: 24px !important;
        }
        .ql-editor p {
            margin-bottom: 14px;
        }
        .ql-editor h1, .ql-editor h2 {
            color: #0f172a;
            font-weight: 800;
            margin: 22px 0 12px 0;
        }
        /* ব্লগের মতো উদ্ধৃতি স্টাইল */
        .ql-editor blockquote {
            border-left: 4px solid var(--primary-color);
            background: #f0f9ff;
            margin: 16px 0;
            padding: 12px 18px;
            color: #334155;
            font-style: italic;
            border-radius: 0 8px 8px 0;
        }
        .ql-editor code, .ql-editor pre.ql-syntax {
            font-family: 'Courier New', monospace;
            background: #f1f5f9;
            border-radius: 6px;
        }
        .ql-editor pre.ql-syntax {
            padding: 14px 16px;
            color: #0f172a;
        }
        .ql-editor img {
            border-radius: 10px;
            max-width: 100%;
        }
        .ql-editor iframe {
            border-radius: 10px;
        }
        .ql-toolbar.ql-snow {
            border: none !important;
            border-top: 1px solid #f1f5f9 !important;
            background: #f8fafc;
            padding: 10px 14px !important;
            position: sticky;
            top: 0;
            z-index: 3;
            border-radius: 0;
        }
        #editor-container .ql-container.ql-snow {
            border-radius: 0 0 12px 12px;
            overflow: hidden;
        }
        /* Action Footer */
        .composer-footer {
            display: flex;
            justify-content: space-between; /* এডিটর বাটন বামে এবং অ্যাকশন বাটন ডানে বিন্যস্ত করার জন্য */
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            padding-top: 8px;
        }
        /* Upload আইকন ও Quill টুলবার (Bold, Header ইত্যাদি) একই লাইনে রাখার জন্য */
        .composer-toolbar-row {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            min-width: 0;
        }
        /* Custom inline toolbar - upload আইকনের পাশে বসানো হয়েছে, তাই ডিফল্ট বর্ডার/ব্যাকগ্রাউন্ড/sticky সরিয়ে দেওয়া হলো */
        #custom-toolbar.ql-toolbar.ql-snow {
            border: none !important;
            background: transparent !important;
            padding: 0 !important;
            position: static !important;
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 0;
            overflow-x: auto;
            white-space: nowrap;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        #custom-toolbar.ql-toolbar.ql-snow::-webkit-scrollbar {
            display: none;
        }
        #custom-toolbar .ql-formats {
            margin-right: 6px !important;
        }
        /* টুলবার বাটনগুলো upload আইকনের (42px) সাথে সামঞ্জস্যপূর্ণ করার জন্য সাইজ বাড়ানো হলো */
        #custom-toolbar.ql-toolbar.ql-snow button {
            width: 36px;
            height: 36px;
            padding: 6px;
            border-radius: 8px;
        }
        #custom-toolbar.ql-toolbar.ql-snow button svg {
            width: 22px;
            height: 22px;
        }
        #custom-toolbar.ql-toolbar.ql-snow button:hover,
        #custom-toolbar.ql-toolbar.ql-snow button.ql-active {
            background: #e2e8f0;
        }
        /* Control Actions */
        .composer-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        /* Photo/Video Upload Icon Button (left side of the footer) */
        .composer-btn-upload {
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
            padding: 10px;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        .composer-btn-upload:hover {
            background: #e2e8f0;
            color: #0f172a;
        }
        /* আপলোড আইকনের ভেতরেই circular progress দেখানোর জন্য */
        .composer-btn-upload {
            position: relative;
        }
        .composer-btn-upload .upload-btn-icon,
        .composer-btn-upload .upload-btn-progress {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .composer-btn-upload .upload-btn-progress {
            position: absolute;
            inset: 0;
        }
        .upload-progress-svg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }
        .upload-progress-bg {
            fill: none;
            stroke: #e2e8f0;
            stroke-width: 3;
        }
        .upload-progress-fill {
            fill: none;
            stroke: var(--primary-color);
            stroke-width: 3;
            stroke-linecap: round;
            transition: stroke-dasharray 0.2s ease;
        }
        .upload-progress-label {
            font-size: 9px;
            font-weight: 800;
            color: var(--primary-color);
            position: relative;
            z-index: 1;
        }
        .composer-btn-upload.upload-success .upload-progress-fill,
        .composer-btn-upload.upload-success .upload-progress-label {
            stroke: #16a34a;
            color: #16a34a;
        }
        .composer-btn-upload.upload-error .upload-progress-fill,
        .composer-btn-upload.upload-error .upload-progress-label {
            stroke: var(--delete-color);
            color: var(--delete-color);
        }
        .composer-btn {
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 700;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: none;
            font-family: inherit;
        }
        .composer-btn-cancel {
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
            display: inline-flex; /* Permanently visible */
        }
        .composer-btn-cancel:hover {
            background: #e2e8f0;
            color: #0f172a;
        }
        .composer-btn-post {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15);
        }
        .composer-btn-post:hover {
            transform: translateY(-1px);
            opacity: 0.95;
        }
        .composer-btn-post:disabled {
            background: #cbd5e1 !important;
            box-shadow: none !important;
            cursor: not-allowed;
            transform: none !important;
        }
        /* Search Bar Styling - আইকন ডান পাশে রাখার জন্য প্যাডিং অ্যাডজাস্ট করা হয়েছে */
        .search-container {
            position: relative;
            margin-bottom: 20px;
            width: 100%;
        }
        .search-input {
            width: 100%;
            padding: 12px 42px 12px 16px; /* ডান পাশে আইকনের জন্য প্যাডিং বাড়ানো হয়েছে */
            font-size: 14px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background-color: var(--card-bg);
            color: var(--text-main);
            outline: none;
            box-sizing: border-box;
            transition: all 0.2s ease;
            font-family: inherit;
        }
        .search-input:focus {
            border-color: #93c5fd;
            background-color: #ffffff;
            box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.08);
        }
        .search-icon-wrapper {
            position: absolute;
            right: 14px; /* আইকনটি ডান পাশে পজিশন করা হয়েছে */
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-sub);
            display: flex;
            align-items: center;
            pointer-events: none;
        }
        /* Alert and feedback boxes */
        #status-card {
            margin-top: 15px;
            padding: 15px 20px;
            border-radius: 12px;
            display: none;
            font-weight: 500;
            animation: fadeIn 0.3s ease;
        }
        .status-loading {
            background-color: #f0f9ff;
            color: #0369a1;
            border: 1px solid #bae6fd;
        }
        .status-success {
            background-color: #f0fdf4;
            color: #15803d;
            border: 1px solid #bbf7d0;
        }
        .status-error {
            background-color: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
        }
        #telegraph-link {
            font-weight: 700;
            color: var(--primary-color);
            word-break: break-all;
            display: inline-block;
            margin-top: 8px;
            text-decoration: none;
            border-bottom: 1px dashed var(--primary-color);
        }
        #telegraph-link:hover {
            color: var(--primary-hover);
        }
        /* History items list - Scroll removed, integrated into body */
        .post-view-section {
            background: var(--card-bg);
            padding: 24px 12px 30px 12px;
            border: 1px solid rgba(226, 232, 240, 0.8);
            border-left: none;
            border-right: none;
            border-top-left-radius: 18px;
            border-top-right-radius: 18px;
            box-sizing: border-box;
            position: relative;
            left: 50%;
            right: 50%;
            width: 100vw;
            margin-left: -50vw;
            margin-right: -50vw;
        }
        .history-header-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding: 0 5px;
        }
        .history-section-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-main);
            margin: 0;
        }
        .total-posts-badge {
            background-color: var(--primary-color);
            color: white;
            font-size: 13px;
            font-weight: 700;
            padding: 5px 12px;
            border-radius: 20px;
            box-shadow: 0 2px 6px rgba(0, 136, 204, 0.15);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .post-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        /* Post Item - Optimized to give maximum width to the Title */
        .post-item {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 16px 20px;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
            transition: all 0.2s;
            gap: 14px;
        }
        .post-item:hover,
        .post-item:active {
            box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.05);
            border-color: var(--primary-color);
        }
        /* Squircle cover photo/thumbnail shown on the left of each post card */
        .post-cover {
            flex-shrink: 0;
            width: 64px;
            height: 64px;
            border-radius: 20%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 700;
            color: #fff;
            background-size: cover;
            background-position: center;
            text-transform: uppercase;
        }
        .post-main {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .post-info {
            flex: 1; /* Takes maximum available space */
            min-width: 0; /* Prevents text overflow breaking the flex container */
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .post-item-title {
            font-weight: 600;
            font-size: 16px;
            margin: 0;
            color: #1e293b;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis; /* Smooth text ellipsis if title is extremely long */
        }
        .post-item-meta {
            font-size: 12px;
            color: var(--text-sub);
        }
        /* Telegraph URL shown under the title - click to copy */
        .post-item-url {
            font-size: 12px;
            color: var(--primary-color);
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            border-radius: 4px;
            transition: all 0.2s ease;
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
        }
        .post-item-url:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }
        /* Actions layout - Keep it compact and structured */
        .post-actions {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
            gap: 6px;
            flex-shrink: 0; /* Prevents actions from shrinking and losing structure */
        }
        .btn-copy-link {
            margin-left: auto;
        }
        .btn-action {
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 600;
            border-radius: 20px; /* Pill styled buttons */
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            transition: all 0.2s ease;
            cursor: pointer;
            border: 1px solid transparent;
            font-family: inherit;
        }
        .btn-edit {
            background-color: #fff7ed;
            color: #c2410c;
            border: 1px solid #fed7aa;
        }
        .btn-edit:hover {
            background-color: #ffedd5;
            transform: translateY(-1px);
        }
        /* Copy Link button (pill, in actions row) - violet theme */
        .btn-copy-link {
            background-color: #f5f3ff;
            color: #6d28d9;
            border: 1px solid #ddd6fe;
        }
        .btn-copy-link:hover {
            background-color: #ede9fe;
            transform: translateY(-1px);
        }
        /* Duplicate button (pill, in actions row) - cyan theme */
        .btn-duplicate {
            background-color: #ecfeff;
            color: #0e7490;
            border: 1px solid #a5f3fc;
        }
        .btn-duplicate:hover {
            background-color: #cffafe;
            transform: translateY(-1px);
        }
        /* Highlight animation for a freshly duplicated post card - flashes color then fades back */
        @keyframes duplicateHighlightFade {
            0% { background-color: #cffafe; border-color: #67e8f9; }
            100% { background-color: var(--card-bg); border-color: var(--border-color); }
        }
        .post-item-highlight {
            animation: duplicateHighlightFade 2.2s ease-out forwards;
        }
        /* Danger Delete button styling */
        .btn-delete-item {
            background-color: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
        }
        .btn-delete-item:hover {
            background-color: #fee2e2;
            transform: translateY(-1px);
        }
        /* Custom Confirmation Modal Styling */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(4px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.2s ease;
        }
        .modal-card {
            background: #ffffff;
            border-radius: 16px;
            max-width: 440px;
            width: 90%;
            padding: 30px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            text-align: center;
            border: 1px solid var(--border-color);
        }
        .modal-icon {
            width: 56px;
            height: 56px;
            background: #fef2f2;
            color: #ef4444;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px auto;
        }
        .modal-title {
            font-size: 18px;
            font-weight: 700;
            margin-top: 0;
            margin-bottom: 8px;
            color: #0f172a;
        }
        .modal-desc {
            font-size: 14px;
            color: #64748b;
            line-height: 1.5;
            margin-bottom: 24px;
        }
        .modal-actions {
            display: flex;
            gap: 12px;
        }
        .btn-modal {
            flex: 1;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            color: white;
        }
        /* Loader Icon design */
        .spinner {
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top: 3px solid #fff;
            width: 18px;
            height: 18px;
            animation: spin 1s linear infinite;
            display: inline-block;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        /* ============================================================ */
        /* LOGIN SCREEN STYLING — "Signal Blue" (glassmorphism, animated gradient) */
        /* ============================================================ */
        #login-screen {
            position: fixed;
            inset: 0;
            z-index: 5000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
            overflow: hidden;
            background: linear-gradient(160deg, #005c8a 0%, #0088cc 45%, #00c2f0 100%);
            background-size: 200% 200%;
            animation: loginGradientDrift 12s ease infinite;
        }
        @keyframes loginGradientDrift {
            0% { background-position: 0% 30%; }
            50% { background-position: 100% 70%; }
            100% { background-position: 0% 30%; }
        }
        /* আবছা ভাসমান কাগজের প্লেন — বার্তা পাঠানোর প্রতীক, ব্যাকগ্রাউন্ডে অ্যামবিয়েন্ট মোশন */
        #login-screen .login-plane {
            position: absolute;
            color: rgba(255, 255, 255, 0.16);
            animation: loginPlaneDrift 14s linear infinite;
            pointer-events: none;
        }
        #login-screen .login-plane.p1 { font-size: 48px; top: 12%; left: 8%; animation-duration: 16s; }
        #login-screen .login-plane.p2 { font-size: 30px; top: 70%; left: 80%; animation-duration: 20s; animation-delay: -4s; }
        #login-screen .login-plane.p3 { font-size: 22px; top: 20%; left: 78%; animation-duration: 13s; animation-delay: -7s; }
        @keyframes loginPlaneDrift {
            0% { transform: translate(0,0) rotate(0deg); }
            50% { transform: translate(-16px, 18px) rotate(8deg); }
            100% { transform: translate(0,0) rotate(0deg); }
        }
        .login-card {
            position: relative;
            z-index: 2;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 24px;
            padding: 44px 32px 32px 32px;
            max-width: 380px;
            width: 100%;
            text-align: center;
            box-shadow: 0 30px 60px rgba(0, 60, 90, 0.35);
            animation: fadeIn 0.4s ease;
        }
        .login-logo {
            width: 66px;
            height: 66px;
            margin: 0 auto 20px auto;
            border-radius: 50%;
            background: linear-gradient(135deg, #0088cc, #00c2f0);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            box-shadow: 0 10px 24px rgba(0, 136, 204, 0.4);
        }
        .login-title {
            font-size: 27px;
            font-weight: 900;
            color: #0f2a3d;
            margin: 0 0 28px 0;
            letter-spacing: -0.5px;
        }
        .login-subtitle {
            font-size: 12.5px;
            font-weight: 600;
            color: #5f7d8c;
            margin: 0 0 30px 0;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        .google-signin-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 13px 20px;
            background: #ffffff;
            border: 1px solid #dadce0;
            border-radius: 30px;
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            color: #3c4043;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }
        .google-signin-btn:hover {
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
            transform: translateY(-1px);
        }
        .google-signin-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }
        .login-status {
            margin-top: 18px;
            font-size: 12px;
            font-weight: 500;
            color: #7891a0;
            min-height: 18px;
        }
        .login-status.error {
            color: var(--delete-color);
        }
        .login-status.loading {
            color: #7891a0;
        }
        .login-footer-text {
            margin: 14px 0 0 0;
            font-size: 11px;
            font-weight: 500;
            color: #9db2bd;
        }
        /* Mobile Optimization */
        @media (max-width: 600px) {
            .post-item {
                padding: 14px;
            }
        }

/* ============================================================ */
/* SPLASH / PAGE LOADER: CastFM-এর ধাঁচে প্রথমে দেখানোর স্প্ল্যাশ স্ক্রিন */
/* ============================================================ */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #005c8a 0%, #0088cc 45%, #00c2f0 100%);
    background-size: 200% 200%;
    animation: loginGradientDrift 12s ease infinite;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
#splash-screen.splash-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.splash-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}
.splash-title span {
    color: #cdeeff;
}
.splash-progress-track {
    position: absolute;
    bottom: 64px;
    width: 140px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}
.splash-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    border-radius: 4px;
    background: #ffffff;
    animation: splashLoading 1.1s ease-in-out infinite;
}
@keyframes splashLoading {
    0% { left: -40%; }
    100% { left: 100%; }
}
.splash-version {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}
