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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #888;
    font-size: 1.1rem;
}

header a {
    color: #00d4ff;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
}

.proxy-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#url-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #333;
    border-radius: 10px;
    background: #0f0f1a;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

#url-input:focus {
    border-color: #00d4ff;
}

#url-input::placeholder {
    color: #666;
}

#go-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

#go-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

#go-btn:active {
    transform: translateY(0);
}

#go-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
}

.status.hidden {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
}

.info h3 {
    margin-bottom: 15px;
    color: #00d4ff;
}

.info ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.info li {
    margin-bottom: 8px;
    color: #ccc;
}

.info .note {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.info .note strong {
    color: #00d4ff;
}

footer {
    text-align: center;
    padding-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

footer a {
    color: #888;
    text-decoration: none;
}

footer a:hover {
    color: #00d4ff;
}

/* Content frame container */
.content-frame {
    width: 100%;
    height: 600px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.content-frame.hidden {
    display: none;
}

#proxy-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.info.hidden {
    display: none;
}
