.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.15s ease-out;
}

.popup {
    background: #181a1b;
    padding: 20px;
    border: 2px solid #814d85;
    max-width: 90%;
    width: 400px;
    position: relative;
    animation: tvOn 0.2s ease-out;
    overflow: hidden;
}

.popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 15%, 
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
}

.popup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}


.popup-title {
    display: flex;
    justify-content: space-between;
    font-family: Simple;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #814d85;
}

.popup-close {
    cursor: pointer;
    font-family: Mix;
    font-size: 13px;
    color: #5c375f;
}

.crypto-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.crypto-button {
    font-family: 'Mix', serif;
    padding: 8px 16px;
    background-color: #181a1b;
    color: #765878;
    border: 2px solid #814d85;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
}

.crypto-button:active {
    transform: translateY(2px);
    background-color: #1f1f1f;
}

.crypto-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.06) 3px,
        rgba(255, 255, 255, 0.06) 6px
    );
    pointer-events: none;
    transition: background-position 0.1s linear;
}

.crypto-button:hover::after {
    animation: scanlines 0.15s linear infinite;
}

.crypto-button.selected {
    background-color: #5c375f;
    color: white;
}

.crypto-button:hover {
    background-color: #7a4a7d;
    color: white;
    transform: translateY(1px);
}

.crypto-warning {
    display: none;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid #856d14;
    color: #ffc107;
    font-family: 'Mix', serif;
    font-size: 14px;
    line-height: 1.4;
}

.crypto-warning.visible {
    display: block;
}

.success-message {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    font-family: 'Mix', serif;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2000;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2), 
                0 4px 20px rgba(76, 175, 80, 0.3);
    text-align: center;
    backdrop-filter: blur(4px);
    animation: float 1s ease-out;
}

.pgp-toggle {
    color: rgb(215, 215, 215) !important;
}

.pgp-key-toggle {
    color: rgb(215, 215, 215) !important;
    cursor: pointer;
    font-family: Gohu;
    font-size: 18px;
}

.pgp-help-toggle {
    color: rgb(215, 215, 215) !important;
    cursor: pointer;
    font-family: Gohu;
    font-size: 18px;
    margin-right: 0px !important;
    background-color: #572f2f !important;
    border: 2px solid #8a4949 !important;
    text-transform: none !important;
}

.pgp-key-toggle:hover {
    color: #ff69b4 !important;
}


.pgp-input {
    width: 100%;
    margin: 10px 0;
    font-family: 'Mix', serif;
    font-size: 0.8em;
    padding: 8px;
    border: 1px solid #814d85;
    background: #181a1b;
    color: white;
    resize: vertical;
}

.encrypt-button {
    font-family: 'Mix', serif;
    padding: 8px 16px;
    background-color: #5c375f;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: all 0.15s;
}

.encrypt-button:hover {
    background-color: #7a4a7d;
}

.region-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.region-button {
    font-family: 'Mix', serif;
    padding: 8px 16px;
    background-color: #181a1b;
    color: #765878;
    border: 2px solid #814d85;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
}

.region-button:active {
    transform: translateY(2px);
    background-color: #1f1f1f;
}

.region-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.06) 3px,
        rgba(255, 255, 255, 0.06) 6px
    );
    pointer-events: none;
    transition: background-position 0.1s linear;
}

.region-button:hover::after {
    animation: scanlines 0.15s linear infinite;
}

.region-button.selected {
    background-color: #5c375f;
    color: white;
}

.region-button:hover {
    background-color: #7a4a7d;
    color: white;
    transform: translateY(1px);
}


.order-button {
    font-family: 'Mix', serif;
    padding: 12px 24px;
    background-color: #5c375f;
    margin-right: 15px;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.order-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.06) 3px,
        rgba(255, 255, 255, 0.06) 6px
    );
    pointer-events: none;
    transition: background-position 0.1s linear;
}

.order-button:hover::after {
    animation: scanlines 0.15s linear infinite;
}

.order-button:hover {
    background-color: #7a4a7d;
    color: white;
    transform: translateY(1px);
}

.order-button:disabled {
    background-color: #3d263f;
    cursor: not-allowed;
    opacity: 0.6;
}

.order-button:disabled:hover {
    background-color: #3d263f;
}