:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-accent: #ff9900;
    --color-text: #f0f0f0;
    --color-text-dark: #a0a0a0;
    --color-bg-start: #2a2a2a;
    --color-bg-end: #1c1c1c;
    --color-success: #2ecc71;
    --color-error: #e74c3c;
    --glass-bg: rgba(255, 153, 0, 0.07);
    --glass-border: rgba(255, 153, 0, 0.2);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: linear-gradient(45deg, var(--color-bg-start), var(--color-bg-end));
    background-size: 400% 400%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
}

h1, h2 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.subtitle,
.stat-label,
.instruction-text {
    color: var(--color-text-dark);
    font-size: 14px;
}

.view {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.glass-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.wizard-container {
    width: 100%;
    max-width: 900px;
    text-align: left;
}

.wizard-container h1,
.wizard-container h2 {
    justify-content: flex-start;
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.wizard-step {
    animation: step-fade-in 0.5s ease-in-out;
}

.login-container {
    max-width: 450px;
}

.passport-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 15px;
}

.input-group {
    position: relative;
    margin: 15px 0;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dark);
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    text-align: center;
    transition: all 0.3s ease;
}

.input-group input[type="text"] {
    
    text-align: center;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.3);
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--color-accent);
    color: var(--color-bg-start);
    font-family: var(--font-heading);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-fullwidth {
    margin-top: 30px;
}

.button-link {
    background: none;
    color: var(--color-text-dark);
    width: auto;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 14px;
    font-family: var(--font-body);
}

.button-link:hover:not(:disabled) {
    color: var(--color-accent);
    transform: none;
    box-shadow: none;
}

.message {
    width: 100%;
    min-width: 0;
    min-height: 2.8em;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-message { color: var(--color-error); }
.status-message { color: var(--color-success); }

.divider {
    border: none;
    height: 1px;
    background-color: var(--glass-border);
    margin: 30px 0;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-bg-start);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.login-container > * {
    animation: apear-from-bottom 0.5s ease-in-out backwards;
}
.login-container h1 { animation-delay: 0.1s; }
.login-container .login-logo-container { animation-delay: 0.2s; }
.login-container .input-group { animation-delay: 0.3s; }
.login-container button { animation-delay: 0.4s; }

.login-logo-container {
    margin: 0;
}

.login-logo-container img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

#instruction-step {
    display: flex;
    flex-direction: column;
}

#instruction-step h1 {
    margin-bottom: 15px;
}

#instruction-text {
    background: rgba(255, 0, 0, 0.05);
    border-left: 3px solid #5b0000;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
}

#photosensitivity-warning {
    background: rgba(183, 148, 246, 0.1);
    border-left: 3px solid #b794f6;
    padding: 12px 15px;
    border-radius: 0 6px 6px 0;
    line-height: 1.4;
    font-size: 12px;
    color: #b794f6;
    font-style: italic;
    margin-bottom: 20px;
    text-align: left;
    opacity: 0.9;
}

.stats-single {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.stat-item-center {
    margin: 10px;
    padding: 20px;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 200px;
}

.stat-item-center .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
}

#close-session-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    line-height: 0;
    transition: all 0.2s ease-in-out;
    margin-left: auto;
    width: 2.5rem;
    height: 2.5rem;
}

#close-session-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

#close-session-btn svg {
    width: 24px;
    height: 24px;
}

.auto-refresh-timer {
    font-size: 13px;
    color: var(--color-text-dark);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: fit-content;
}

#refresh-countdown {
    color: var(--color-accent);
    font-weight: 600;
}

#recording-step .camera-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    margin: 20px auto;
}

#recording-step video,
#recording-step canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#recording-step video { transform: scaleX(-1); }
#recording-step canvas { background: transparent; border: none; }

.passport-header {
    margin-bottom: 30px;
}

.passport-header h1 {
    margin-bottom: 10px;
}

.passport-preview {
    width: 300px;
    height: 200px;
    margin: 0 auto 30px;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    overflow: hidden;
}

.passport-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.upload-section {
    margin-bottom: 20px;
}

.upload-section .button-fullwidth {
    margin-bottom: 15px;
}

.passport-notification {
    display: block;
    /*background: rgba(46, 204, 113, 0.1);*/
    /*border: 1px solid rgba(46, 204, 113, 0.5);*/
    border-radius: 12px;
    padding: 15px 25px;
    margin: 20px 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease-out;
}

.passport-notification p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.passport-notification .feather-check-circle {
    width: 24px;
    height: 24px;
    /*stroke: var(--color-success);*/
    stroke-width: 2.5;
    flex-shrink: 0;
    /*filter: drop-shadow(0 0 5px rgba(46, 204, 113, 0.7));*/
}

.passport-notification .passport-thumbnail-container {
    width: 75px;
    
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /*border: 2px solid rgba(46, 204, 113, 0.6);*/
    background-color: var(--color-bg-end);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.passport-notification .passport-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.passport-notification .notification-text-group {
    /*color: var(--color-success);*/
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.reupload-button {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 153, 0, 0.15);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reupload-button:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-start);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

.reupload-button:active {
    transform: translateY(0) scale(1);
}

.reupload-button svg {
    width: 16px;
    height: 16px;
}

.files-table-container {
    margin: 20px 0;
    width: 100%;
}

.files-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.files-table thead {
    background: rgba(255, 153, 0, 0.1);
}

.files-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.files-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 153, 0, 0.1);
    color: var(--color-text);
    font-size: 14px;
    vertical-align: middle;
}

.files-table tbody tr:hover {
    background: rgba(255, 153, 0, 0.05);
    transition: background-color 0.2s ease;
}

.files-table tbody tr:last-child td {
    border-bottom: none;
}

.file-photo-container {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-image {
    max-width: 100px;
    max-height: 60px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.session-id {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--color-text-dark);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background-color: #6c757d; color: white; border: 1px solid #6c757d; }
.status-waiting { background: rgba(255, 193, 7, 0.2); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.3); }
.status-approved { background: rgba(46, 204, 113, 0.2); color: var(--color-success); border: 1px solid rgba(46, 204, 113, 0.3); }
.status-rejected { background: rgba(231, 76, 60, 0.2); color: var(--color-error); border: 1px solid rgba(231, 76, 60, 0.3); }
.status-unknown { background: rgba(108, 117, 125, 0.2); color: #6c757d; border: 1px solid rgba(108, 117, 125, 0.3); }

.file-resolution {
    color: var(--color-text-dark);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    background: rgba(255, 153, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.file-date {
    color: var(--color-text-dark);
    font-size: 13px;
}

.no-files-message {
    text-align: center;
    color: var(--color-text-dark);
    font-style: italic;
    padding: 40px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.upload-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.upload-modal-content h2 {
    margin-bottom: 20px;
    color: var(--color-accent);
}

.progress-container { margin: 30px 0; }

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #ffb84d);
    border-radius: 4px;
    width: 98%;
    transition: width 0.3s ease;
}

.progress-text { font-size: 18px; font-weight: 600; color: var(--color-accent); }
.upload-note { font-size: 14px; color: var(--color-text-dark); margin-top: 20px; font-style: italic; }

.countdown-overlay,
.recording-timer-overlay,
.instruction-overlay {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.countdown-overlay {
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
}

.countdown-number {
    font-size: 120px;
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(255, 153, 0, 0.8);
    animation: countdown-pulse 1s ease-in-out;
}

.recording-timer-overlay { top: 20px; right: 20px; z-index: 12; }

.recording-timer-number {
    font-size: 48px;
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.8);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 10px;
    animation: timer-pulse 1s ease-in-out;
}

.instruction-overlay {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.instruction-text-overlay {
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-text);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-family: var(--font-heading);
    text-align: center;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
    animation: instruction-appear 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes step-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes apear-from-bottom {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes countdown-pulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes timer-pulse {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes instruction-appear {
    0% { opacity: 0; transform: translateY(-20px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .glass-container {
        padding: 20px;
        margin: 10px 0;
        max-height: calc(100vh - 20px);
        width: calc(100% - 20px);
        max-width: none;
    }

    .upload-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    #recording-step .camera-container {
        max-width: 320px;
        aspect-ratio: 2 / 3;
        margin: 15px auto;
    }

    .files-table th,
    .files-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .files-table th:first-child,
    .files-table td:first-child { padding-left: 12px; }

    .files-table th:last-child,
    .files-table td:last-child { padding-right: 12px; }

    .session-id { font-size: 11px; }
    .status-badge { padding: 2px 8px; font-size: 10px; }
    .file-resolution { font-size: 10px; padding: 1px 4px; }
    .file-date { font-size: 11px; }
}

@media (max-width: 480px) {
    .files-table th:nth-child(4),
    .files-table td:nth-child(4),
    .files-table th:nth-child(6),
    .files-table td:nth-child(6) {
        display: none;
    }
}

.passport-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.preview-slot {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: var(--color-text-dark);
}

.preview-slot.filled {
    border-style: solid;
    border-color: var(--color-accent);
    cursor: default;
}

.preview-slot:not(.filled):hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.05);
}

.preview-slot .placeholder-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}
.preview-slot .placeholder-text {
    font-size: 13px;
    text-align: center;
}

.preview-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-slot .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.preview-slot.filled:hover .remove-btn {
    opacity: 1;
}

.preview-slot .remove-btn i {
    width: 16px;
    height: 16px;
}

.passport-notification-content {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}
.passport-notification-thumbnails {
    display: flex;
    gap: 10px;
}

.passport-notification .passport-thumbnail-container {
    width: 75px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(46, 204, 113, 0.6);
    background-color: var(--color-bg-end);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.passport-notification .passport-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#progress-widget-container {
    margin: 20px 0;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

#progress-widget-container.completed {
    background: rgba(46, 204, 113, 0.1); 
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}



.progress-messages {
    font-size: 14px;
    color: var(--color-text-dark);
    line-height: 1.6;
}

.progress-messages ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.progress-messages li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-messages li i {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-dark);
    flex-shrink: 0;
}

.progress-messages li.completed-task i {
    stroke: var(--color-success);
}

@media (max-width: 768px) {
    #progress-widget-container {
        padding: 15px;
        margin: 20px 0;
    }
    .progress-widget-title {
        font-size: 20px;
    }
    .progress-value {
        font-size: 3rem;
    }
    .stars-container .feather-star {
        width: 24px;
        height: 24px;
    }
    .progress-messages {
        font-size: 13px;
    }
}

.warning-message {
    color: var(--color-accent);
    background-color: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 4px;
    padding: 15px 0;
    margin-bottom: 20px;
    min-height: 0;
}

.warning-message strong {
    font-weight: 600;
    color: #ffb84d;
}

/* Стили для оверлея авто-входа */
#auto-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none; /* Скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

#auto-login-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#auto-login-overlay p {
    font-size: 1.2rem;
    margin: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Стили для уведомления о статусе паспортов --- */
.passport-status-grid {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap; /* Для мобильных устройств */
    width: 100%;
    margin-top: 10px;
}

.passport-status-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.passport-status-item img.passport-thumbnail {
    display: block;
    width: 100px;
    height: auto;
    border-radius: 6px;
}

.passport-status-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.passport-status-icon svg {
    width: 14px;
    height: 14px;
}

/* Цвета статусов */
.status-match { background-color: #28a745; color: white; }
.status-mismatch { background-color: #ffc107; color: #333; cursor: help; }
.status-processing { background-color: #17a2b8; color: white; }
.status-extra { background-color: #6c757d; color: white; }
.status-error { background-color: #dc3545; color: white; }


/* Стили для всплывающей подсказки с расхождениями */
.mismatch-tooltip {
    visibility: hidden;
    width: 280px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 110%;
    left: 50%;
    margin-left: -140px; /* Половина ширины */
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-size: 12px;
}

.mismatch-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.passport-status-icon.status-mismatch:hover .mismatch-tooltip {
    visibility: visible;
    opacity: 1;
}

.mismatch-tooltip h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}
.mismatch-tooltip ul {
    margin: 0;
    padding-left: 18px;
}
.mismatch-tooltip li {
    margin-bottom: 5px;
}
.mismatch-tooltip code {
    background-color: #555;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* Общий заголовок для блока с паспортами */
.passport-status-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.passport-status-title {
    font-weight: 500;
}

.passport-thumbnail-placeholder {
    width: 100px;
    height: 70px; /* Примерная высота, подберите под себя */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    border: 1px dashed rgba(255,255,255,0.3);
}
.passport-thumbnail-placeholder svg {
    width: 24px;
    height: 24px;
    color: rgba(255,255,255,0.5);
}
/* Дополнительные стили для улучшения интерфейса */


.files-table th:first-child,
.files-table td:first-child {
    width: 40px;
    text-align: center;
}

/* Стили для колонки действий */
.files-table th:last-child,
.files-table td:last-child {
    width: 80px;
    text-align: center;
}

.file-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стили для сетки карточек файлов */

.files-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 1200px) {
    .files-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .files-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .files-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Стили для карточки файла */
.file-card {
    background: rgb(0, 0, 0);
    border: 1px solid #000000;
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.file-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}


.file-card-image-container {
    position: relative;
    width: 100%;
    min-height: 100px;
    background: #535354;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #000000;
}

.file-card-placeholder i {
    width: 40px;
    height: 40px;
}

.file-card-status {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    max-width: 80px;
    overflow: hidden;
}

.file-card-status .status-icon {
    flex-shrink: 0;
}

.file-card-status .status-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
}

.file-card-status.status-waiting {
    background: #f39c12;
}

.file-card-status.status-approved {
    background: #b2ebca;
    color: #000000;
}

.file-card-status.status-rejected {
    background: #e74c3c;
}

.file-card-status.status-unknown {
    background: #95a5a6;
}

.file-card-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.file-card-name {
    flex: 1;
    min-width: 0;
}

.file-card-delete-emoji {
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    user-select: none;
    opacity: 0.7;
}

.file-card-delete-emoji:hover {
    transform: scale(1.2);
    opacity: 1;
}

.file-card-info {
    padding: 12px;
    background: rgb(0, 0, 0);
}

.file-card-name {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Стили для индивидуальных кнопок удаления (старые, для совместимости) */
.delete-single-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background-color 0.2s ease;
    min-width: 32px;
    height: 28px;
}

.delete-single-btn:hover {
    background: #c0392b;
}

.delete-single-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.delete-single-btn i {
    width: 14px;
    height: 14px;
}

/* Стили для модального окна подтверждения */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.confirm-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.confirm-modal h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 18px;
}

.confirm-modal p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.confirm-btn-danger {
    background: #e74c3c;
    color: white;
}

.confirm-btn-danger:hover {
    background: #c0392b;
}

.confirm-btn-secondary {
    background: #95a5a6;
    color: white;
}

.confirm-btn-secondary:hover {
    background: #7f8c8d;
}
/* Компактный виджет прогресса */
.compact-progress-widget {
    border-radius: 8px;
    margin-bottom: 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-title i {
    width: 16px;
    height: 16px;
    color: #ffc107;
}

.progress-value {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
}

.progress-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-task {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.compact-task.completed {
    background: #d4edda;
    border-color: #c3e6cb;
}

.task-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.task-icon {
    width: 14px;
    height: 14px;
    color: #6c757d;
    flex-shrink: 0;
}

.compact-task.completed .task-icon {
    color: #28a745;
}

.task-title {
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.task-progress {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 35px;
    text-align: center;
}

.compact-task.completed .task-progress {
    background: #28a745;
    color: white;
}

.task-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.task-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Компактный виджет прогресса */
.compact-progress-widget {
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.progress-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.progress-title i {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.progress-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

.progress-tasks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.compact-task {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.compact-task.completed {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

.task-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.task-icon {
    width: 16px;
    height: 16px;
    color: var(--color-text-dark);
    flex-shrink: 0;
}

.compact-task.completed .task-icon {
    color: var(--color-success);
}

.task-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text);
    flex: 1;
    line-height: 1.2;
}

.task-progress {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-dark);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 30px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.compact-task.completed .task-progress {
    background: rgba(46, 204, 113, 0.3);
    color: var(--color-success);
    border-color: rgba(46, 204, 113, 0.4);
}

.task-bar {
    height: 3px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.task-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-success));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.compact-task.completed .task-bar-fill {
    background: var(--color-success);
}

.task-tip {
    font-size: 9px;
    color: var(--color-text-dark);
    margin-top: 4px;
    line-height: 1.2;
    opacity: 0.8;
    font-style: italic;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .progress-tasks {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .progress-tasks {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .progress-value {
        font-size: 18px;
    }
    
    .compact-task {
        padding: 8px;
    }
    
    .task-title {
        font-size: 11px;
    }
}



.instructions-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 25px 0 30px;
    width: 100%;
    max-width: 800px;
}

.instruction-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.instruction-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.2);
    border-color: var(--color-accent);
}

.instruction-image-placeholder {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.instruction-item:hover .instruction-image-placeholder {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.instruction-image-placeholder i {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.instruction-image-placeholder span {
    font-size: 12px;
    font-style: italic;
}

.instruction-item p {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.instructions-modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.instructions-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
}

.instructions-btn i {
    width: 20px;
    height: 20px;
}

.instructions-btn-ready {
    background: var(--color-success);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.instructions-btn-ready:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.instructions-btn-cancel {
    background: var(--color-error);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.instructions-btn-cancel:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Адаптивность для модального окна с инструкциями */
@media (max-width: 768px) {
    .instructions-modal-content {
        padding: 25px 15px;
        width: 95%;
        max-width: 600px;
    }
    
    .instructions-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: 500px;
        width: 100%;
    }
    
    .instruction-image {
        height: 80px;
    }
    
    .instruction-item {
        padding: 10px;
    }
    
    .instruction-item p {
        font-size: 12px;
        margin-top: 8px;
        line-height: 1.3;
    }
    
    .instructions-modal-content h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .instructions-modal-buttons {
        margin-top: 25px;
        gap: 15px;
    }
    
    .instructions-btn {
        padding: 12px 20px;
        font-size: 16px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .instructions-modal-content {
        padding: 20px 10px;
        width: 98%;
        max-width: 400px;
    }
    
    .instructions-gallery {
        gap: 10px;
        max-width: 350px;
    }
    
    .instruction-image {
        height: 60px;
    }
    
    .instruction-item {
        padding: 8px;
    }
    
    .instruction-item p {
        font-size: 10px;
        margin-top: 5px;
    }
    
    .instructions-modal-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .instructions-btn {
        padding: 10px 15px;
        font-size: 14px;
        min-width: 80px;
    }
}

/* Дополнительные стили для улучшения интерфейса */




.files-table th:first-child,
.files-table td:first-child {
    width: 40px;
    text-align: center;
}

/* Стили для колонки действий */
.files-table th:last-child,
.files-table td:last-child {
    width: 80px;
    text-align: center;
}

.file-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стили для сетки карточек файлов */

.files-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 1200px) {
    .files-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .files-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .files-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Стили для карточки файла */
.file-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.file-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}


.file-card-image-container {
    position: relative;
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bbb;
}

.file-card-placeholder i {
    width: 40px;
    height: 40px;
}

.file-card-status {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    max-width: 80px;
    overflow: hidden;
}

.file-card-status .status-icon {
    flex-shrink: 0;
}

.file-card-status .status-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
}

.file-card-status.status-waiting {
    background: #f39c12;
}

.file-card-status.status-approved {
    background: #27ae60;
}

.file-card-status.status-rejected {
    background: #e74c3c;
}

.file-card-status.status-unknown {
    background: #95a5a6;
}

.file-card-delete {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: white;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-card:hover .file-card-delete {
    opacity: 1;
}

.file-card-delete:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.file-card-delete i {
    width: 16px;
    height: 16px;
}

.file-card-info {
    padding: 12px;
    background: white;
}

.file-card-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Стили для индивидуальных кнопок удаления (старые, для совместимости) */
.delete-single-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background-color 0.2s ease;
    min-width: 32px;
    height: 28px;
}

.delete-single-btn:hover {
    background: #c0392b;
}

.delete-single-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.delete-single-btn i {
    width: 14px;
    height: 14px;
}

/* Стили для модального окна подтверждения */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.confirm-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.confirm-modal h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 18px;
}

.confirm-modal p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.confirm-btn-danger {
    background: #e74c3c;
    color: white;
}

.confirm-btn-danger:hover {
    background: #c0392b;
}

.confirm-btn-secondary {
    background: #95a5a6;
    color: white;
}

.confirm-btn-secondary:hover {
    background: #7f8c8d;
}

/* Стили для секции инструкций */
.instructions-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.instructions-header h1 {
    color: var(--color-accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
}

.instructions-header h1 i {
    width: 32px;
    height: 32px;
}

.instructions-header p {
    color: var(--color-text-dark);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.instructions-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.instruction-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instruction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.instruction-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
}

.instruction-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--glass-bg);
}

.instruction-item p {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.instructions-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Специальные стили для кнопок в секции инструкций */
.instructions-buttons #instructions-ready-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #27ae60;
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instructions-buttons #instructions-ready-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    border-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.instructions-buttons #instructions-back-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instructions-buttons #instructions-back-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Адаптивность для инструкций */
@media (max-width: 768px) {
    .instructions-container {
        padding: 20px 15px;
    }
    
    .instructions-gallery {
        gap: 20px;
        max-width: 500px;
    }
    
    .instruction-image {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }
    
    .instruction-item {
        padding: 15px;
    }
    
    .instruction-item p {
        font-size: 12px;
    }
    
    .instructions-header h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .instructions-buttons {
        margin-top: 25px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .instructions-container {
        padding: 15px 10px;
    }
    
    .instructions-gallery {
        gap: 15px;
        max-width: 350px;
    }
    
    .instruction-image {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .instruction-item {
        padding: 12px;
    }
    
    .instruction-item p {
        font-size: 10px;
        margin-top: 5px;
    }
    
    .instructions-header h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
}


