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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0C0E12;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.lang-btn {
    padding: 6px 12px;
    background: rgba(240, 185, 11, 0.2);
    border: 1px solid #F0B90B;
    border-radius: 12px;
    color: #F0B90B;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #F0B90B;
    color: #0C0E12;
}

.lang-btn:hover {
    background: rgba(240, 185, 11, 0.4);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #F0B90B;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(240, 185, 11, 0.5);
    margin-bottom: 8px;
}

.subtitle {
    color: #888;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 10px;
    align-items: stretch;
    min-height: 600px;
    max-width: 900px;
    margin: 0 auto;
}

/* Left Panel - Preview */
.preview-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.preview-container {
    position: relative;
    background: linear-gradient(145deg, #1a1d23 0%, #0C0E12 100%);
    border: 2px solid #F0B90B;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(240, 185, 11, 0.2);
    width: 100%;
    max-width: 500px;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.preview-title {
    text-align: center;
    margin-bottom: 10px;
}

.preview-title h3 {
    color: #F0B90B;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.preview-title p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

#canvas {
    border: 2px solid rgba(240, 185, 11, 0.3);
    border-radius: 15px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #1a1d23;
    width: 400px;
    height: 400px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#canvas:hover {
    box-shadow: 0 15px 40px rgba(240, 185, 11, 0.3);
    transform: scale(1.02);
}


/* Right Panel - Controls */
.controls-panel {
    background: linear-gradient(145deg, #1a1d23 0%, #0C0E12 100%);
    border: 1px solid rgba(240, 185, 11, 0.3);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(240, 185, 11, 0.1);
}

.section-header h3 {
    color: #F0B90B;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.control-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    color: #F0B90B;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, #F0B90B 0%, #D9A30A 100%);
    color: #0C0E12;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
    text-align: center;
    border: 2px solid transparent;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.5);
    background: linear-gradient(135deg, #D9A30A 0%, #F0B90B 100%);
}

.upload-btn input[type="file"] {
    display: none;
}

/* Position Controls */
.position-controls {
    display: flex;
    gap: 10px;
}

.position-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(240, 185, 11, 0.05);
    border: 2px solid rgba(240, 185, 11, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.position-option:hover {
    background: rgba(240, 185, 11, 0.1);
    border-color: rgba(240, 185, 11, 0.4);
    transform: translateY(-2px);
}

.position-option input[type="radio"] {
    display: none;
}

.position-option input[type="radio"]:checked + .position-icon + span {
    color: #F0B90B;
    font-weight: 700;
}

.position-option input[type="radio"]:checked {
    background: rgba(240, 185, 11, 0.2);
    border-color: #F0B90B;
}

.position-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.position-option span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

/* Size Controls */
.size-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.size-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: rgba(240, 185, 11, 0.05);
    border: 2px solid rgba(240, 185, 11, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.size-option:hover {
    background: rgba(240, 185, 11, 0.1);
    border-color: rgba(240, 185, 11, 0.4);
    transform: translateY(-2px);
}

.size-option input[type="radio"] {
    display: none;
}

.size-option input[type="radio"]:checked + span {
    color: #F0B90B;
    font-weight: 700;
}

.size-option input[type="radio"]:checked {
    background: rgba(240, 185, 11, 0.2);
    border-color: #F0B90B;
}

.size-option span {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

/* Export Button */
.export-btn {
    width: 100%;
    background: linear-gradient(135deg, #F0B90B 0%, #D9A30A 100%);
    color: #0C0E12;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 185, 11, 0.6);
    background: linear-gradient(135deg, #D9A30A 0%, #F0B90B 100%);
}

/* Tips Section */
.tips-section {
    background: rgba(240, 185, 11, 0.05);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
}

.tips-header {
    color: #F0B90B;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tips-content {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .controls-panel {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .language-selector {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    #canvas {
        width: 300px;
        height: 300px;
    }
    
    .preview-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .position-controls {
        flex-direction: column;
    }
    
    #canvas {
        width: 250px;
        height: 250px;
    }
}

/* Footer Section */
.footer-section {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(240, 185, 11, 0.2);
}

.ca-container {
    margin-bottom: 20px;
}

.ca-label {
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.ca-address {
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid rgba(240, 185, 11, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #F0B90B;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
    user-select: all;
}

.ca-address:hover {
    background: rgba(240, 185, 11, 0.2);
    border-color: #F0B90B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.ca-address:active {
    transform: translateY(0);
    background: rgba(240, 185, 11, 0.3);
}

.social-link {
    margin-top: 15px;
}

.follow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a1d23 0%, #0C0E12 100%);
    border: 2px solid rgba(240, 185, 11, 0.3);
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.follow-link:hover {
    background: linear-gradient(135deg, #F0B90B 0%, #D9A30A 100%);
    border-color: #F0B90B;
    color: #0C0E12;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 185, 11, 0.4);
}

.twitter-icon {
    font-size: 18px;
    font-weight: bold;
}

.follow-text {
    font-size: 14px;
}