:root {
    --color--dark: #2d050b;
    --color--classic: #2d050b;
    --color--midnight: #000000;
}

.theme-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 16, 10, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    font-family: var(--font--main);
}

.theme-popup.show {
    opacity: 1;
    pointer-events: all;
}

.theme-container {
    background-color: var(--color--dark);
    border: 1px solid var(--color--light-0-3);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.theme-popup.show .theme-container {
    transform: translateY(0);
}

.theme-title {
    font-size: var(--type--h3);
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--color--light);
    line-height: 122%;
}

.theme-description {
    font-size: var(--type--body-small);
    margin-bottom: 30px;
    color: var(--color--light-0-8);
    line-height: 110%;
}

.theme-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.theme-option {
    flex: 1;
    max-width: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color--light-0-3);
}

.theme-option:hover {
    transform: translateY(-5px);
}

.theme-preview {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--type--body-small);
    font-weight: 500;
    color: var(--color--light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.btn-skip {
    background: none;
    border: none;
    color: var(--color--light-0-5);
    font-size: var(--type--body-tiny);
    margin-top: 20px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
    font-family: var(--font--main);
}

.btn-skip:hover {
    color: var(--color--light);
}

.theme-preview {
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    padding: 20px;
}

.theme-icon {
    margin-bottom: 15px;
    color: white;
}

.theme-icon svg {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.theme-name {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.classic-preview {
    background: linear-gradient(135deg, #580b18, #2d050b);
}

.midnight-preview {
    background: linear-gradient(135deg, #000000, #2c2c35);
}

.theme-option {
    flex: 1;
    max-width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.theme-option:active {
    transform: translateY(-2px);
}