* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.side-decoration {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background: linear-gradient(90deg, 
        rgba(255, 7, 58, 0.08) 0%, 
        rgba(255, 7, 58, 0.04) 15%, 
        transparent 30%,
        transparent 70%,
        rgba(255, 7, 58, 0.04) 85%,
        rgba(255, 7, 58, 0.08) 100%);
    pointer-events: none;
}

.corner-decoration {
    position: fixed;
    width: 300px;
    height: 300px;
    z-index: -1;
    opacity: 0.05;
}

.corner-decoration.top-left {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, #ff073a, transparent 70%);
}

.corner-decoration.bottom-right {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, #ff073a, transparent 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    position: relative;
    padding-top: 50px;
}

.user-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-buttons .ghost {
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.auth-buttons .ghost:hover {
    background: rgba(255,255,255,0.1);
}

.auth-buttons .solid {
    background: #ff073a;
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(255,7,58,0.35);
}

.auth-buttons .solid:hover {
    transform: translateY(-1px);
}

.user-menu {
    position: relative;
    display: none;
}

.user-menu.active {
    display: block;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 5px 14px 5px 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-trigger:hover {
    background: rgba(255,255,255,0.15);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ff073a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-trigger span.name {
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 220px;
    background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.45);
    display: none;
    z-index: 10;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-user-info {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 12px;
}

.dropdown-user-info strong {
    display: block;
    font-size: 1rem;
}

.dropdown-user-info span {
    display: block;
    font-size: 0.85rem;
    color: #9ca3af;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,7,58,0.15);
    color: #ff7b9f;
    font-size: 0.75rem;
    margin-top: 8px;
}

.dropdown-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: none;
    border: none;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-link:hover {
    background: rgba(255,255,255,0.08);
}

.dropdown-link.danger {
    color: #f87171;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.brand-logo {
    max-width: min(100%, 720px);
    width: auto;
    height: 6.5rem;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 7, 58, 0.45));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35));
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 15px;
    color: #e6e6e6;
}

.project-description {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    margin-top: 20px;
    border: 1px solid rgba(255, 7, 58, 0.3);
    animation: fadeInScale 1.5s ease-out 0.8s both;
    border-left: 4px solid #ff073a;
}

.project-description p {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    color: #b8c2cc;
    line-height: 1.5;
}

.external-link {
    color: #ff073a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 7, 58, 0.3);
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.external-link:hover {
    background: rgba(255, 7, 58, 0.2);
    border-bottom-color: #ff073a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 7, 58, 0.3);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Upload Area */
.upload-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 3px dashed rgba(255, 7, 58, 0.3);
    cursor: pointer;
    border-left: 4px solid #ff073a;
}

.upload-area:hover {
    border-color: #ff073a;
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(255, 7, 58, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.upload-area.dragover {
    border-color: #ff073a;
    background: rgba(255, 7, 58, 0.1);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-icon {
    font-size: 4rem;
    color: #ff073a;
    margin-bottom: 10px;
    animation: iconFloat 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 7, 58, 0.7);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.upload-area p {
    color: #b8c2cc;
    font-size: 1rem;
    margin-bottom: 20px;
}

.paste-hint {
    color: #ff073a;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.paste-hint i {
    font-size: 0.9rem;
}

.upload-btn {
    position: relative;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff073a 0%, #ff3860 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 7, 58, 0.4);
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 7, 58, 0.6);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-btn:disabled {
    background: linear-gradient(45deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.upload-btn:disabled:hover {
    transform: none;
}

.upload-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s;
}

.upload-btn:hover::after {
    left: 100%;
}

/* File List */
.file-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-left: 4px solid #ff073a;
}

.file-list h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ff073a;
}

.uploads-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.uploads-container .file-item {
    margin-bottom: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #ff073a;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.file-icon {
    font-size: 1.5rem;
    color: #ff073a;
    min-width: 30px;
    transition: all 0.3s ease;
}

.file-icon:hover {
    color: #ff3860;
    transform: scale(1.1);
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #fff;
}

.file-size {
    font-size: 0.9rem;
    color: #b8c2cc;
}

.file-link {
    font-size: 0.9rem;
    color: #ff073a;
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: anywhere;
    -webkit-tap-highlight-color: transparent;
    user-select: text;
    -webkit-user-select: text;
}

.file-link:hover {
    text-decoration: underline;
    color: #ff3860;
}

/* Progress Bar */
.upload-progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #ff073a;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff073a 0%, #ff3860 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
    animation: progressShimmer 2s linear infinite;
    position: relative;
}

.progress-fill.compressing {
    background: linear-gradient(45deg, #ffc107 0%, #ff9800 100%);
    animation: compressProgress 1.5s ease-in-out infinite;
}

@keyframes compressProgress {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 1;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.8;
    }
}

@keyframes progressShimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.progress-text {
    font-weight: 600;
    color: #fff;
    min-width: 40px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(255, 7, 58, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 7, 58, 0.3);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff073a;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #b8c2cc;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 7, 58, 0.2);
    color: #ff073a;
}

.modal-body {
    padding: 30px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ff073a;
}

.file-info i {
    font-size: 2rem;
    color: #ff073a;
}

.file-info span {
    font-weight: 500;
    color: #ff073a;
    word-break: break-all;
}

.link-container {
    margin-bottom: 25px;
}

.link-container label {
    display: block;
    font-weight: 600;
    color: #ff073a;
    margin-bottom: 10px;
}

.link-input-group {
    display: flex;
    gap: 10px;
}

.link-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 7, 58, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.copy-btn {
    background: linear-gradient(45deg, #ff073a 0%, #ff3860 100%);
    color: #ffffff;
    border: none;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 7, 58, 0.3);
    background: linear-gradient(45deg, #ff3860 0%, #ff073a 100%);
}

.preview-container {
    margin-top: 20px;
}

.preview-container label {
    display: block;
    font-weight: 700;
    color: #ff073a;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.preview {
    border-radius: 10px;
    overflow: hidden;
    max-height: 300px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 7, 58, 0.3);
}

.preview img, .preview video {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.preview audio {
    width: 100%;
}

/* Batch results (multiple files in one modal) */
.batch-results-container {
    margin-top: 20px;
}

.batch-results-container label {
    display: block;
    font-weight: 600;
    color: rgba(255, 7, 58, 0.3);
    margin-bottom: 10px;
}

.batch-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.batch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ff073a;
}

.batch-item .file-icon { color: #ff073a; }
.batch-item .file-name { color: #fff; font-weight: 500; }
.batch-item .file-link { color: #ff073a; word-break: break-all; font-size: 0.9rem; }

.batch-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.copy-all-btn {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 7, 58, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #6c757d;
    opacity: 0.8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.footer-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-logo {
    width: auto;
    max-width: min(100%, 560px);
    height: 5rem;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 7, 58, 0.35));
}

.footer p {
    margin: 5px 0;
}

.footer-email {
    margin-top: 10px;
    font-size: 0.85rem;
}

.email-link {
    color: #ff073a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 7, 58, 0.3);
    padding: 2px 4px;
    border-radius: 4px;
}

.email-link:hover {
    background: rgba(255, 7, 58, 0.2);
    border-bottom-color: #ff073a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 7, 58, 0.3);
}

/* Responsive Design */
/* Tablets */
@media (max-width: 992px) {
    .side-decoration {
        width: 100px;
    }
    
    .container {
        max-width: 100%;
        padding: 15px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
}

/* Small tablets and large phones */
@media (max-width: 820px) {
    body {
        padding: 12px;
    }
    
    .container {
        padding: 12px;
    }
    
    .upload-area {
        padding: 25px 18px;
    }
    
    .file-item {
        flex-wrap: wrap;
    }
    
    .file-actions {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .container {
        padding: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header {
        padding-top: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .user-panel {
        position: static;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
        gap: 12px;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    
    .auth-buttons a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 16px;
        min-height: 44px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-menu {
        width: 100%;
        max-width: 320px;
    }
    
    .user-trigger {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
        min-height: 44px;
        box-sizing: border-box;
    }
    
    .dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: min(calc(100vw - 32px), 320px);
        max-width: 320px;
        width: min(calc(100vw - 32px), 320px);
        box-sizing: border-box;
    }
    
    .upload-area {
        padding: 40px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo {
        width: 100%;
        box-sizing: border-box;
    }
    
    .brand-logo,
    .footer-logo {
        height: 4.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .project-description {
        width: 100%;
        box-sizing: border-box;
        padding: 15px 20px;
        margin-top: 15px;
    }
    
    .project-description p {
        font-size: 0.9rem;
        word-wrap: break-word;
        line-height: 1.5;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: 85vh;
        box-sizing: border-box;
    }
    
    .modal-header, .modal-body {
        padding: 20px;
        box-sizing: border-box;
    }
    
    .link-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .link-input-group input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .copy-btn {
        align-self: stretch;
        width: 100%;
        min-height: 44px;
    }
    
    .side-decoration, .corner-decoration {
        display: none;
    }
    
    .file-item {
        flex-wrap: wrap;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .file-actions {
        flex-direction: row;
        gap: 8px;
        width: 100%;
        margin-top: 8px;
        justify-content: flex-end;
    }
    
    .file-info {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .file-name {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .file-link {
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block;
        max-width: 100%;
    }
}

/* Phones */
@media (max-width: 576px) {
    body {
        padding: 10px;
        -webkit-text-size-adjust: 100%; /* Предотвращает авто-масштабирование текста на iOS */
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .container { 
        padding: 10px; 
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .brand-logo,
    .footer-logo {
        height: 3.6rem;
    }
    
    .header {
        margin-bottom: 25px;
        padding-top: 10px;
    }
    
    .user-panel {
        position: static;
        width: 100%;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    
    .auth-buttons {
        width: 100%;
        gap: 8px;
    }
    
    .auth-buttons a {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .project-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .upload-area { 
        padding: 25px 15px; 
        border-width: 2px; 
    }
    
    .upload-icon { 
        font-size: 2.5rem; 
    }
    
    .upload-area h3 { 
        font-size: 1.1rem; 
        margin-bottom: 8px;
    }
    
    .upload-area p { 
        font-size: 0.9rem; 
        margin-bottom: 12px;
    }
    
    .upload-btn { 
        min-width: 100%; 
        font-size: 16px; 
        padding: 14px 20px; 
    }
    
    .paste-hint { 
        font-size: 0.8rem; 
        margin-top: 8px; 
    }

    .file-list { 
        padding: 15px; 
        border-radius: 15px;
    }
    
    .file-item { 
        gap: 12px; 
        padding: 12px; 
        align-items: flex-start; 
        flex-direction: row;
        margin-bottom: 12px;
    }
    
    .file-icon { 
        font-size: 1.4rem; 
        min-width: 28px; 
        flex-shrink: 0;
    }
    
    .file-info {
        flex: 1;
        min-width: 0;
        gap: 4px;
    }
    
    .file-name { 
        font-size: 0.95rem; 
        word-break: break-word;
        line-height: 1.3;
    }
    
    .file-size { 
        font-size: 0.8rem; 
        margin-top: 2px;
    }
    
    .file-link { 
        font-size: 0.75rem; 
        word-break: break-all;
        line-height: 1.4;
        margin-top: 4px;
        display: block;
    }
    
    .file-date { 
        font-size: 0.75rem; 
        margin-top: 2px;
    }
    
    .file-delete-time { 
        font-size: 0.75rem; 
        margin-top: 4px; 
    }
    
    .file-actions {
        flex-direction: row;
        gap: 8px;
        flex-shrink: 0;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        margin-top: 8px;
    }
    
    .copy-link-btn, .delete-file-btn { 
        padding: 10px 14px; 
        font-size: 0.85rem; 
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        -webkit-tap-highlight-color: rgba(255, 7, 58, 0.2);
        touch-action: manipulation;
        cursor: pointer;
        flex: 1;
        max-width: 50%;
    }
    
    .copy-link-btn:active, .delete-file-btn:active {
        transform: scale(0.95);
    }
    
    .copy-link-btn i, .delete-file-btn i {
        font-size: 1.1rem;
    }

    .link-input-group { 
        flex-direction: column; 
        gap: 10px;
    }
    
    .copy-btn { 
        width: 100%; 
    }

    .modal-content { 
        width: 95%; 
        max-height: 85vh;
        border-radius: 20px;
        margin: auto;
        position: relative;
        animation: modalSlideIn 0.3s ease;
        max-width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    
    /* Специально для модального окна выбора времени - компактное */
    #deleteTimeModal .modal-content {
        max-height: 75vh;
        width: 90%;
    }
    
    .modal-header, .modal-body { 
        padding: 20px 16px; 
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .preview { 
        max-height: 40vh; 
    }
    
    .preview img, .preview video { 
        max-height: 40vh; 
    }
    
    .batch-results { 
        max-height: 45vh; 
    }
    
    .batch-item { 
        flex-wrap: wrap; 
    }

    .history-items-wrapper { 
        max-height: 60vh;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .history-header { 
        gap: 10px; 
        flex-wrap: wrap; 
        align-items: center;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }
    
    .history-header h4 {
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
    }
    
    .history-actions { 
        width: 100%; 
        gap: 10px; 
        flex-wrap: nowrap;
    }
    
    .toggle-history-btn, .clear-history-btn { 
        flex: 1;
        padding: 12px 15px;
        font-size: 0.9rem;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(255, 7, 58, 0.2);
        touch-action: manipulation;
    }
    
    .toggle-history-btn:active, .clear-history-btn:active {
        transform: scale(0.98);
    }
    
    .upload-progress { 
        position: sticky; 
        bottom: 0; 
        z-index: 999;
        padding: 15px;
        border-radius: 15px 15px 0 0;
    }
    
    .progress-text {
        font-size: 0.9rem;
        min-width: 50px;
    }
    
    .delete-file-options {
        gap: 12px;
    }
    
    .delete-option-btn {
        padding: 16px;
        gap: 12px;
    }
    
    .delete-option-btn i {
        font-size: 1.3rem;
    }
    
    .delete-option-btn strong {
        font-size: 0.95rem;
    }
    
    .delete-option-btn span {
        font-size: 0.8rem;
    }
    
    .footer { 
        margin-top: 30px; 
        padding: 15px 0; 
        font-size: 0.8rem; 
    }
    
    .footer-email { 
        font-size: 0.75rem; 
        margin-top: 8px; 
    }
    
    .email-link { 
        font-size: 0.8rem; 
    }
}

/* Very small phones */
@media (max-width: 360px) {
    body {
        padding: 8px;
    }
    
    .container { 
        padding: 8px; 
    }
    
    .brand-logo,
    .footer-logo {
        height: 2.9rem;
    }
    
    .upload-icon { 
        font-size: 2.2rem; 
    }
    
    .upload-area { 
        padding: 20px 12px; 
    }
    
    .upload-area h3 { 
        font-size: 1rem; 
    }
    
    .upload-area p { 
        font-size: 0.85rem; 
    }
    
    .paste-hint { 
        font-size: 0.75rem; 
    }
    
    .upload-btn { 
        font-size: 15px; 
        padding: 12px 16px; 
    }
    
    .file-list {
        padding: 12px;
    }
    
    .file-item {
        padding: 10px;
        gap: 10px;
    }
    
    .file-icon {
        font-size: 1.2rem;
        min-width: 24px;
    }
    
    .file-name { 
        font-size: 0.9rem; 
    }
    
    .file-link { 
        font-size: 0.7rem; 
    }
    
    .file-date { 
        font-size: 0.7rem; 
    }
    
    .file-size {
        font-size: 0.75rem;
    }
    
    .file-delete-time {
        font-size: 0.7rem;
    }
    
    .copy-link-btn, .delete-file-btn {
        width: 44px;
        height: 44px;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .history-header h4 {
        font-size: 1rem;
    }
    
    .toggle-history-btn, .clear-history-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .delete-file-options {
        gap: 10px;
    }
    
    .delete-option-btn {
        padding: 14px;
        gap: 10px;
    }
    
    .delete-option-btn i {
        font-size: 1.2rem;
    }
    
    .delete-option-btn strong {
        font-size: 0.9rem;
    }
    
    .delete-option-btn span {
        font-size: 0.75rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform-origin: center center;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Animation */
.success-animation {
    color: #28a745;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Compressing Animation */
.compressing-animation {
    color: #ffc107;
    animation: compressPulse 1.5s ease-in-out infinite;
}

@keyframes compressPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.compressing-text {
    color: #ffc107 !important;
    font-weight: 600;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.file-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* History Styles */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff416c;
}

.history-header h4 {
    color: #ff416c;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-history-btn {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ff416c;
    border: 1px solid rgba(255, 7, 58, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-history-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.history-items-wrapper {
    transition: max-height 0.3s ease;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.history-items-wrapper.collapsed {
    max-height: 0;
    overflow: hidden;
}

.clear-history-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-history-btn:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.history-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-left: 4px solid #ff416c;
}

.history-item:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-left-color: #dc2626;
}

.file-date {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.file-delete-time {
    font-size: 0.8rem;
    color: #ff073a;
    font-weight: 500;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-delete-time::before {
    content: '⏱';
    font-size: 0.9rem;
}

.file-delete-time.expired {
    color: #dc3545;
    font-weight: 600;
}

.file-delete-time.expired::before {
    content: '⚠';
}

.copy-link-btn {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.copy-link-btn:hover {
    background: linear-gradient(135deg, #ff4b2b 0%, #dc2626 100%);
    transform: scale(1.05);
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-file-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.delete-file-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.delete-file-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.delete-option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 7, 58, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: white;
}

.delete-option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff073a;
    transform: translateX(5px);
}

.delete-option-btn i {
    font-size: 1.5rem;
    color: #ff073a;
    min-width: 30px;
}

.delete-option-btn div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.delete-option-btn strong {
    font-size: 1rem;
    color: #fff;
}

.delete-option-btn span {
    font-size: 0.85rem;
    color: #b8c2cc;
}

.delete-file-description {
    color: #b8c2cc;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Entry Animations */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    animation: slideInFromTop 1s ease-out;
}

.upload-area {
    animation: fadeInScale 1.2s ease-out 0.3s both;
}

.file-list {
    animation: slideInFromBottom 1s ease-out 0.6s both;
}

/* Notification Animations */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Logo Icon Hover Effect */
#logoImage {
    transition: transform 0.3s ease, filter 0.3s ease;
}

#logoImage:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.45));
}

/* Delete Time Modal Styles */
.delete-time-description {
    text-align: center;
    color: #b8c2cc;
    font-size: 1rem;
    margin-bottom: 25px;
}

.delete-time-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.delete-time-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.delete-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #f3f4f6;
    text-align: center;
    line-height: 1.6;
}

.delete-note a {
    transition: all 0.2s ease;
}

.delete-note a:hover {
    color: #818cf8 !important;
    text-decoration: underline !important;
}

.delete-time-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 7, 58, 0.3);
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    touch-action: manipulation; /* Улучшает отзывчивость на мобильных устройствах */
    -webkit-tap-highlight-color: rgba(255, 7, 58, 0.3); /* Подсветка при нажатии на мобильных */
    user-select: none; /* Предотвращает выделение текста при нажатии */
    min-height: 80px; /* Минимальная высота для удобного нажатия */
}

.delete-time-btn:hover {
    background: rgba(255, 7, 58, 0.2);
    border-color: #ff073a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 7, 58, 0.3);
}

.delete-time-btn:active {
    transform: translateY(-1px);
}

.delete-time-btn i {
    font-size: 2rem;
    color: #ff073a;
    margin-bottom: 5px;
}

.delete-time-btn span {
    color: #fff;
}

.delete-time-btn[data-time="0"] {
    grid-column: 1 / -1;
}

.delete-time-btn[data-time="0"]:hover {
    background: rgba(255, 7, 58, 0.3);
}

@media (max-width: 768px) {
    .delete-time-options {
        grid-template-columns: 1fr;
        gap: 12px; /* Уменьшаем расстояние для компактности */
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 5px;
        /* Разрешаем только вертикальную прокрутку для предотвращения случайных кликов */
        touch-action: pan-y;
    }
    
    .delete-time-btn[data-time="0"] {
        grid-column: 1;
    }
    
    .delete-time-btn {
        padding: 18px; /* Умеренный padding */
        min-height: 70px; /* Компактная высота */
        font-size: 1rem;
        /* Разрешаем только tap, но не pan (прокрутку) на самой кнопке */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        /* Предотвращаем случайные срабатывания при прокрутке */
        user-select: none;
        -webkit-user-select: none;
    }
    
    .delete-time-btn i {
        font-size: 1.8rem; /* Компактный размер иконки */
    }
    
    /* Модальное окно не на весь экран */
    #deleteTimeModal .modal-content {
        max-height: 70vh;
        margin: auto 10px;
        position: relative;
    }
    
    #deleteTimeModal .modal-body {
        padding: 20px 16px;
        max-height: calc(70vh - 100px);
        overflow-y: auto;
        /* Разрешаем прокрутку в теле модального окна */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
}

html[data-theme="light"] .history-header {
    border-bottom-color: #cbd5e1;
}

html[data-theme="light"] .history-header h4 {
    color: #1d4ed8;
}

html[data-theme="light"] .toggle-history-btn {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.2);
}

html[data-theme="light"] .toggle-history-btn:hover {
    background: #dbeafe;
}

html[data-theme="light"] .clear-history-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
}

html[data-theme="light"] .clear-history-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

html[data-theme="light"] .history-item,
html[data-theme="light"] .history-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-left-color: #1d4ed8;
}

html[data-theme="light"] .file-date {
    color: #64748b;
}

html[data-theme="light"] .file-delete-time {
    color: #b91c1c;
}

html[data-theme="light"] .delete-option-btn {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

html[data-theme="light"] .delete-option-btn:hover {
    background: #eef2f7;
    border-color: #94a3b8;
}

html[data-theme="light"] .delete-option-btn strong,
html[data-theme="light"] .delete-option-btn span,
html[data-theme="light"] .delete-file-description {
    color: #1e293b;
}

.support-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.support-widget-toggle {
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.35);
}

.support-widget-panel {
    width: min(380px, calc(100vw - 24px));
    max-height: min(720px, calc(100vh - 110px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(18px);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transform-origin: bottom right;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.support-widget.open .support-widget-panel {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.support-widget-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-widget-header strong {
    display: block;
    font-size: 1rem;
    color: #fff;
}

.support-widget-header p {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.support-widget-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    cursor: pointer;
}

.support-widget-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    background:
        radial-gradient(circle at top right, rgba(248, 113, 113, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.98));
}

.support-widget-message {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    animation: supportWidgetMessageIn 0.22s ease;
}

.support-widget-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-top-left-radius: 8px;
}

.support-widget-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    border-top-right-radius: 8px;
}

.support-widget-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.support-widget-option {
    border: 1px solid rgba(251, 146, 60, 0.35);
    background: rgba(251, 146, 60, 0.12);
    color: #fdba74;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.support-widget-option:hover,
.support-widget-toggle:hover,
.support-widget-submit:hover,
.support-widget-secondary:hover,
.support-widget-close:hover {
    transform: translateY(-1px);
}

.support-widget-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.98);
}

.support-widget-hint {
    font-size: 0.82rem;
    color: #94a3b8;
}

.support-widget-form {
    margin-top: 10px;
}

.support-widget-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 92px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
    box-sizing: border-box;
}

.support-widget-form textarea:focus {
    outline: none;
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.support-widget-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.support-widget-submit,
.support-widget-secondary {
    border: none;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.support-widget-submit {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}

.support-widget-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.support-widget-autocomplete {
    margin-bottom: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.98);
    overflow: hidden;
}

.support-widget-search-result {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
}

.support-widget-search-result:last-child {
    border-bottom: none;
}

.support-widget-search-result small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
}

.support-widget-message-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.support-widget-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.support-widget-dots i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.35;
    animation: supportWidgetDotPulse 1s infinite ease-in-out;
}

.support-widget-dots i:nth-child(2) {
    animation-delay: 0.14s;
}

.support-widget-dots i:nth-child(3) {
    animation-delay: 0.28s;
}

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

@keyframes supportWidgetDotPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.85);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

html[data-theme="light"] .support-widget-panel {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .support-widget-header,
html[data-theme="light"] .support-widget-footer {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="light"] .support-widget-body {
    background:
        radial-gradient(circle at top right, rgba(248, 113, 113, 0.12), transparent 28%),
        linear-gradient(180deg, #fff7ed, #ffffff);
}

html[data-theme="light"] .support-widget-header strong,
html[data-theme="light"] .support-widget-form textarea,
html[data-theme="light"] .support-widget-search-result {
    color: #0f172a;
}

html[data-theme="light"] .support-widget-header p,
html[data-theme="light"] .support-widget-hint,
html[data-theme="light"] .support-widget-search-result small {
    color: #64748b;
}

html[data-theme="light"] .support-widget-message.bot,
html[data-theme="light"] .support-widget-close,
html[data-theme="light"] .support-widget-secondary,
html[data-theme="light"] .support-widget-form textarea,
html[data-theme="light"] .support-widget-autocomplete {
    background: #f8fafc;
    border-color: #dbe4ee;
    color: #0f172a;
}

html[data-theme="light"] .support-widget-option {
    background: #fff1d6;
    border-color: #f59e0b;
    color: #9a3412;
}

html[data-theme="light"] .support-widget-option:hover {
    background: #fed7aa;
    border-color: #ea580c;
    color: #7c2d12;
}

@media (max-width: 640px) {
    .support-widget {
        right: 12px;
        left: auto;
        bottom: 12px;
        align-items: flex-end;
    }

    .support-widget-toggle {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
        box-shadow: 0 16px 32px rgba(239, 68, 68, 0.32);
    }

    .support-widget-toggle span {
        display: none;
    }

    .support-widget-toggle i {
        font-size: 1.1rem;
    }

    .support-widget-panel {
        width: min(380px, calc(100vw - 24px));
        max-height: calc(100vh - 88px);
    }
}
