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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    padding: 40px;
    max-width: 100%;
    width: 100%;
    max-width: 600px;
    border: 1px solid #404040;
}

h1 {
    color: #e0e0e0;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
    background-color: #222;
}

input:disabled {
    background-color: #252525;
    cursor: not-allowed;
    opacity: 0.5;
    color: #888;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn:hover {
    background: #252525;
    border-color: #555;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    background: #1a1a1a;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: #1a1a1a;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.message.show {
    display: block;
}

.message.success {
    background-color: #1a3a1a;
    color: #90ee90;
    border: 1px solid #2d5a2d;
}

.message.error {
    background-color: #3a1a1a;
    color: #ff6b6b;
    border: 1px solid #5a2d2d;
}

.message.loading {
    background-color: #2a2a3a;
    color: #a0a0e0;
    border: 1px solid #3a3a5a;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    background: #2d2d2d;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid #404040;
}

.spinner {
    border: 4px solid #404040;
    border-top: 4px solid #888;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 500;
}

.version-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    color: rgba(224, 224, 224, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 1000;
    font-family: 'Courier New', monospace;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 327px;
    height: 54px;
    border-radius: 11.54px;
    background: #000000;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, width 0.3s ease, height 0.3s ease;
}

.floating-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.floating-btn:active {
    transform: translateX(-50%) translateY(0);
}

.snackbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    max-width: 90%;
    width: 400px;
    text-align: center;
    line-height: 1.6;
    font-size: 14px;
    display: none;
    border: 1px solid #404040;
}

.snackbar.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .snackbar {
        width: calc(100% - 40px);
        max-width: none;
        padding: 16px 20px;
        font-size: 13px;
    }
    
    body {
        padding: 10px;
    }

    .container {
        padding: 30px 20px;
        border-radius: 8px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .version-info {
        font-size: 10px;
        padding: 4px 8px;
        bottom: 5px;
        right: 5px;
    }

    .floating-btn {
        width: calc(100% - 40px);
        max-width: 327px;
        bottom: 15px;
    }
}

