/* ===================================
   Reset & Base Styles
   =================================== */
/* Standalone page only reset */


body.notice-standalone * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Popup scoped reset */
.promotion_popup *,
.promotion_popup *::before,
.promotion_popup *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - 청록색 테마 */
    --primary-color: #1fa19f;
    --primary-dark: #178b89;
    --secondary-color: #f39c12;
    --accent-yellow: #ffc107;
    --accent-orange: #ff9800;
    --accent-blue: #044a8f;
    --background-gradient: linear-gradient(135deg, #1fa19f 0%, #178b89 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --border-radius: 15px;
}

/* Body styles only for standalone page */
body.notice-standalone {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f5f5f5;
    overflow-x: hidden;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup wrapper styles */
.promotion_popup {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.promotion_popup .main-container {
    border-radius: 15px;
}

/* ===================================
   Main Container (1200x800)
   =================================== */
.main-container {
    width: 960px;
    max-width: 100%;
    height: 640px;
    max-height: 90vh;
    background: var(--background-gradient);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    padding-bottom: 50px;
}

/* Popup specific adjustments */
.promotion_popup .main-container {
    width: 100%;
    height: auto;
    max-height: 640px;
}

/* Custom Scrollbar */
.main-container::-webkit-scrollbar {
    width: 10px;
}

.main-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.main-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.main-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Bottom Actions (하단 우측 버튼들)
   =================================== */
.bottom-actions {
    position: absolute;
    bottom: 55px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.btn-no-show-today,
.btn-close-bottom {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.btn-no-show-today:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-close-bottom:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 82, 82, 0.5);
}

.btn-no-show-today i,
.btn-close-bottom i {
    font-size: 0.9rem;
}

/* ===================================
   Event Badge
   =================================== */
   
.event-contact {
    position: absolute;
    top: 12px;
    right: 15px;
    background: var(--accent-blue);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.8rem;
    z-index: 1000;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 2s infinite;
}
.event-badge {
    position: absolute;
    top: 12px;
    right: 140px;
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.8rem;
    z-index: 1000;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 2s infinite;
}

.event-badge i {
    animation: rotate 2s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: transparent;
    padding: 20px 15px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

.hero-icon {
    font-size: 1.6rem;
    color: #FF9800;
    margin-bottom: 6px;
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-icon i {
    animation: bounce 2s infinite;
    position: relative;
}

.hero-icon i::before {
    position: relative;
    z-index: 2;
}

.hero-icon i::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid #FF9800;
    border-radius: 50%;
    opacity: 0;
    animation: soundWave 1.5s ease-out infinite;
}

@keyframes soundWave {
    0% {
        width: 5px;
        height: 5px;
        opacity: 1;
        margin-left: 5px;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        width: 35px;
        height: 35px;
        opacity: 0;
        margin-left: 5px;
    }
}

.hero-promo-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    padding: 6px 12px;
    border-radius: 20px;
    animation: slideInBounce 0.8s ease-out, glow-promo 2s infinite 0.8s;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(255, 82, 82, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translateX(5px) scale(1.05);
    }

    80% {
        transform: translateX(-2px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes glow-promo {

    0%,
    100% {
        box-shadow: 0 3px 10px rgba(255, 82, 82, 0.5);
    }

    50% {
        box-shadow: 0 3px 20px rgba(255, 82, 82, 0.9), 0 0 30px rgba(255, 107, 107, 0.6);
    }
}

@keyframes glow-text {

    0%,
    100% {
        box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
    }

    50% {
        box-shadow: 0 3px 20px rgba(255, 193, 7, 0.8);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-yellow);
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    padding: 0 5px;
    animation: brandPulse 3s ease-in-out infinite;
    position: relative;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes brandPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.03);
        filter: brightness(1.2);
    }
}

@keyframes underlineGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.collab-symbol {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
    animation: rotate360 4s linear infinite, colorShift 3s ease-in-out infinite;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.8), 2px 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes colorShift {

    0%,
    100% {
        color: var(--accent-yellow);
        text-shadow: 0 0 10px rgba(255, 193, 7, 0.8), 2px 2px 10px rgba(0, 0, 0, 0.3);
    }

    50% {
        color: var(--accent-orange);
        text-shadow: 0 0 15px rgba(255, 152, 0, 1), 2px 2px 10px rgba(0, 0, 0, 0.3);
    }
}

.title-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.3;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 14px;
}

/* ===================================
   Tab Navigation
   =================================== */
.tab-container {
    max-width: 920px;
    margin: -12px auto 0;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.tab-navigation {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: none;
    background: #f8f9fa;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-button i {
    font-size: 0.85rem;
}

.tab-button:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(31, 161, 159, 0.4);
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 5px 20px rgba(31, 161, 159, 0.5);
}

/* ===================================
   Content Wrapper
   =================================== */
.content-wrapper {
    max-width: 920px;
    margin: 18px auto;
    padding: 0 15px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Promotion Banner
   =================================== */
.promotion-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 14px 12px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 14px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.promotion-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.banner-highlight {
    position: relative;
    z-index: 1;
}

.banner-highlight h2 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 6px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.price-info {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
    font-weight: 500;
}

.price-highlight {
    font-size: 1rem;
    font-weight: 900;
    color: var(--accent-yellow);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.free-period {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
}

/* ===================================
   Features Grid
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.feature-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 14px 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.feature-details {
    margin-bottom: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-condition {
    font-size: 0.78rem;
    color: #444;
    margin: 5px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.feature-condition::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8rem;
}

.feature-price {
    font-size: 0.78rem;
    color: var(--text-dark);
    margin: 5px 0;
    padding-left: 16px;
    position: relative;
    font-weight: 600;
    line-height: 1.4;
}

.feature-price::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.feature-note {
    font-size: 0.7rem;
    color: #777;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.3;
}

/* Feature Badges */
.feature-badge {
    text-align: center;
    padding: 9px 12px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.8rem;
    line-height: 1.3;
}

.feature-badge.free {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.feature-badge.price {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.feature-badge.highlight {
    background: linear-gradient(135deg, var(--accent-orange), #e67e22);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    animation: glow 2s infinite;
}

.feature-badge.special {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    }

    50% {
        box-shadow: 0 5px 25px rgba(255, 152, 0, 0.7);
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 12px 15px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    flex: 1;
    text-align: center;
}

.footer-text {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #bdc3c7;
}

/* ===================================
   Bottom Actions (하단 우측 버튼들)
   =================================== */
.bottom-actions {
    position: absolute;
    bottom: 9px;
    right: 15px;
    display: flex;
    gap: 7px;
    z-index: 1001;
}

.btn-no-show-today,
.btn-close-bottom {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.58rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.btn-no-show-today:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 3px 11px rgba(0, 0, 0, 0.4);
}

.btn-close-bottom:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 3px 11px rgba(255, 82, 82, 0.5);
}

.btn-no-show-today i,
.btn-close-bottom i {
    font-size: 0.65rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .tab-button {
        min-width: 100%;
        font-size: 1rem;
    }

    .banner-highlight h2 {
        font-size: 1.8rem;
    }

    .price-info {
        font-size: 1.2rem;
    }

    .price-highlight {
        font-size: 1.8rem;
    }

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

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1.1rem;
    }

    .event-badge {
        top: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-icon {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .banner-highlight h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}