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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-header .header-content h1 {
    font-size: 3em;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.main-header .subtitle {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

header h1 {
    font-size: 2.5em;
    color: #3182f6;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
}

.back-link {
    display: inline-block;
    margin-top: 10px;
    color: #3182f6;
    text-decoration: none;
    font-size: 0.9em;
}

.back-link:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    margin-bottom: 40px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.payment-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.payment-card h2 {
    color: #3182f6;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.payment-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #3182f6;
    color: white;
}

.btn-primary:hover {
    background-color: #1e6ce8;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.2em;
    display: inline-block;
    min-width: 200px;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.order-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.order-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.order-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.item-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.item-description {
    color: #666;
    margin-bottom: 10px;
}

.item-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #3182f6;
}

.order-summary {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #666;
}

.summary-row.total {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.payment-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method-option:hover {
    border-color: #3182f6;
    background: #f0f7ff;
}

.payment-method-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3182f6;
}

.payment-method-option input[type="radio"]:checked + .method-label {
    color: #3182f6;
    font-weight: 600;
}

.payment-method-option:has(input[type="radio"]:checked) {
    border-color: #3182f6;
    background: #f0f7ff;
}

.method-label {
    font-size: 1.1em;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.info-box {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3182f6;
}

.info-box h3 {
    color: #3182f6;
    margin-bottom: 10px;
}

.info-box p {
    color: #555;
    margin-bottom: 10px;
}

.note {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
}

.billing-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.billing-section h2 {
    color: #333;
    margin-bottom: 15px;
}

.billing-section p {
    color: #666;
    margin-bottom: 20px;
}

.order-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-info p {
    margin-bottom: 10px;
    color: #333;
}

.success-message, .error-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    margin: 0 auto 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    margin: 0 auto 20px;
}

.success-message h2, .error-message h2 {
    color: #333;
    margin-bottom: 10px;
}

.payment-info, .error-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.payment-info h3, .error-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.payment-info p, .error-info p {
    margin-bottom: 10px;
    color: #666;
}

.action-buttons {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.policy-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.policy-content section {
    margin-bottom: 40px;
}

.policy-content h2 {
    color: #3182f6;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.policy-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-content ul, .policy-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
}

.policy-content li {
    margin-bottom: 8px;
}

/* Hero Section */
.hero-section {
    background: white;
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-description {
    font-size: 1.2em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2em;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1em;
}

/* Payment Guide Section */
.payment-guide-section {
    margin-bottom: 50px;
}

.guide-card {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.guide-card h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
}

.guide-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.guide-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-text {
    text-align: left;
}

.guide-text h4 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.guide-text p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 50px 30px 20px;
    border-radius: 15px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    margin: 10px 0;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

/* 로그인 폼 */
.login-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-select:focus {
    outline: none;
    border-color: #3182f6;
}

.form-select {
    background-color: white;
    cursor: pointer;
}

.form-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 카드 목록 */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.card-item:hover {
    border-color: #3182f6;
    box-shadow: 0 2px 8px rgba(49, 130, 246, 0.1);
}

.card-info {
    flex: 1;
}

.card-number {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.card-company {
    font-size: 0.9em;
    color: #666;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

/* 도메인 검색 섹션 */
.domain-search-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.domain-search-section h2 {
    color: #333;
    margin-bottom: 15px;
}

.domain-search-section p {
    color: #666;
    margin-bottom: 20px;
}

.domain-search-box {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 15px;
}

.domain-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.domain-input:focus {
    outline: none;
    border-color: #3182f6;
}

.domain-hint {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

/* Auto Renew 토글 */
.auto-renew-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.auto-renew-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.auto-renew-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    transition: background-color 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auto-renew-toggle input[type="checkbox"]:checked + .toggle-slider {
    background-color: #3182f6;
}

.auto-renew-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.info-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: help;
    font-size: 0.9em;
}

.info-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #333;
    color: white;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.info-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 1001;
}

/* 정기결제 섹션 */
.billing-login-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.billing-login-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.billing-card-section {
    margin-bottom: 20px;
}

.billing-card-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.billing-card-select-section {
    margin-bottom: 20px;
}

/* 회원가입 페이지 스타일 */
.signup-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.test-mode-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.notice-text {
    color: #856404;
    font-weight: 600;
    margin: 0;
}

.signup-form {
    margin-top: 20px;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label span {
    color: #333;
    font-size: 0.95em;
}

.checkbox-label a {
    color: #3182f6;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .signup-section {
        padding: 20px;
    }

    .main-header .header-content h1 {
        font-size: 2em;
    }

    header h1 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-description {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .guide-content {
        flex-direction: column;
    }

    .guide-item {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .order-item {
        flex-direction: column;
    }

    .item-image img {
        width: 100%;
        height: auto;
    }

    .action-buttons {
        flex-direction: column;
    }

    .policy-content {
        padding: 20px;
    }
}

