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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 8px;
    font-size: 28px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

.input-section {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #4facfe;
}

button {
    background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.output-section {
    margin-top: 20px;
}

#qrcode {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

#qrcode img {
    display: block;
}

#download-btn {
    margin-top: 10px;
}

footer {
    margin-top: 40px;
    color: #999;
    font-size: 14px;
}

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

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

.ad-container {
    width: 100%;
    max-width: 728px;
    text-align: center;
}

.ad-top {
    margin-bottom: 20px;
}

.ad-bottom {
    margin-top: 20px;
}

.ad-placeholder {
    background: rgba(255,255,255,0.3);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.privacy-page {
    text-align: left;
    max-width: 600px;
}

.privacy-page h1 {
    text-align: center;
    margin-bottom: 30px;
}

.policy-content h2 {
    color: #333;
    font-size: 18px;
    margin: 20px 0 10px;
}

.policy-content p {
    color: #666;
    line-height: 1.6;
}

.privacy-page footer {
    text-align: center;
}
