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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.language-switcher {
    position: relative;
}

.language-select {
    padding: 8px 30px 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: #34D186;
}

.language-select:focus {
    outline: none;
    border-color: #34D186;
    box-shadow: 0 0 0 3px rgba(52, 209, 134, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #34D186 0%, #2AB871 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 90c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z' fill='%23fff' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: #fff;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

.cta-button {
    background: #fff;
    color: #34D186;
    border: none;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(0);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    justify-content: flex-end;
    min-height: 500px;
}

.hero-image img {
    width: min(100%, 560px);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.20));
}

.hero-gift-ribbon {
    position: absolute;
    left: 12%;
    bottom: 28%;
    width: 78px;
    height: 28px;
    background: #ff4d6d;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(255, 77, 109, 0.25);
    transform: rotate(-10deg);
}

.hero-gift-ribbon::before,
.hero-gift-ribbon::after {
    content: '';
    position: absolute;
    top: -18px;
    width: 30px;
    height: 30px;
    border: 10px solid #ff4d6d;
    border-radius: 50% 50% 50% 0;
    background: transparent;
}

.hero-gift-ribbon::before {
    left: 10px;
    transform: rotate(-35deg);
}

.hero-gift-ribbon::after {
    right: 10px;
    transform: scaleX(-1) rotate(-35deg);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #34D186;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #34D186;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #34D186;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.modal-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Payment Form */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #34D186;
    box-shadow: 0 0 0 3px rgba(52, 209, 134, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-button {
    background: #34D186;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background: #2AB871;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 209, 134, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Processing Modal */
.processing-content {
    text-align: center;
    padding: 60px 40px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #34D186;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Error Modal */
.error-content {
    text-align: center;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.retry-button {
    background: #34D186;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.retry-button:hover {
    background: #2AB871;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-image {
        min-height: auto;
        justify-content: center;
    }

    .hero-image img {
        width: min(100%, 420px);
    }

    .hero-gift-ribbon {
        left: 15%;
        bottom: 25%;
        width: 62px;
        height: 22px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 80px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 16px;
    }

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

/* Mirror Modal Styles */
.mirror-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.mirror-overlay-backdrop.is-open {
    display: flex;
}

.mirror-overlay-modal {
    background: white;
    border-radius: 16px;
    max-width: 456px;
    width: min(92vw, 456px);
    max-height: 84vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 24px;
    position: relative;
}

.mirror-overlay-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.mirror-overlay-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.mirror-overlay-sub {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

.mirror-overlay-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.mirror-overlay-close:hover {
    background: #f5f5f5;
    color: #333;
}

.mirror-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mirror-field {
    display: flex;
    flex-direction: column;
}

.mirror-field.full {
    grid-column: 1 / -1;
}

.mirror-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.mirror-input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s;
    font-family: inherit;
}

.mirror-input:focus {
    outline: none;
    border-color: #34D186;
    box-shadow: 0 0 0 3px rgba(52, 209, 134, 0.1);
}

.mirror-hint {
    font-size: 12px;
    color: #34D186;
    margin-top: 4px;
    min-height: 16px;
}

.mirror-meta {
    font-size: 12px;
    color: #666;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mirror-status {
    font-size: 12px;
    margin-top: 10px;
    min-height: 18px;
}

.mirror-actions {
    margin-top: 18px;
}

.mirror-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

.mirror-btn-primary {
    background: #34D186;
    color: white;
}

.mirror-btn-primary:hover {
    background: #2ab572;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 209, 134, 0.3);
}

.mirror-btn-primary:active {
    transform: translateY(0);
}

.mirror-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    text-align: center;
}

.mirror-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(52, 209, 134, 0.18);
    border-top-color: #34D186;
    border-radius: 50%;
    animation: mirror-spin 1s linear infinite;
}

.mirror-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    text-align: center;
    gap: 16px;
    padding: 12px 0 4px;
}

.mirror-error-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    position: relative;
    background: #fff5f5;
    border: 1px solid #fecaca;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.10);
}

.mirror-error-icon::before,
.mirror-error-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: #ef4444;
    transform-origin: center;
}

.mirror-error-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mirror-error-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mirror-error-copy {
    max-width: 320px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
}

@keyframes mirror-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .mirror-grid {
        grid-template-columns: 1fr;
    }
    
    .mirror-overlay-modal {
        padding: 20px;
        width: min(94vw, 420px);
        max-height: 82vh;
    }
}
