/* Modern Coupon Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Navigation - Desktop */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo h2 {
    color: #4c63d2;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4c63d2;
}

.language-selector select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Mobile Navigation */
.mobile-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.mobile-logo h2 {
    color: #4c63d2;
    font-weight: 700;
    font-size: 1.5rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4c63d2;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-header h3 {
    color: #4c63d2;
    font-weight: 700;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-items {
    flex: 1;
    padding: 1rem;
}

.mobile-menu-item {
    display: block;
    padding: 1rem;
    color: #2d3748;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: #e8f0ff;
    color: #4c63d2;
}

.mobile-language-selector {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.mobile-language-selector select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

/* Common Coupon Container */
.coupon-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 20px; /* 상단 패딩 추가로 헤더 공간 확보 */
    position: relative;
}

.coupon-main-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

/* Header Section */
.coupon-header-section {
    background: #3D4DAB;
    padding: 40px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.coupon-logo {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.coupon-title {
    color: #FFFF83;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Coins Illustration */
.coins-illustration {
    position: relative;
    height: 120px;
    margin: 20px 0;
    z-index: 2;
}

.coin {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #8B4513;
}

.coin-large {
    width: 60px;
    height: 60px;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.coin-medium {
    width: 40px;
    height: 40px;
    left: 20%;
    top: 20px;
    font-size: 1rem;
    animation: float 3s ease-in-out infinite 0.5s;
}

.coin-small {
    width: 30px;
    height: 30px;
    right: 25%;
    top: 10px;
    font-size: 0.8rem;
    animation: float 3s ease-in-out infinite 1s;
}

.coin-tiny {
    width: 20px;
    height: 20px;
    right: 15%;
    top: 60px;
    font-size: 0.6rem;
    animation: float 3s ease-in-out infinite 1.5s;
}

.coupon-ticket {
    position: absolute;
    left: 50%;
    top: 70px;
    transform: translateX(-50%) rotate(-10deg);
    width: 80px;
    height: 40px;
    background: #00BFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.4);
    animation: ticketFloat 4s ease-in-out infinite;
}

/* 에러 상태 스타일 */
.coupon-form-row.error {
    border-color: #e53e3e !important;
    background: #fed7d7 !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.coupon-form-row.error .coupon-form-input,
.coupon-form-row.error .coupon-form-select {
    color: #e53e3e;
}

.coupon-form-row.error .coupon-form-label {
    color: #e53e3e;
}

.coupon-form-row.error .coupon-form-label::after {
    color: #e53e3e;
}

/* 필드 에러 메시지 스타일 */
.field-error-message {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #e53e3e;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.2);
}

.field-error-message::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #e53e3e;
}



/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes ticketFloat {
    0%, 100% { transform: translateX(-50%) rotate(-10deg) translateY(0px); }
    50% { transform: translateX(-50%) rotate(-10deg) translateY(-8px); }
}

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

/* Back Button - 제거됨 (헤더 네비게이션으로 대체) */

/* Form Section */
.coupon-form-section {
    padding: 40px 30px;
}

.coupon-form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.coupon-form-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.coupon-form-row:hover {
    background: rgba(76, 99, 210, 0.02);
    border-color: #d0d7de;
}

.coupon-form-row.focused {
    background: white;
    border-color: #4c63d2;
    box-shadow: 0 0 0 3px rgba(76, 99, 210, 0.1);
}

.coupon-form-label {
    width: 80px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    flex-shrink: 0;
    position: relative;
}

.coupon-form-label::after {
    content: '|';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: #d0d7de;
    font-weight: 300;
}

.coupon-form-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 0;
    margin-left: 16px;
    outline: none;
    color: #333;
}

.coupon-form-input::placeholder {
    color: #a0a0a0;
}

.coupon-form-select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 0;
    margin-left: 16px;
    outline: none;
    color: #333;
    appearance: none;
    cursor: pointer;
}

.coupon-form-select option {
    background: white;
    color: #333;
}

.coupon-dropdown-arrow {
    margin-left: auto;
    color: #666;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.coupon-form-row.focused .coupon-dropdown-arrow {
    transform: rotate(180deg);
}

/* Submit Button */
.coupon-submit-btn {
    width: 100%;
    padding: 18px;
    background: #1D2A78;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 99, 210, 0.3);
}

.coupon-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 99, 210, 0.4);
}

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

.coupon-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.coupon-submit-btn.loading {
    position: relative;
    pointer-events: none;
}

.coupon-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notification */
.coupon-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #4CAF50;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.coupon-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.coupon-toast.error {
    border-left-color: #f44336;
}

.coupon-toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.coupon-toast:not(.error) .coupon-toast-icon {
    background: #4CAF50;
}

.coupon-toast.error .coupon-toast-icon {
    background: #f44336;
}

.coupon-toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}


/* 커스텀 언어 선택기 (더 나은 UX) */
.custom-language-selector {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    position: relative;
}

/* 더 큰 데스크탑 화면을 위한 추가 조정 */
@media (min-width: 1200px) {
    .coupon-main-container {
        max-width: 1000px;
    }

    .coupon-header-section {
        padding: 70px 50px;
        min-width: 450px;
    }

    .coupon-form-section {
        padding: 70px 60px;
        min-width: 450px;
    }

    .coupon-logo {
        font-size: 2.8rem;
    }

    .coupon-title {
        font-size: 3rem;
    }

    .coupon-img {
        max-width: 350px;
    }
}

/* Desktop Specific Styles */
@media (min-width: 769px) {

    .mobile-navbar {
        display: none;
    }

    .navbar {
        display: block;
    }

    .coupon-main-container {
        max-width: 900px; /* 더 넓은 컨테이너 */
        display: flex;
        flex-direction: row;
        align-items: stretch;
        background: white;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        position: relative;
        animation: fadeInUp 0.8s ease-out;
        min-height: 600px; /* 최소 높이 설정 */
    }

    /* 왼쪽 헤더 섹션 */
    .coupon-header-section {
        flex: 1;
        background: #3D4DAB;
        padding: 60px 40px;
        text-align: center;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 400px; /* 최소 너비 보장 */
    }
    .coupon-logo {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .coupon-title {
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }

    .coupon-img {
        max-width: 320px;
        width: 100%;
        height: auto;
        margin-top: 1rem;
    }

    /* 오른쪽 폼 섹션 */
    .coupon-form-section {
        flex: 1;
        padding: 60px 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: white;
        min-width: 400px; /* 최소 너비 보장 */
    }

    /* 폼 컨테이너 조정 */
    .coupon-form-container {
        margin-bottom: 40px;
    }

    .coupon-form-row {
        padding: 20px 24px;
        margin-bottom: 20px;
    }

    .coupon-form-label {
        width: 90px;
        font-size: 14px;
        font-weight: 600;
    }

    .coupon-form-input,
    .coupon-form-select {
        font-size: 16px;
        margin-left: 20px;
    }

    /* 제출 버튼 */
    .coupon-submit-btn {
        padding: 20px;
        font-size: 18px;
        font-weight: 600;
        margin-top: 20px;
    }

    /* 헤더 섹션 내 요소들 간격 조정 */
    .coupon-header-section .coupon-logo,
    .coupon-header-section .coupon-title {
        position: relative;
        z-index: 2;
    }

    /* 코인 애니메이션이 있다면 조정 (현재는 주석처리됨) */
    .coins-illustration {
        margin: 30px 0;
        height: 140px;
    }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .mobile-navbar {
        display: block;
    }

    .coupon-main-container {
        max-width: 350px;
        margin: 10px;
    }

    .coupon-header-section {
        padding: 30px 15px 10px;
    }

    .coupon-logo {
        font-size: 1.6rem;
    }

    .coupon-title {
        font-size: 2rem;
    }

    .coupon-img {
        max-width: 250px;
        width: 100%;
        height: auto;
    }
    .coupon-form-section {
        padding: 30px 20px;
    }

    .coupon-form-row {
        padding: 16px 18px;
        min-height: 56px; /* 터치하기 좋은 최소 높이 */
    }

    .coupon-form-label {
        width: 70px;
        font-size: 12px;
        font-weight: 600;
    }

    .coupon-form-input,
    .coupon-form-select {
        font-size: 16px; /* iOS 줌 방지를 위한 최소 16px */
        margin-left: 12px;
        padding: 2px 0;
        line-height: 1.5;
    }

    /* 모바일 드롭다운 개선 */
    .coupon-form-select {
        background: transparent;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: none;
        cursor: pointer;
        padding-right: 20px;
    }

    .coupon-form-select option {
        background: white;
        color: #333;
        font-size: 16px;
        padding: 12px 16px;
        line-height: 1.5;
    }

    /* 모바일 전용 큰 터치 영역 */
    .coupon-form-row {
        position: relative;
        cursor: pointer;
    }

    /* 드롭다운 화살표 크기 조정 */
    .coupon-dropdown-arrow {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .coupon-dropdown-arrow svg {
        width: 18px;
        height: 18px;
    }

    /* 모바일에서 select 박스 스타일링 향상 */
    .coupon-form-select:focus {
        outline: none;
        background: transparent;
    }

    .field-error-message {
        font-size: 11px;
        padding: 6px 10px;
    }

    .field-error-message::before {
        left: 15px;
    }

    /* iOS Safari에서 드롭다운 개선 */
    @supports (-webkit-touch-callout: none) {
        .coupon-form-select {
            font-size: 16px;
            padding: 0;
            background: transparent;
        }

        .coupon-form-select option {
            font-size: 16px;
            padding: 10px;
        }
    }

    /* Android Chrome에서 드롭다운 개선 */
    @media screen and (-webkit-min-device-pixel-ratio: 0) {
        .coupon-form-select {
            background: transparent;
            font-size: 16px;
        }
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .coupon-main-container {
        max-width: 320px;
    }

    .coupon-form-section {
        padding: 25px 15px;
    }

    .coupon-form-row {
        padding: 14px 16px;
        min-height: 52px;
    }

    .coupon-form-label {
        width: 65px;
        font-size: 11px;
    }

    .coupon-form-input,
    .coupon-form-select {
        font-size: 16px; /* 여전히 16px 유지 */
        margin-left: 10px;
    }
}

/* Mobile Coupon Toast - Enhanced Error Message Styles */

/* 기본 토스트 스타일 */
.mobile-coupon-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100vw - 2rem);
    min-width: 280px;
    border-left: 5px solid #4CAF50;
}

.mobile-coupon-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 🔧 서버 오류 전용 스타일 */
.mobile-coupon-toast.error {
    border-left-color: #f44336;
    background: #fff5f5;
}

.mobile-coupon-toast.server-error {
    border-left-color: #ff5722;
    background: linear-gradient(135deg, #fff3e0 0%, #ffebde 100%);
    border: 2px solid #ff9800;
    box-shadow: 0 20px 50px rgba(255, 87, 34, 0.3);
    animation: serverErrorPulse 2s ease-in-out infinite;
}

.mobile-coupon-toast.system-error {
    border-left-color: #9c27b0;
    background: linear-gradient(135deg, #f3e5f5 0%, #ede7f6 100%);
    border: 2px solid #673ab7;
    box-shadow: 0 20px 50px rgba(156, 39, 176, 0.3);
}

/* 서버 오류 펄스 애니메이션 */
@keyframes serverErrorPulse {
    0%, 100% {
        box-shadow: 0 20px 50px rgba(255, 87, 34, 0.3);
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        box-shadow: 0 25px 60px rgba(255, 87, 34, 0.4);
        transform: translateX(-50%) translateY(-2px) scale(1.02);
    }
}

/* 토스트 내용 */
.mobile-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.mobile-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mobile-coupon-toast.success .mobile-toast-icon {
    background: #4CAF50;
}

.mobile-coupon-toast.error .mobile-toast-icon {
    background: #f44336;
    color: white;
    font-size: 14px;
}

.mobile-coupon-toast.server-error .mobile-toast-icon {
    background: #ff5722;
    animation: iconBounce 1s ease-in-out infinite;
}

.mobile-coupon-toast.system-error .mobile-toast-icon {
    background: #9c27b0;
}

/* 아이콘 바운스 애니메이션 */
@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mobile-toast-message {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

/* 🔧 서버 오류 메시지 강조 */
.mobile-coupon-toast.server-error .mobile-toast-message {
    color: #d84315;
    font-weight: 600;
}

.mobile-coupon-toast.system-error .mobile-toast-message {
    color: #4a148c;
    font-weight: 600;
}

/* 오류 타입 라벨 */
.mobile-toast-type {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff5722;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
}

.mobile-coupon-toast.system-error .mobile-toast-type {
    background: #9c27b0;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
}

/* 🔧 폼 오류 강조 애니메이션 */
.coupon-form-container.form-error {
    animation: formErrorShake 0.6s ease-in-out;
}

@keyframes formErrorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 🔧 성공 애니메이션 강화 */
.coupon-main-container.mobile-success {
    animation: mobileSuccessCelebrate 0.6s ease-out;
}

@keyframes mobileSuccessCelebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 🔧 포인트 적립 애니메이션 */
.mobile-points-animation {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.4);
    z-index: 9998;
    animation: pointsAnimation 2s ease-out forwards;
    pointer-events: none;
}

@keyframes pointsAnimation {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(0.9);
    }
}

/* 🔧 입력 필드 오류/성공 상태 개선 */
.coupon-form-row.error {
    background: #ffebee;
    border-color: #f44336;
    animation: fieldError 0.3s ease-out;
}

.coupon-form-row.success {
    background: #e8f5e8;
    border-color: #4CAF50;
    animation: fieldSuccess 0.3s ease-out;
}

@keyframes fieldError {
    0% { background: #ffebee; }
    50% { background: #ffcdd2; }
    100% { background: #ffebee; }
}

@keyframes fieldSuccess {
    0% { background: #e8f5e8; }
    50% { background: #c8e6c9; }
    100% { background: #e8f5e8; }
}

/* 🔧 다크모드 대응 */
@media (prefers-color-scheme: dark) {
    .mobile-coupon-toast {
        background: #2d3748;
        color: #e2e8f0;
    }

    .mobile-coupon-toast.server-error {
        background: linear-gradient(135deg, #4a1c1c 0%, #3d1a1a 100%);
    }

    .mobile-coupon-toast.system-error {
        background: linear-gradient(135deg, #2d1b42 0%, #261a3d 100%);
    }

    .mobile-toast-message {
        color: #e2e8f0;
    }

    .mobile-coupon-toast.server-error .mobile-toast-message {
        color: #ff8a65;
    }

    .mobile-coupon-toast.system-error .mobile-toast-message {
        color: #ba68c8;
    }
}

/* 🔧 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .mobile-coupon-toast,
    .mobile-toast-icon,
    .coupon-form-container.form-error,
    .coupon-main-container.mobile-success,
    .mobile-points-animation {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }

    .mobile-coupon-toast.server-error {
        box-shadow: 0 20px 50px rgba(255, 87, 34, 0.3);
        transform: translateX(-50%) translateY(0);
    }
}

/* 🔧 매우 작은 화면 대응 */
@media (max-width: 320px) {
    .mobile-coupon-toast {
        min-width: 260px;
        padding: 1.2rem;
        left: 1rem;
        right: 1rem;
        transform: translateY(-100px);
    }

    .mobile-coupon-toast.show {
        transform: translateY(0);
    }

    .mobile-toast-message {
        font-size: 14px;
    }

    .mobile-toast-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* 🔧 키보드가 올라왔을 때 대응 (iOS Safari) */
@supports (-webkit-touch-callout: none) {
    .mobile-coupon-toast {
        position: fixed;
        top: env(safe-area-inset-top, 100px);
    }
}

