* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-menu {
    list-style: none;
    padding: 1rem 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.tool-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tool-section.active {
    display: block;
}

/* 비활성 섹션의 광고만 숨김 (활성 섹션은 표시) */
.tool-section:not(.active) .ad-container {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tool-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.tool-card p {
    color: #666;
    line-height: 1.6;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.tool-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Tool Content */
.tool-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Input Areas */
.input-area {
    margin-bottom: 2rem;
}

.input-area textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.input-area textarea:focus {
    outline: none;
    border-color: #667eea;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Stats Area */
.stats-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

/* Word Analysis */
.word-analysis {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.word-analysis h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.duplicate-words {
    min-height: 80px;
}

.duplicate-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.duplicate-word {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duplicate-word:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border-left-color: #764ba2;
}

.word-name {
    font-weight: 600;
    color: #333;
}

.word-frequency {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.no-duplicates {
    color: #666;
    text-align: center;
    font-style: italic;
    margin: 0;
    padding: 2rem 0;
}

.word-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.word-item {
    background: white;
    padding: 0.75rem;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.word-text {
    font-weight: 600;
    color: #333;
}

.word-count {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* SEO Content Styles */
.seo-content {
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.seo-section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.seo-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-section h3 i {
    color: #667eea;
    font-size: 1.2rem;
}

.seo-section p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tip-item h4 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.tip-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Usage List */
.usage-list {
    display: grid;
    gap: 1.2rem;
}

.usage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.usage-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.usage-icon {
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.usage-content strong {
    display: block;
    color: #333;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.usage-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ List */
.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.faq-item strong {
    display: block;
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Spell Check Styles - 모바일 우선 */
.spell-check-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 600px;
}

/* PC 환경에서만 grid 적용 */
@media (min-width: 769px) {
    .spell-check-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        flex-direction: row;
    }
}

.spell-input-section {
    display: flex;
    flex-direction: column;
}

.spell-input-section label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.spell-input-section textarea {
    flex: 1;
    min-height: 400px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
}

.spell-input-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

.spell-result-section {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.result-header {
    background: #667eea;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.result-header .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.spell-result-section .spell-stats {
    background: #e8f5e8;
    border: none;
    border-radius: 0;
    margin: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 1rem;
}

.spell-result-section .result-area {
    flex: 1;
    padding: 1rem;
    background: white;
    overflow-y: auto;
    max-height: 400px;
}

.no-check-yet {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.no-check-yet i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.no-check-yet .tip {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.spell-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1.2rem;
    background: #ffffff; /* 순백색 배경으로 변경 */
    border: 2px solid #e5e7eb; /* 테두리 추가 */
    border-radius: 8px;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* 그림자 추가 */
}

.option-group {
    display: flex;
    align-items: center;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600 !important; /* 글씨 굵기 증가 */
    color: #111827 !important; /* 진한 검은색으로 변경 */
    font-size: 15px; /* 폰트 크기 증가 */
    text-shadow: 0 0 1px rgba(0,0,0,0.1); /* 미세한 그림자로 가독성 향상 */
}

.option-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.spell-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #e8f5e8;
    border-radius: 8px;
    border: 1px solid #28a745;
}

.spell-results {
    max-height: 500px;
    overflow-y: auto;
}

.error-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.error-header {
    background: #dc3545;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.error-type {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.error-content {
    padding: 1rem;
}

.error-text {
    background: #fff5f5;
    padding: 0.75rem;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
    margin-bottom: 1rem;
    font-family: monospace;
    line-height: 1.5;
}

.error-word {
    background: #fecaca;
    color: #dc2626;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: bold;
}

.suggestions {
    margin-top: 1rem;
}

.suggestions h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.suggestion-btn.applied {
    background: #28a745;
    color: white;
    border-color: #28a745;
    cursor: default;
}

.corrected-text {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.corrected-text h4 {
    color: #155724;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.corrected-content {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    font-family: inherit;
    line-height: 1.6;
    white-space: pre-wrap;
}

.copy-result-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.copy-result-btn:hover {
    background: #1e7e34;
}

.no-errors {
    text-align: center;
    padding: 3rem 2rem;
    color: #28a745;
}

.no-errors i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #28a745;
}

/* API 관련 스타일 */
.loading-spinner {
    text-align: center;
    padding: 3rem 2rem;
    color: #667eea;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.loading-spinner .api-info {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.api-credit {
    color: #999;
    font-size: 0.8rem;
    margin-top: 1rem;
    font-style: italic;
}

.enhanced-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* 베타 버전 주의사항 스타일 */
.beta-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #fdcb6e;
    border-radius: 4px;
    padding: 12px;
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.beta-notice i {
    color: #e17055;
    font-size: 1.2em;
    margin-top: 2px;
}

.notice-content {
    flex: 1;
}

.notice-content strong {
    color: #d63031;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.notice-content p {
    color: #636e72;
    font-size: 0.85em;
    line-height: 1.4;
    margin: 0;
}

/* 결과 영역 주의사항 */
.result-disclaimer {
    margin-top: 15px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-disclaimer i {
    color: #6c757d;
    font-size: 0.9em;
}

.result-disclaimer span {
    color: #495057;
    font-size: 0.8em;
    line-height: 1.3;
}

/* 투명배경 만들기 - 고급 버전 스타일 */
.bg-remover-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* 컨트롤 버튼 */
.bg-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* 드래그 앤 드롭 업로드 영역 */
.bg-upload-area {
    border: 3px dashed #ddd;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
    cursor: pointer;
    margin-bottom: 20px;
}

.bg-upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.bg-upload-area.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.bg-upload-content i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.bg-upload-content h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.bg-upload-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 현재 이미지 정보 영역 */
.bg-current-image {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.current-image-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.current-image-info i {
    color: #4caf50;
    font-size: 20px;
    margin-right: 10px;
}

.image-name {
    flex: 1;
    font-weight: 600;
    color: #2e7d2e;
    display: flex;
    align-items: center;
}

.image-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary, .btn-danger {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-upload, .btn-download {
    padding: 14px 28px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-upload {
    background: #34a853;
    color: white;
}

.btn-upload:hover {
    background: #2d8e47;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52,168,83,0.4);
}

.btn-download {
    background: #1a73e8;
    color: white;
}

.btn-download:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.4);
}

/* 슬라이더 컨테이너 */
.bg-slider-container {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.bg-slider-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.threshold-value {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background: #1a73e8;
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

#bg-threshold {
    width: 100%;
    max-width: 400px;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

#bg-threshold::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
}

#bg-threshold::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    border: none;
}

.slider-desc {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
}

/* 미리보기 섹션 */
.bg-preview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.bg-preview-box {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: white;
}

.bg-preview-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preview-explanation {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    line-height: 1.4;
}

.bg-canvas-wrapper {
    display: inline-block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.transparent-bg {
    background: 
        linear-gradient(45deg, #ddd 25%, transparent 25%),
        linear-gradient(-45deg, #ddd 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ddd 75%),
        linear-gradient(-45deg, transparent 75%, #ddd 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.original-bg {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.colored-bg {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

#bg-canvas, #bg-preview-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 사용 가이드 */
.bg-guide {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 16px;
    border: 1px solid #e8ecff;
}

.bg-guide h4 {
    color: #1a73e8;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.bg-guide h3 {
    color: #333;
    margin: 25px 0 15px 0;
    font-size: 18px;
    border-bottom: 2px solid #e8ecff;
    padding-bottom: 10px;
}

/* SEO 설명 섹션 */
.seo-description {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #1a73e8;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8ecff;
}

.feature-item i {
    color: #1a73e8;
    font-size: 18px;
}

/* 단계별 가이드 */
.guide-section {
    margin: 30px 0;
}

.guide-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e8ecff;
    transition: all 0.3s;
}

.guide-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.1);
}

.step-number {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 활용팁 그리드 */
.usage-tips {
    margin: 30px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e8ecff;
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.1);
}

.tip-card h4 {
    color: #1a73e8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.tip-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
    color: #555;
    line-height: 1.5;
}

.tip-card li:last-child {
    border-bottom: none;
}

.tip-card li::before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* FAQ 섹션 */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    background: white;
    border: 1px solid #e8ecff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.1);
}

.faq-question {
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    border-bottom: 1px solid #e8ecff;
}

.faq-question i {
    color: #1a73e8;
    font-size: 16px;
}

.faq-answer {
    padding: 18px 20px;
    color: #555;
    line-height: 1.6;
}

.faq-answer strong {
    color: #1a73e8;
}

/* 기존 가이드 팁 스타일 개선 */
.guide-tip {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
    margin-top: 30px;
}

.guide-tip strong {
    color: #e65100;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 16px;
}

.guide-tip p {
    margin: 0;
    color: #333;
    line-height: 1.7;
}

/* 이미지 변환 가이드 스타일 */
.converter-guide {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 16px;
    border: 1px solid #e8ecff;
}

.converter-guide h4 {
    color: #1a73e8;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

/* 업로드 아이콘 스타일 */
.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.upload-limit {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* 모바일 반응형 */
/* 변환 가이드 모바일 스타일은 통합된 미디어 쿼리 섹션으로 이동 */

.guide-step p {
    margin: 0;
    padding-left: 8px;
    color: #333;
    line-height: 1.6;
}

.guide-tip {
    margin-top: 16px;
    padding: 12px;
    background: rgba(26,115,232,0.1);
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
}

.guide-tip strong {
    display: block;
    margin-bottom: 6px;
    color: #1a73e8;
}

.guide-tip p {
    margin: 0;
    padding-left: 8px;
    color: #333;
}

/* 배경 제거 모바일 스타일은 통합된 미디어 쿼리 섹션으로 이동 */
        width: 100%;
        justify-content: center;
    }
}

.upload-area.dragover {
    border-color: #28a745;
    background: #e8f5e8;
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.upload-area i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
    display: block;
}

.upload-area h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.upload-area p {
    color: #666;
    margin: 0;
}

/* 슬라이더 컨테이너 */
.slider-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.slider-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.threshold-value {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    max-width: 400px;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

/* 미리보기 스타일 */
.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.preview-box {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: white;
    text-align: center;
}

.preview-box h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.canvas-wrapper {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.transparent-bg {
    background: 
        linear-gradient(45deg, #ddd 25%, transparent 25%),
        linear-gradient(-45deg, #ddd 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ddd 75%),
        linear-gradient(-45deg, transparent 75%, #ddd 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.colored-bg {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.download-section {
    text-align: center;
    margin-top: 20px;
}

/* 미리보기 컨테이너 모바일 스타일은 통합된 미디어 쿼리 섹션으로 이동 */

.upload-area.dragover {
    border-color: #28a745;
    background: #f0fff4;
    transform: scale(1.02);
}

.upload-area i {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}

.upload-area h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.upload-area p {
    color: #666;
    margin-bottom: 20px;
}

.upload-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    font-weight: 500;
}

.upload-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.bg-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.threshold-control {
    margin-bottom: 20px;
}

.threshold-control label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

#threshold-value {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 8px;
}

#bg-threshold {
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
}

.control-hint {
    font-size: 0.85em;
    color: #666;
    margin: 0;
    font-style: italic;
}

.bg-preview-section {
    margin-top: 20px;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.preview-box {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: white;
    text-align: center;
}

.preview-box h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.canvas-wrapper {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.transparent-bg {
    background: 
        linear-gradient(45deg, #ddd 25%, transparent 25%),
        linear-gradient(-45deg, #ddd 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ddd 75%),
        linear-gradient(-45deg, transparent 75%, #ddd 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.colored-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#bg-canvas, #bg-preview-canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.reset-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.bg-info {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-radius: 12px;
    border: 1px solid #cce7ff;
}

.bg-info h3 {
    color: #0056b3;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-number {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.info-content h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.info-content p {
    color: #666;
    font-size: 0.85em;
    line-height: 1.4;
    margin: 0;
}

/* SEO 최적화 콘텐츠 스타일 */
.seo-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
}

.seo-description h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.seo-description p {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95em;
    margin: 0;
}

/* 활용방법 섹션 */
.usage-benefits {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.usage-benefits h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.benefit-item h4 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.benefit-item p {
    color: #495057;
    line-height: 1.5;
    font-size: 0.9em;
    margin: 0;
}

/* FAQ 섹션 */
.faq-section {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-section h3 {
    color: #6f42c1;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.faq-question {
    background: #e9ecef;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #dee2e6;
}

.faq-question strong {
    color: #495057;
    font-size: 0.95em;
}

.faq-answer {
    padding: 15px 20px;
    background: #ffffff;
}

.faq-answer p {
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.9em;
    margin: 0;
}

/* 키워드 섹션 */
.seo-keywords {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.seo-keywords h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.keyword-tag:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 이미지 변환 도구 스타일 */
.image-convert-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.convert-upload-section .convert-upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.convert-upload-area:hover {
    border-color: #17a2b8;
    background: #f0f9ff;
}

.convert-upload-area.dragover {
    border-color: #28a745;
    background: #f0fff4;
    transform: scale(1.02);
}

.convert-upload-area i {
    font-size: 3em;
    color: #17a2b8;
    margin-bottom: 15px;
}

.convert-upload-area h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.convert-upload-area p {
    color: #666;
    margin-bottom: 20px;
}

.convert-upload-button {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    font-weight: 500;
}

.convert-upload-button:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* 선택된 파일 목록 */
.selected-files {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.selected-files h4 {
    color: #495057;
    margin-bottom: 15px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-info i {
    color: #17a2b8;
}

.file-name {
    font-weight: 500;
    color: #495057;
}

.file-size {
    color: #6c757d;
    font-size: 0.9em;
}

.remove-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.remove-file-btn:hover {
    background: #c82333;
}

/* 변환 옵션 */
.convert-options {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95em;
}

.option-group select, .option-group input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95em;
}

.option-group input[type="range"] {
    width: 100%;
}

.resize-options {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.resize-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resize-method-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resize-method-options {
    display: flex;
    gap: 20px;
}

.method-option {
    display: flex;
    align-items: center;
}

.method-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.pixels-controls, .scale-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.scale-controls {
    grid-template-columns: 1fr;
}

.size-input-group, .scale-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.size-input-group input[type="number"] {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    min-width: 120px;
}

.scale-input-group select {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    background: white;
}

.aspect-ratio-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.convert-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.convert-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.convert-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.reset-convert-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.reset-convert-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* 진행률 표시 */
.convert-progress {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.progress-info h4 {
    color: #495057;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

#progress-text {
    color: #6c757d;
    font-size: 0.95em;
}

/* 변환 결과 */
.convert-results {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.convert-results h4 {
    color: #28a745;
    margin-bottom: 20px;
    text-align: center;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-preview {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-name {
    font-weight: 500;
    color: #495057;
}

.result-specs {
    color: #6c757d;
    font-size: 0.85em;
}

.download-single-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.download-single-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.download-actions {
    text-align: center;
}

.download-all-btn {
    background: #6f42c1;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.download-all-btn:hover {
    background: #5a359a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

/* 사용법 안내 */
.convert-info {
    margin-top: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.convert-info h3 {
    color: #17a2b8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.convert-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.convert-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.convert-info-item .info-number {
    background: #17a2b8;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.convert-info-item .info-content h4 {
    color: #495057;
    margin-bottom: 5px;
    font-size: 1em;
}

.convert-info-item .info-content p {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

/* 형식 지원 표시 */
.format-support {
    background: #e8f5ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.format-support h4 {
    color: #17a2b8;
    margin-bottom: 15px;
}

.format-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.format-tag {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
}

.format-tag.input {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.format-tag.output {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.arrow {
    font-size: 1.2em;
    color: #6c757d;
    font-weight: bold;
}

/* 이미지 변환 모바일 스타일은 통합된 미디어 쿼리 섹션으로 이동 */
        gap: 15px;
    }
    
    .format-tags {
        justify-content: center;
        gap: 8px;
    }
    
    .format-tag {
        font-size: 0.8em;
        padding: 4px 8px;
    }
    
    .result-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .result-info {
        justify-content: center;
    }
    
    .download-single-btn {
        width: 100%;
        padding: 10px;
    }
    
    .file-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .file-info {
        justify-content: center;
    }
    
    .size-input-group input[type="number"], .scale-input-group select {
        min-width: 100%;
        padding: 15px;
        font-size: 16px; /* iOS 줄 방지 */
    }
}

/* 투명 배경 모바일 스타일은 통합된 미디어 쿼리 섹션으로 이동 */
        justify-content: center;
    }
    
    .keyword-tag {
        font-size: 0.8em;
        padding: 6px 12px;
    }
    
    #bg-canvas, #bg-preview-canvas {
        width: 100%;
        height: auto;
    }
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* QR Options */
.qr-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-group {
    flex: 1;
}

/* Results */
.result-area,
.qr-result,
.url-result,
.image-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 100px;
}

.qr-result {
    text-align: center;
}

.qr-result canvas {
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Upload Area */
.upload-area {
    margin-bottom: 2rem;
}

.upload-placeholder {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-placeholder:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-placeholder i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    color: #666;
    font-size: 1.1rem;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 3rem;
}

/* 이미지 변환 도구 SEO 콘텐츠 스타일 */
.convert-usage-benefits {
    margin-top: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.convert-usage-benefits h3 {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    color: white;
}

.convert-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.convert-benefit-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.convert-benefit-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
}

.convert-benefit-item p {
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.convert-features {
    margin-top: 30px;
    padding: 20px;
}

.convert-features h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.convert-faq-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.convert-faq-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.convert-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.convert-faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.convert-faq-question {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.convert-faq-answer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.convert-faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #444;
    font-size: 14px;
}

.convert-seo-keywords {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
}

.convert-seo-keywords h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.convert-keywords-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.keyword-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.keyword-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 이미지 변환 도구 모바일 스타일은 통합된 미디어 쿼리 섹션으로 이동 */

/* 전자도장 도구 스타일 */
.stamp-header {
    text-align: center;
    margin-bottom: 30px;
}

.stamp-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.stamp-creator {
    max-width: 800px;
    margin: 0 auto;
}

.stamp-input-section,
.stamp-style-section,
.stamp-color-section,
.stamp-size-section,
.stamp-preview-section {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.stamp-input-section h3,
.stamp-style-section h3,
.stamp-color-section h3,
.stamp-size-section h3,
.stamp-preview-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.input-group {
    position: relative;
}

#stampNameInput {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#stampNameInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.name-help {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.stamp-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stamp-style-item {
    text-align: center;
    cursor: pointer;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.stamp-style-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.stamp-style-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.style-preview {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    background: #d32f2f;
    color: white;
}

.circle-preview {
    border-radius: 50%;
}

.square-preview {
    border-radius: 0;
}

.oval-preview {
    border-radius: 50%;
    width: 100px;
    height: 60px;
}

.rounded-preview {
    border-radius: 15px;
}

.style-name {
    font-weight: 500;
    font-size: 14px;
}

.color-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px #667eea;
}

.size-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.size-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.size-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #667eea;
}

.size-option input[type="radio"]:checked + .size-text {
    color: #667eea;
    font-weight: bold;
}

.preview-container {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

#stampCanvas {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    max-width: 100%;
}

.preview-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}

.stamp-actions {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.stamp-actions .btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 전자도장 모바일 반응형 */
@media (max-width: 768px) {
    .stamp-styles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stamp-style-item {
        padding: 15px;
    }
    
    .style-preview {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }
    
    .oval-preview {
        width: 80px;
        height: 45px;
    }
    
    .color-options {
        gap: 10px;
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
    
    .size-options {
        flex-direction: column;
        align-items: center;
    }
    
    .stamp-actions {
        flex-direction: column;
    }
    
    .stamp-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid #dee2e6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h2 {
    color: #007bff;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.footer-brand p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.footer-bottom p {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

/* 제품소개 페이지 개발자 정보 스타일 */
.developer-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 12px;
    border-left: 4px solid #007bff;
}

.dev-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dev-avatar {
    font-size: 2.5rem;
    background: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dev-details h4 {
    margin: 0 0 0.5rem 0;
    color: #007bff;
    font-size: 1.2rem;
}

.dev-details p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    line-height: 1.5;
}

.brand-info {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.brand-tag, .version-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.brand-tag {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.version-tag {
    background: #28a745;
    color: white;
}

/* 일반 모바일 스타일은 통합된 미디어 쿼리 섹션으로 이동 */
    
    .qr-options {
        flex-direction: column;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Footer 모바일 최적화 */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .footer-brand h2 {
        font-size: 1.5rem;
    }
    
    /* 개발자 정보 모바일 최적화 */
    .dev-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .dev-avatar {
        font-size: 2rem;
        padding: 0.8rem;
    }
}
}

/* 480px 모바일 스타일은 통합된 미디어 쿼리 섹션으로 이동 */
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .usage-icon {
        font-size: 2rem;
    }
    
    .spell-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .spell-check-layout {
        display: flex !important; /* 강제로 flex 적용 */
        flex-direction: column !important; /* 세로 배치 강제 */
        gap: 2rem !important;
        min-height: auto !important;
        grid-template-columns: none !important; /* 기존 grid 속성 무효화 */
    }
    
    .spell-input-section {
        order: 1 !important; /* 입력 섹션을 먼저 표시 */
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .spell-result-section {
        order: 2 !important; /* 결과 섹션을 나중에 표시 */
        width: 100% !important;
        min-height: 400px !important; /* 최소 높이 설정 */
    }
    
    .spell-input-section textarea {
        min-height: 300px; /* 모바일에서 더 큰 높이 */
        font-size: 16px; /* 모바일에서 글자 크기 증가 */
    }
    
    .result-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .spell-result-section .result-area {
        max-height: 500px; /* 모바일에서 더 큰 높이 */
        min-height: 200px; /* 최소 높이 설정 */
    }
    
    .spell-result-section .spell-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .suggestion-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .suggestion-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .error-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .corrected-text {
        position: relative;
    }
    
    .copy-result-btn {
        position: static;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* 전자도장 도구 스타일 */
.stamp-header {
    text-align: center;
    margin-bottom: 30px;
}

.stamp-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.stamp-creator {
    max-width: 800px;
    margin: 0 auto;
}

.stamp-input-section,
.stamp-style-section,
.stamp-color-section,
.stamp-size-section,
.stamp-preview-section {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.stamp-input-section h3,
.stamp-style-section h3,
.stamp-color-section h3,
.stamp-size-section h3,
.stamp-preview-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.input-group {
    position: relative;
}

#stampNameInput {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#stampNameInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.name-help {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.stamp-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stamp-style-item {
    text-align: center;
    cursor: pointer;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.stamp-style-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.stamp-style-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.style-preview {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    background: #d32f2f;
    color: white;
}

.circle-preview {
    border-radius: 50%;
}

.square-preview {
    border-radius: 0;
}

.oval-preview {
    border-radius: 50%;
    width: 100px;
    height: 60px;
}

.rounded-preview {
    border-radius: 15px;
}

.style-name {
    font-weight: 500;
    font-size: 14px;
}

.color-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px #667eea;
}

.size-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.size-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.size-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #667eea;
}

.size-option input[type="radio"]:checked + .size-text {
    color: #667eea;
    font-weight: bold;
}

.preview-container {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

#stampCanvas {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    max-width: 100%;
}

.preview-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}

.stamp-actions {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.stamp-actions .btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 전자도장 모바일 반응형 */
@media (max-width: 768px) {
    .stamp-styles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stamp-style-item {
        padding: 15px;
    }
    
    .style-preview {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }
    
    .oval-preview {
        width: 80px;
        height: 45px;
    }
    
    .color-options {
        gap: 10px;
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
    
    .size-options {
        flex-direction: column;
        align-items: center;
    }
    
    .stamp-actions {
        flex-direction: column;
    }
    
    .stamp-actions .btn {
        width: 100%;
        justify-content: center;
    }
}