* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-from: #0d0d1a;
    --bg-via: #11101f;
    --bg-to: #0a0a14;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --primary-color: #7c3aed;
    --primary-dark: #db2777;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
}

/* Светлая тема */
body.light-theme {
    --bg-from: #f0eeff;
    --bg-via: #f5f0ff;
    --bg-to: #eae4ff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(124, 58, 237, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --text-primary: #111111;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.bg-gradient {
    background: linear-gradient(to bottom right, var(--bg-from), var(--bg-via), var(--bg-to));
    transition: background 0.5s ease;
}

.relative {
    position: relative;
}

.min-h-screen {
    min-height: 100vh;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.overflow-hidden {
    overflow: hidden;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-0 {
    z-index: 0;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.12);
}

.sun-icon {
    color: #fcd34d;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    padding: 2rem 0;
    opacity: 1;
    transform: scale(1.2);
}

.header-section {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 1;
    animation: fadeIn 0.6s ease;
    margin-bottom: 2rem;
}

.counter-badge {
    width: 280px;
    height: 96px;
    background: rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: 
        inset 0 1px 2px rgba(124, 58, 237, 0.2),
        0 0 0 1.5px rgba(124, 58, 237, 0.4),
        0 8px 32px rgba(124, 58, 237, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    padding: 0 1rem;
}

.counter-display {
    display: flex;
    gap: 0.15rem;
}

.digit-slot {
    height: 28px;
    overflow: hidden;
}

.digit {
    height: 28px;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-title {
    margin-top: 0.25rem;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    white-space: nowrap;
    position: relative;
    padding-bottom: 0.75rem;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.generator-form {
    margin-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
}

.input-row {
    display: flex;
    gap: 0.75rem;
    opacity: 1;
    animation: fadeIn 0.6s ease 0.2s both;
}

.input-group {
    flex: 1;
}

.input-group.small {
    width: 80px;
    flex: 0 0 80px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    padding-left: 0.25rem;
}

.glass-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    -moz-appearance: textfield;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.glass-input::placeholder {
    color: var(--text-muted);
}

.glass-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}

/* Убираем стрелки в Chrome, Safari, Edge, Opera */
.glass-input::-webkit-outer-spin-button,
.glass-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.option-card {
    opacity: 1;
    animation: fadeIn 0.6s ease 0.3s both;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px var(--glass-shadow);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.toggle-label:hover {
    background: rgba(255, 255, 255, 0.08);
}

.toggle-switch {
    position: relative;
    width: 2.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

.toggle-text {
    flex: 1;
}

.toggle-title {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.25;
}

.generate-btn {
    width: 100%;
    padding: 1.25rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    animation: fadeIn 0.6s ease 0.4s both;
}

.generate-btn:hover {
    transform: translateY(-2px);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.results-container {
    padding: 1.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px var(--glass-shadow);
    min-height: 120px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.6s ease 0.5s both;
}

/* Скроллбар */
.results-container::-webkit-scrollbar {
    width: 6px;
}
.results-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}
.results-container::-webkit-scrollbar-thumb {
    background: rgba(124,58,237,0.5);
    border-radius: 3px;
}

.results-container.hidden {
    display: none;
}

.numbers-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    width: 100%;
}

.number-item {
    font-size: 1.75rem;
    font-weight: bold;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--text-primary);
    animation: numberPop 0.4s ease;
}

@keyframes numberPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px var(--glass-shadow);
    opacity: 1;
    animation: fadeIn 0.6s ease 0.6s both;
}

.info-content {
    flex: 1;
}

.info-date {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-bottom: 0.125rem;
}

.info-time {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.timezone-badge {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    color: var(--primary-color);
}

.footer-section {
    padding-bottom: 0;
    margin-top: 1.5rem;
    opacity: 1;
    animation: fadeIn 0.6s ease 0.7s both;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #c4b5fd;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
}

.footer-link svg {
    width: 1rem;
    height: 1rem;
}

.copyright {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

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

/* QR-код */
.qr-container {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    animation: slideIn 0.5s ease;
}

.qr-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 250px;
}

.qr-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.qr-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.qr-placeholder svg {
    color: var(--primary-color);
}

.qr-info {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.download-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.4);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes numberPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--bg-from), var(--bg-via), var(--bg-to));
}

.from-\[\#0d0d1a\] {
    --tw-gradient-from: #0d0d1a;
}

.via-\[\#11101f\] {
    --tw-gradient-via: #11101f;
}

.to-\[\#0a0a14\] {
    --tw-gradient-to: #0a0a14;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* Адаптивность */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .input-row {
        flex-wrap: wrap;
    }
    
    .input-group.small {
        width: 100%;
        flex: 1;
    }
    
    .qr-container {
        top: auto;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .qr-card {
        max-width: calc(100vw - 2rem);
    }
}

/* ��������� ���� */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.modal-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-content ul, .modal-content ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
}

.modal-content strong {
    color: var(--primary-color);
}


/* ������� ���� - ����� ��� ��� ������ ������ */
body.light-theme .footer-link {
    background: rgba(255, 255, 255, 0.9);
    color: #111111;
    font-weight: 500;
}

body.light-theme .footer-link:hover {
    background: rgba(255, 255, 255, 1);
}

/* Светлая тема - белый фон для часов и чисел */
body.light-theme .info-card,
body.light-theme .results-container {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .number-item {
    color: #111111;
}

body.light-theme .info-date,
body.light-theme .info-time {
    color: #111111;
    font-weight: 600;
}

body.light-theme .timezone-badge {
    background: rgba(124, 58, 237, 0.15);
    color: #111111;
    font-weight: 600;
}

/* ������� ���� - ����� ��� ��� ���������� ���� */
body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.95);
}

body.light-theme .modal-content h2,
body.light-theme .modal-content h3 {
    color: #111111;
}

body.light-theme .modal-content p,
body.light-theme .modal-content li {
    color: #374151;
}

/* Поля формы обратной связи в светлой теме */
body.light-theme #fbName,
body.light-theme #fbEmail,
body.light-theme #fbMessage {
    background: rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #111111 !important;
}

body.light-theme #fbName::placeholder,
body.light-theme #fbEmail::placeholder,
body.light-theme #fbMessage::placeholder {
    color: #6b7280 !important;
}

/* ������ �������� ��� ���������� ���� "�������� �����" */
.modal-close-contact {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-contact:hover {
    color: var(--text-primary);
}

/* ������ ���� */
.moon-icon {
    color: #fbbf24;
}

/* ������ ���������� ��������� */
.finish-btn {
    width: 100%;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.finish-btn:hover {
    transform: translateY(-2px);
}

/* ���� �������� ������ */
.summary-block {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.summary-info {
    flex: 1;
    min-width: 250px;
}

.summary-info h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.summary-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.hash-text {
    font-family: monospace;
    font-size: 0.875rem;
    word-break: break-all;
    color: var(--primary-color);
}

.summary-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px dashed var(--glass-border);
}

.qr-placeholder svg {
    color: var(--text-secondary);
}

.download-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

/* ������� ���� ��� ������ */
body.light-theme .summary-block {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .summary-info h3,
body.light-theme .summary-info p {
    color: #111111;
}

body.light-theme .hash-text {
    color: var(--primary-color);
}

/* ������������� ����� ������� */
.hidden {
    display: none !important;
}

/* ����������� ��������� ������� */
.info-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.info-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-time-moscow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timezone-badge-small {
    padding: 0.25rem 0.5rem;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

body.light-theme .timezone-badge-small {
    background: rgba(124, 58, 237, 0.15);
    color: #111111;
    font-weight: 600;
}

/* ������� ���� - ����� ����� �� ������� */
body.light-theme .generate-btn,
body.light-theme .finish-btn {
    color: #ffffff;
}

/* ���� �� ������ ����� ��������� */
.info-time-row .info-date {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}



/* ������������ ����������� ����� �������� � ����� */
.info-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.info-time::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    margin-left: 1rem;
    vertical-align: middle;
}

.info-date::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    margin-left: 1rem;
    vertical-align: middle;
}

/* ��������� ������ ��� ������������ */
.info-time,
.info-time-moscow,
.info-time-row .info-date {
    font-size: 1.25rem;
}

/* Hash display */
.hash-display {
    margin-top: 0.5rem;
    font-family: monospace;
    font-size: 0.675rem;
    color: var(--text-secondary);
    word-break: break-all;
    text-align: center;
}

body.light-theme .hash-display {
    color: #6b7280;
}

/* ����������� ����� ������� ������ */
.timezone-badge {
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.timezone-badge-small {
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

body.light-theme .timezone-badge,
body.light-theme .timezone-badge-small {
    background: none;
    color: var(--primary-color);
    font-weight: 600;
}

/* ���������� ������� ������� � ���� �� 10% */
.info-time,
.info-time-moscow,
.info-time-row .info-date {
    font-size: 1.125rem;
}

/* ������� ��������� �������� ������� */
.info-time {
    color: var(--text-primary);
}

/* ������������ ���� �� ������ � �������� */
.info-time-row {
    align-items: baseline;
}

/* Ҹ���� ���� - ����� ����� � ������ */
body:not(.light-theme) .footer-link {
    color: #ffffff;
}

body:not(.light-theme) .footer-link svg {
    color: #ffffff;
}

/* ������������ ����� ��� ������� - ������� �������� */
.info-time span:first-child,
.info-time-moscow span:first-child {
    font-family: 'Courier New', Courier, monospace;
    font-variant-numeric: tabular-nums;
}

/* ��������� ����� ������� ��� ������������ */
.info-time,
.info-time-moscow {
    font-size: 1rem;
}

.info-time-row .info-date {
    font-size: 1rem;
}

.timezone-badge,
.timezone-badge-small {
    font-size: 1rem;
}

/* ��� ������ ��� ������� */
.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-time-moscow-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

/* ���������� ���������� ������ ������ */
.info-time,
.info-time-moscow {
    font-size: 1.125rem;
}

.info-time-row .info-date {
    font-size: 1.125rem;
}

.timezone-badge,
.timezone-badge-small {
    font-size: 1.125rem;
}

/* ����� ��������� - ����� � ���� �����, ���������� ������ */
.info-local-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.info-time-row .info-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ���� ������: ������� - ���� - ���������� */
.info-time-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: nowrap;
}

.info-time-row .info-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    flex-shrink: 0;
}

/* ��������� ������ ������� ��� ������������ */
.info-time,
.info-time-moscow {
    font-size: 1rem;
    flex-shrink: 0;
}

.timezone-badge,
.timezone-badge-small {
    font-size: 0.875rem;
}

/* ���� ����� �� ������ */
.info-time-row .info-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    flex-shrink: 0;
    flex-grow: 1;
}

/* ══════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ══════════════════════════════════════ */

/* Планшет */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .input-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .input-group {
        width: 100%;
    }

    .input-group.small {
        width: 100%;
    }

    .generate-btn {
        font-size: 1rem;
        padding: 0.875rem;
    }

    .number-item {
        font-size: 1.4rem;
    }

    .info-time {
        font-size: 1.2rem;
    }

    .info-time-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .summary-block {
        flex-direction: column;
    }

    .summary-actions {
        width: 100%;
    }

    .download-btn {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 1.5rem 1.25rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .hash-display {
        font-size: 0.6rem;
    }
}

/* Мобильный */
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .header-section {
        padding: 1rem 0 0.5rem;
    }

    .main-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .generator-form {
        padding: 0;
        gap: 0.75rem;
    }

    .glass-input {
        font-size: 1rem;
        padding: 0.7rem 0.9rem;
    }

    .generate-btn,
    .finish-btn {
        font-size: 0.95rem;
        padding: 0.8rem;
        border-radius: 14px;
    }

    .option-card {
        padding: 0.75rem 1rem;
    }

    .toggle-title {
        font-size: 0.875rem;
    }

    .number-item {
        font-size: 1.25rem;
    }

    .results-container {
        min-height: 90px;
        max-height: 240px;
        padding: 1rem 0.75rem;
    }

    .info-card {
        padding: 0.75rem 1rem;
    }

    .info-time {
        font-size: 1.1rem;
    }

    .info-date {
        font-size: 0.6rem;
    }

    .timezone-badge {
        font-size: 0.9rem;
    }

    .summary-block {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .summary-info h3 {
        font-size: 1.1rem;
    }

    .summary-info p {
        font-size: 0.85rem;
    }

    .download-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    .footer-section {
        padding-top: 1rem;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .footer-link {
        font-size: 0.8rem;
    }

    .copyright {
        font-size: 0.75rem;
    }

    /* Модальные окна на мобильном */
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        max-height: 80vh;
        overflow-y: auto;
        padding: 1.25rem 1rem;
    }

    .modal {
        align-items: flex-end;
    }

    /* Форма обратной связи */
    #feedbackForm input,
    #feedbackForm textarea {
        font-size: 1rem;
    }

    /* Анимация создания */
    .creating-box {
        padding: 2rem 1.5rem;
        max-width: 300px;
    }

    /* Счётчик */
    #usedCounter {
        font-size: 0.8rem;
    }

    /* Hash display */
    .hash-display {
        font-size: 0.55rem;
        word-break: break-all;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .main-title {
        font-size: 1.1rem;
    }

    .number-item {
        font-size: 1.1rem;
    }

    .generate-btn {
        font-size: 0.875rem;
    }
}

/* ══════════════════════════════════════
   МОБИЛЬНЫЙ БЛОК ВРЕМЕНИ — ФИНАЛЬНАЯ ВЕРСИЯ
   ══════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Блок времени ── */
    .info-card {
        padding: 0.875rem 1rem;
    }

    .info-time-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.2rem !important;
        width: 100%;
    }

    /* Убираем вертикальные полосы-разделители */
    .info-time::after,
    .info-date::after {
        display: none !important;
    }

    /* Строка 1: местное время + UTC */
    .info-time {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        order: 1;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Строка 2: дата */
    .info-time-row .info-date,
    #currentDate {
        display: block !important;
        text-align: center !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        order: 2;
        width: 100%;
        margin: 0.1rem 0 !important;
        padding: 0 !important;
        border: none !important;
        background: linear-gradient(135deg, #7c3aed, #db2777);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 0.05em;
    }

    /* Строка 3: московское время + MSK */
    .info-time-moscow {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        order: 3;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Бейджи UTC/MSK — одинаковый размер */
    .timezone-badge,
    .timezone-badge-small {
        font-size: 0.75rem !important;
        padding: 2px 6px !important;
    }

    /* ── Футер — каждая кнопка на новой строке по центру ── */
    .footer-links {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .footer-link {
        width: 100%;
        max-width: 260px;
        justify-content: center !important;
    }
}
