:root {
    --primary: #7DD3FC;
    --primary-dark: #38BDF8;
    --secondary: #7DD3FC;
    --danger: #EF4444;
    --bg-dark: #000000;
    --bg-medium: #0A0A0A;
    --bg-light: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #737373;
    --border: #262626;
    --accent: #7DD3FC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.container {
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Screens */
.screen {
    display: none;
    width: 100%;
    height: 100%;
}

.screen.active {
    display: flex;
}

/* Auth Screen */
#auth-screen {
    justify-content: center;
    align-items: center;
}

.auth-box {
    background: var(--bg-dark);
    padding: 3rem 2rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.logo {
    margin-bottom: 3rem;
}

.logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-medium);
}

.auth-form input::placeholder {
    color: var(--text-secondary);
}

.btn-primary, .btn-secondary, .btn-danger {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

.divider {
    margin: 1.25rem 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border);
}

.divider span {
    background: var(--bg-dark);
    padding: 0 1rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.recovery-section {
    margin-top: 1.5rem;
}

.recovery-section textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    min-height: 100px;
    margin-bottom: 1rem;
    resize: vertical;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    margin-top: 0.5rem;
}

.hidden {
    display: none !important;
}

/* Chat Screen */
#chat-screen {
    background: var(--bg-dark);
    flex-direction: column;
}

.sidebar {
    width: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

.sidebar.hidden-mobile {
    display: none;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 70px;
    background: var(--bg-dark);
}

.logo-header {
    height: 32px;
    width: auto;
}

.app-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.user-profile-bar {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-medium);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.user-status {
    font-size: 0.8rem;
    color: var(--secondary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.user-info span {
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
    color: var(--text-secondary);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn:active {
    background: var(--bg-light);
    color: var(--text-primary);
}

.search-bar {
    padding: 0.875rem 1.25rem;
}

.search-bar input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-medium);
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.contact-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 72px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.contact-item:active {
    background: var(--bg-medium);
}

.contact-item.active {
    background: var(--bg-light);
}

.contact-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.contact-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10B981;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.contact-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    position: relative;
}

.contact-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.contact-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.contact-menu-btn svg {
    width: 20px;
    height: 20px;
}

.contact-menu-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.contact-menu-btn:active {
    background: var(--bg-medium);
    transform: scale(0.95);
}

.contact-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.contact-last-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    flex: 1;
}

.nav-item.active {
    color: var(--accent);
}

.nav-icon {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item:active {
    transform: scale(0.95);
}

/* Chat Area */
.chat-area {
    width: 100%;
    display: none;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

.chat-area.active-mobile {
    display: flex;
}

.welcome-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    padding: 2rem;
    text-align: center;
}

.welcome-screen svg {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.welcome-screen h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.welcome-screen p {
    font-size: 0.95rem;
}

.active-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
    min-height: 60px;
}

.back-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.25rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.back-btn svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-btn:active {
    background: rgba(125, 211, 252, 0.1);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.chat-header-actions {
    display: flex;
    gap: 0.25rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.contact-info > div {
    min-width: 0;
    flex: 1;
}

.contact-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.status-dot.online {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-text {
    text-transform: capitalize;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.encryption-indicator {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(125, 211, 252, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.7;
}

.encryption-indicator svg {
    width: 14px;
    height: 14px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sync-keys-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.sync-keys-btn:active {
    transform: rotate(180deg);
}

.message {
    max-width: 75%;
    padding: 0.625rem 0.875rem;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.4;
}

.message.sent {
    align-self: flex-end;
    background: var(--accent);
    color: var(--bg-dark);
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.message.received {
    align-self: flex-start;
    background: var(--bg-light);
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.25rem;
    display: block;
}

.message.sent .message-time {
    color: var(--bg-dark);
}

.message.received .message-time {
    color: var(--text-secondary);
}

.message-input-area {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.625rem;
    background: var(--bg-dark);
    align-items: flex-end;
}

#message-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 22px;
    color: var(--text-primary);
    resize: none;
    font-family: inherit;
    font-size: 16px; /* Prevents zoom on iOS */
    max-height: 120px;
    min-height: 44px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

#message-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-medium);
}

#message-input::placeholder {
    color: var(--text-secondary);
}

.btn-send {
    padding: 0;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-send svg {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-left: 2px;
}

.btn-send:active {
    transform: scale(0.95);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-medium);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-bottom: none;
    -webkit-overflow-scrolling: touch;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-medium);
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 500;
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-modal svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.close-modal:active {
    background: var(--bg-light);
}

.modal-body {
    padding: 1.5rem;
}

.setting-item {
    margin-bottom: 2rem;
}

.setting-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.id-display {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.id-display code {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.85rem;
    overflow-x: auto;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-small:hover {
    opacity: 0.9;
}

.warning {
    color: #FFA502;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

#recovery-key-display {
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    min-height: 100px;
    margin-bottom: 1rem;
    font-family: monospace;
}

#add-contact-modal input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 🆕 MESSAGGI DI SISTEMA TOGGL */
.message.system-message {
    max-width: 85%;
    background: transparent;
    padding: 1rem 0.5rem;
    align-self: center;
    margin: 0.5rem auto;
    border-radius: 0;
}

.system-message-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(125, 211, 252, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.toggl-logo-small {
    width: 24px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* 🆕 TOAST NOTIFICATIONS */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-light);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification svg {
    width: 24px;
    height: 24px;
    color: #10B981;
    flex-shrink: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast-notification span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.toast-notification strong {
    color: var(--accent);
    font-weight: 600;
}

/* 🆕 PENDING MESSAGE INDICATOR */
.message.pending {
    opacity: 0.7;
}

.message.pending::after {
    content: '⏱️';
    margin-left: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* 🆕 PUSH NOTIFICATIONS SETTINGS */
.info-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.push-status {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.push-status span {
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-notification.toast-info svg {
    color: var(--accent);
}

.toast-notification.toast-success svg {
    color: #10B981;
}

/* 🆕 CONTEXT MENU */
.context-menu {
    position: fixed;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    min-width: 180px;
    overflow: hidden;
}

.context-menu-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background: var(--bg-medium);
}

.context-menu-item:active {
    background: var(--bg-dark);
}

.context-menu-danger {
    color: var(--danger);
}

.context-menu-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* 🆕 PIN INDICATOR */
.pin-indicator {
    font-size: 0.85rem;
    margin-left: 0.25rem;
    opacity: 0.8;
}

/* 🆕 USER PROFILE CLICKABLE */
.user-profile-bar {
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-profile-bar:hover {
    background: var(--bg-light);
}

.user-profile-bar:active {
    background: var(--bg-dark);
}

/* 🆕 MODAL SMALL */
.modal-small {
    max-width: 400px;
    margin: 0 auto;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-actions button {
    flex: 1;
}

/* 🆕 TAB ACTIVE STATE */
.nav-item[data-tab="contacts"].active {
    color: var(--accent);
}

/* 🤖 AI COMPONENTS */
.ai-action-btn {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.ai-action-btn:hover {
    background: var(--bg-medium);
    border-color: var(--accent);
}

.ai-action-btn:active {
    transform: scale(0.98);
}

#ai-result-content {
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    max-height: 400px;
    overflow-y: auto;
}

.ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-secondary);
}

.ai-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
