* {
    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: #f5f5f5;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 2rem 0;
}

.payment-methods h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

/* Method List */
.method-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.method-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.method-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #dc3545;
    background: linear-gradient(to right, #ffffff 0%, #fff5f5 100%);
}

.method-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    padding: 12px;
    transition: all 0.3s ease;
}

.method-item:hover .method-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.method-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.method-item:hover .method-icon img {
    transform: scale(1.1);
}

.method-content {
    flex: 1;
    text-align: left;
}

.method-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc3545;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.method-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.method-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Tutorial Sections */
.tutorial-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.tutorial-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.back-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 1rem;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #c82333;
}

.tutorial-header h2 {
    color: #333;
    font-size: 1.8rem;
}

/* Steps */
.steps {
    margin-bottom: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    gap: 1.5rem;
}

.step-number {
    background: #dc3545;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    text-align: justify;
}

.step-content ol {
    margin: 0.8rem 0;
    padding-left: 1.2rem;
    color: #666;
    line-height: 1.7;
}

.step-content ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.3rem;
}

.step-content b {
    color: #333;
    font-weight: 600;
}

.step-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.step-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-image:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

/* Placeholder styling for missing images */
.step-image img[src*="images/"]:not([src*="data:"]) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

/* Status Info */
.status-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.status-info h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.status-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-step {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
    gap: 1.5rem;
}

.status-step:nth-child(1) {
    border-left-color: #dc3545;
}

.status-step:nth-child(2) {
    border-left-color: #28a745;
}

.status-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.status-number.pending {
    background: #dc3545;
}

.status-number.success {
    background: #28a745;
}

.status-content {
    flex: 1;
}

.status-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.status-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.status-image {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.status-image:hover img {
    transform: scale(1.05);
}

.status-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-image:hover .image-overlay {
    opacity: 1;
}

.status-image .zoom-icon {
    color: white;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

/* Clickable text styling */
.clickable-text {
    color: #dc3545;
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
    transition: all 0.3s ease;
}

.clickable-text:hover {
    color: #c82333;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    overflow: hidden;
}



.modal-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-caption {
    color: white;
    font-size: 1.1rem;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Webview Mobile Optimization */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .tutorial-section {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .tutorial-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }
    
    .tutorial-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .step {
        padding: 0.8rem;
        margin-bottom: 1.5rem;
        border-radius: 6px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .step-content h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        font-weight: 600;
        color: #333;
    }
    
    .step-content p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.6rem;
        color: #555;
        text-align: left;
    }
    
    .step-content ol {
        font-size: 0.85rem;
        margin: 0.6rem 0;
        padding-left: 0.8rem;
        color: #555;
    }
    
    .step-content ol li {
        margin-bottom: 0.3rem;
        line-height: 1.4;
        padding-left: 0.2rem;
    }
    
    .step-content b {
        color: #dc3545;
        font-weight: 600;
    }
    
    .step-image {
        width: 100%;
        height: 180px;
        margin-top: 0.8rem;
    }
    
    .back-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .step-content p,
    .step-content ol {
        font-size: 0.8rem;
    }
    
    .step-content h3 {
        font-size: 0.95rem;
    }
    
    .tutorial-header h2 {
        font-size: 1.2rem;
    }
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .method-list {
        gap: 0.8rem;
    }
    
    .method-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .method-icon {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .method-content h3 {
        font-size: 1.1rem;
    }
    
    .method-content p {
        font-size: 0.85rem;
    }
    
    .method-label {
        font-size: 0.7rem;
    }
    
    .tutorial-section {
        padding: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
    }
    
    .step-number {
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .step-content {
        width: 100%;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
        text-align: left;
    }
    
    .step-content ol {
        font-size: 0.9rem;
        margin: 0.8rem 0;
        padding-left: 1rem;
    }
    
    .step-content ol li {
        margin-bottom: 0.4rem;
        line-height: 1.5;
    }
    
    .step-image {
        width: 100%;
        max-width: 300px;
        height: 200px;
        align-self: center;
    }
    
    .status-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .status-number {
        align-self: center;
    }
    
    .status-image {
        width: 100%;
        max-width: 250px;
        height: 150px;
        align-self: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 10px;
    }
    
    .modal-content img {
        max-height: 60vh;
    }
    
    .close-btn {
        top: 5px;
        right: 10px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
    
    .modal-caption {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}