/* TLB Full Access Package - Premium Style 
   Based on Management Class Design - FIXED
*/

:root {
    /* Color Palette - Sprint Style */
    --sp-bg-main: #0a0a0a;
    --sp-bg-card: #141414;
    --sp-bg-card-hover: #1c1c1c;

    --sp-text-white: #ffffff;
    --sp-text-gray: #a0a0a0;
    --sp-text-dark: #666666;

    --sp-primary: #7000ff;
    --sp-accent: #ff00aa;
    --sp-gradient-main: linear-gradient(135deg, #7000ff 0%, #ff00aa 100%);
    --sp-gradient-text: linear-gradient(92deg, #fff 0%, #b0b0b0 100%);
    --sp-gradient-gold: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);

    /* Spacing */
    --sp-container-width: 1000px;

    /* Effects */
    --sp-glass: rgba(255, 255, 255, 0.03);
    --sp-glass-border: rgba(255, 255, 255, 0.1);
    --sp-shadow-glow: 0 0 40px rgba(112, 0, 255, 0.15);
}

/* Theme: Beyond Principle (Orange/Yellow) */
.theme-beyond {
    --sp-primary: #FF8C00;
    /* Dark Orange */
    --sp-accent: #FFD700;
    /* Gold */
    --sp-gradient-main: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
    --sp-shadow-glow: 0 0 40px rgba(255, 140, 0, 0.15);
}

.theme-beyond .sp-badge {
    background: rgba(255, 140, 0, 0.1) !important;
    border: 1px solid rgba(255, 140, 0, 0.3) !important;
    color: #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.1) !important;
}

.theme-beyond .sp-hero::before {
    background: radial-gradient(circle, rgba(255, 140, 0, 0.12) 0%, transparent 70%);
}

.theme-beyond .sp-table-footer {
    background: rgba(255, 140, 0, 0.05) !important;
    border-top: 2px solid rgba(255, 140, 0, 0.2) !important;
}

.theme-beyond .sp-chip {
    box-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

/* Reset & Base */
body {
    margin: 0;
    padding: 0;
}

/* Wrapper for Embed */
.sp-wrapper {
    background-color: var(--sp-bg-main) !important;
    color: var(--sp-text-white) !important;
    font-family: 'SUIT', sans-serif !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased;
    width: 100% !important;
    overflow: hidden;
}

.sp-container {
    max-width: var(--sp-container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Typography */
.sp-h1 {
    font-size: 48px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
}

.sp-h2 {
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
}

.sp-h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: white !important;
}

.sp-desc {
    font-size: 17px;
    color: var(--sp-text-gray);
    font-weight: 400;
}

.sp-gradient-text {
    background: var(--sp-gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sp-gold-text {
    background: var(--sp-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}

/* Utilities */
.sp-br-mobile {
    display: none;
}

.mobile-only {
    display: none;
}

/* Components */

/* Hero Section */
.sp-hero {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.sp-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 14px !important;
    background: rgba(112, 0, 255, 0.1) !important;
    border: 1px solid rgba(112, 0, 255, 0.3) !important;
    border-radius: 100px !important;
    color: #b355ff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.1) !important;
}

.sp-hero-logo {
    margin-top: 32px !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s !important;
}

.sp-hero-logo:hover {
    opacity: 1 !important;
}

.sp-hero-logo img {
    height: 24px !important;
    width: auto !important;
}

/* Section Common */
.sp-section {
    padding: 60px 0 !important;
}

.sp-section-header {
    margin-bottom: 40px !important;
    text-align: center !important;
}

.sp-label {
    color: var(--sp-primary) !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-bottom: 6px !important;
}

/* Table Styles - CRITICAL FIX 
   배경 투명화 강제 적용 (왼쪽 흰색 문제 해결)
*/
.sp-wrapper table,
.sp-wrapper tr,
.sp-wrapper th,
.sp-wrapper td {
    background-color: transparent !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.sp-wrapper table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    table-layout: fixed;
}

.sp-wrapper th,
.sp-wrapper td {
    padding: 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
}

.sp-table-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.03) !important;
    /* 컨테이너 배경 유지 */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sp-table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
}

/* Table Header (보통 왼쪽 부분) 수정 */
.sp-wrapper table th,
.sp-table th {
    padding: 16px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    white-space: nowrap !important;
    background: transparent !important;
    /* 재확인 */
}

/* Table Body Cells */
.sp-wrapper table td,
.sp-table td {
    padding: 18px 24px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle !important;
    background: transparent !important;
    /* 재확인 */
    color: var(--sp-text-white) !important;
}

/* Specific Column Styles */
.sp-col-name {
    text-align: left;
}

.sp-col-price {
    text-align: right;
}

.sp-table-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--sp-text-white);
    line-height: 1.5;
}

.sp-table-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--sp-text-white);
    text-align: right;
    white-space: nowrap;
}

.sp-table tr:last-child td {
    border-bottom: none;
}

/* Column Specifics - Desktop */
.sp-table .sp-col-name,
.sp-table .sp-table-name {
    width: 75%;
    font-weight: 500;
}

.sp-table .sp-col-price,
.sp-table .sp-table-price {
    width: 25%;
    text-align: right !important;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

/* Type Text Styling */
.sp-type-text {
    display: inline-block;
    font-size: 13px;
    margin-left: 8px;
    font-weight: 400;
}

/* Type Colors */
.type-physical {
    color: #d0aaff;
}

.type-ebook {
    color: #7fffd4;
}

.type-benefit {
    color: var(--sp-accent);
    font-weight: 700;
}

.sp-table-footer {
    background: rgba(112, 0, 255, 0.05) !important;
    border-top: 2px solid rgba(112, 0, 255, 0.2) !important;
}

.sp-table-footer td {
    padding: 24px;
}

.sp-total-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.sp-total-label {
    font-size: 16px;
    color: #aaa;
}

.sp-total-price-group {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-original-price {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.sp-final-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--sp-accent);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-discount-badge {
    display: inline-block;
    background: rgba(255, 0, 170, 0.1);
    color: var(--sp-accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

/* Redesigned Discount Circle */
.sp-discount-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
    margin-left: 10px;
    line-height: 1;
    padding: 2px;
}

.sp-discount-circle .small {
    font-size: 9px;
    font-weight: 700;
    opacity: 0.9;
}

.sp-discount-circle .big {
    font-size: 15px;
    font-weight: 800;
    margin: 1px 0;
}

/* Chip Style */
.sp-chip {
    display: inline-block;
    background: var(--sp-gradient-main);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 2px 10px rgba(112, 0, 255, 0.3);
    line-height: 1.2;
    position: relative;
    top: -1px;
}

/* Benefits Section */
.sp-benefit-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #333;
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.sp-benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

/* Notice Section */
.sp-notice-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #333;
    border-radius: 16px;
    padding: 24px;
    margin-top: 40px;
}

.sp-notice-title {
    font-size: 15px;
    font-weight: 700;
    color: #aaa;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-notice-list li {
    font-size: 14px;
    color: #999;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.sp-notice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-h1 {
        font-size: 36px !important;
    }

    .sp-h2 {
        font-size: 30px !important;
    }

    .sp-container {
        padding: 0 12px !important;
    }

    .sp-br-mobile {
        display: block !important;
    }

    .mobile-only {
        display: block !important;
        height: 0 !important;
        margin: 0 !important;
    }

    .sp-table-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px !important;
        max-width: 100% !important;
    }

    .sp-table {
        min-width: auto !important;
        width: 100% !important;
    }

    .sp-table th,
    .sp-table td {
        padding: 8px 4px !important;
        font-size: 13px !important;
    }

    .sp-table th:first-child,
    .sp-table td:first-child {
        padding-left: 11px !important;
    }

    .sp-table th:last-child,
    .sp-table td:last-child {
        padding-right: 11px !important;
    }

    .sp-table th {
        font-size: 12px !important;
    }

    .sp-table .sp-col-name,
    .sp-table .sp-table-name {
        width: auto;
    }

    .sp-table .sp-col-price,
    .sp-table .sp-table-price {
        width: 1%;
        white-space: nowrap;
    }

    .sp-type-text {
        display: block;
        margin-left: 0;
        margin-top: 2px;
        font-size: 11px;
    }

    .sp-type-text.type-benefit {
        display: inline-block;
        margin-left: 0;
    }

    .sp-chip {
        display: inline-block;
        margin-left: 4px;
        margin-top: 0;
        font-size: 10px;
        padding: 1px 6px;
        top: 0;
    }

    .sp-table-footer td {
        padding: 32px 16px;
    }

    .sp-total-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .sp-total-price-group {
        text-align: center;
    }

    .sp-final-price {
        font-size: 28px;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }

    .sp-discount-badge {
        display: block;
        margin: 4px auto 0;
        width: fit-content;
    }

    .sp-benefit-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
}