@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --font-base: 'Segoe UI', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --primary: #0078d4;
    --primary-dark: #005a9e;
    --primary-light: #eff6fc;
    --text-dark: #0f172a;
    --text-primary: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --bg-white: #ffffff;
    --bg-gray: #f4f6f9;
    --metro-blue: #0078d4;
    --metro-dark-blue: #005a9e;
    --metro-teal: #008272;
    --metro-purple: #5c2d91;
    --metro-green: #107c10;
    --metro-orange: #d83b01;
    --edu-mobile-nav-space: 0px;
}

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

body {
    font-family: var(--font-base);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dark);
    padding: 11px 23px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-base);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

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

.app-layout {
display: flex;
flex-direction: column;
min-height: 100vh;
}

.s1i2d3e4b5 {
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    left: -260px;
    top: 0;
    z-index: 200;
    transition: left 0.25s ease;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
}

.s1i2d3e4b5.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 150;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.s1i2d3e4b5 .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.s1i2d3e4b5 .logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.s1i2d3e4b5 .close-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-gray);
    border-radius: 2px;
    transition: background 0.15s;
}

.s1i2d3e4b5 .close-btn:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.s1i2d3e4b5 .nav-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.sidebar-login,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 2px;
    color: var(--text-gray);
    font-weight: 400;
    font-size: 13.5px;
    transition: all 0.15s;
    width: 100%;
}

.sidebar-logout {
    color: #e03131;
}

.sidebar-login:hover {
    background: rgba(0, 120, 212, 0.08);
    color: var(--primary);
}

.sidebar-logout:hover {
    background: rgba(224, 49, 49, 0.08);
    color: #e03131;
}

.s1i2d3e4b5 .nav-list li {
    margin-bottom: 3px;
}

.s1i2d3e4b5 .nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 2px;
    color: #475569;
    font-weight: 400;
    font-size: 13.5px;
    transition: all 0.15s ease;
}

.s1i2d3e4b5 .nav-list a:hover {
    background: rgba(0, 120, 212, 0.06);
    color: var(--primary);
}

.s1i2d3e4b5 .nav-list a.active {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.s1i2d3e4b5 .nav-list i {
    font-size: 17px;
}

.table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 24px;
}

.table th.sortable:hover {
    background: var(--bg-gray);
}

.table th.sortable::after {
    content: '↕';
    position: absolute;
    right: 8px;
    color: var(--text-light);
    font-size: 12px;
}

.table th.sortable.sort-asc::after {
    content: '↑';
    color: var(--primary);
}

.table th.sortable.sort-desc::after {
    content: '↓';
    color: var(--primary);
}

.rolling-ticker-container {
    height: 20px;
    width: 90px;
    overflow: hidden;
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent !important;
    display: flex;
    align-items: center
}

.rolling-ticker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    transition: transform 0.5s ease
}

.rolling-ticker-item {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #eee;
    width: 100%
}

.rolling-ticker-rank {
    font-weight: 700;
    color: #0078d4;
    margin-right: 8px;
    font-style: italic
}

.rolling-ticker-keyword {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    letter-spacing: -1px;
    max-width: 50px
}

.rolling-ticker-trend {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px
}

.trend-up {
    color: #ff6b6b
}

.trend-down {
    color: #4dabf7
}

.trend-new {
    color: #fcc419;
    font-weight: 700;
    font-size: 9px
}

.h1e2a3d4e5 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1002;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.h1e2a3d4e5 .hamburger {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    margin-right: 14px;
    color: var(--text-dark);
    border-radius: 2px;
    transition: background 0.15s;
}

.h1e2a3d4e5 .hamburger:hover {
    background: var(--bg-gray);
}

.h1e2a3d4e5 .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 24px;
    letter-spacing: -0.02em;
}

.h1e2a3d4e5 .logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.header-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 2px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 400;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.header-nav .nav-item:hover {
    background: rgba(0, 120, 212, 0.06);
    color: var(--primary);
}

.header-nav .nav-item.active {
    background: rgba(0, 120, 212, 0.09);
    color: var(--primary);
    font-weight: 500;
    border-color: rgba(0, 120, 212, 0.18);
}

.header-nav .nav-item i {
    font-size: 15px;
}

.h1e2a3d4e5 .user-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-left: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    color: #0078d4;
    padding: 0;
    border-radius: 8px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.h1e2a3d4e5 .user-btn:hover {
    background: #0078d4;
    color: #ffffff;
    border-color: #0078d4;
}

.h1e2a3d4e5 .user-dropdown {
    position: relative;
    margin-left: 12px;
}

.h1e2a3d4e5 .user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.h1e2a3d4e5 .user-dropdown-menu.show {
    display: block;
}

.user-dropdown-header {
    padding: 16px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 4px 4px 0 0;
}

.user-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #ffffff;
}

.user-dropdown-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.h1e2a3d4e5 .user-dropdown-content {
    padding: 12px 16px;
}

.h1e2a3d4e5 .user-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.h1e2a3d4e5 .user-dropdown-item:last-child {
    border-bottom: none;
}

.h1e2a3d4e5 .user-dropdown-item .label {
    font-size: 13px;
    color: var(--text-gray);
}

.h1e2a3d4e5 .user-dropdown-item .value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.h1e2a3d4e5 .user-dropdown-footer {
    padding: 8px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.h1e2a3d4e5 .user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 2px;
    font-size: 13px;
    transition: background 0.15s;
    font-family: inherit;
}

.h1e2a3d4e5 .user-dropdown-link:hover {
    background: rgba(0, 120, 212, 0.08);
    color: var(--primary);
}

.h1e2a3d4e5 .user-dropdown-loading,
.h1e2a3d4e5 .user-dropdown-error {
    padding: 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .h1e2a3d4e5 {
        justify-content: space-between;
        padding: 0 16px;
    }

    .h1e2a3d4e5 .hamburger {
        margin-right: 0;
        flex-shrink: 0;
    }

    .h1e2a3d4e5 .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
    }

    .h1e2a3d4e5 .user-btn,
    .h1e2a3d4e5 .user-dropdown {
        margin-left: 0;
        flex-shrink: 0;
    }
}

.edu-mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    body:has(.edu-mobile-nav) {
        --edu-mobile-nav-height: 65px;
        --edu-mobile-nav-inset: env(safe-area-inset-bottom, 0px);
        --edu-mobile-nav-space: calc(var(--edu-mobile-nav-height) + var(--edu-mobile-nav-inset));
        padding-bottom: var(--edu-mobile-nav-space);
    }

    html:has(.edu-mobile-nav) {
        scroll-padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
    }

    .edu-mobile-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 140;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        min-height: var(--edu-mobile-nav-space);
        padding: 4px 8px calc(4px + var(--edu-mobile-nav-inset));
        border: 1px solid #dbe5ef;
        border-bottom: 0;
        border-radius: 16px 16px 0 0;
        background: #fff;
        box-shadow: 0 -4px 20px rgba(24, 55, 83, 0.11);
    }

    .edu-mobile-nav a {
        display: flex;
        min-height: 52px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        border-radius: 10px;
        color: #36475a;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
    }

    .edu-mobile-nav a:focus-visible {
        outline: 2px solid #0069bb;
        outline-offset: -2px;
    }

    .edu-mobile-nav a[aria-current="page"] {
        color: #0069bb;
        font-weight: 800;
    }

    .edu-mobile-nav-icon {
        display: grid;
        place-items: center;
        width: 40px;
        height: 25px;
        border-radius: 999px;
    }

    .edu-mobile-nav a[aria-current="page"] .edu-mobile-nav-icon {
        background: #e8f4ff;
    }

    body:has(.edu-mobile-nav) .fab-container {
        bottom: calc(30px + var(--edu-mobile-nav-space));
    }

    body:has(.edu-mobile-nav) .direct-chat-history-toggle {
        bottom: calc(96px + var(--edu-mobile-nav-space));
    }

    body:has(.edu-mobile-nav) .asc-toast {
        bottom: calc(28px + var(--edu-mobile-nav-space));
    }
}

.main-content {
margin-top: 60px;
padding: 40px 0;
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
background-size: cover;
background-position: center;
background-attachment: fixed;
}

.content-container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast i {
    font-size: 20px;
}

.toast-success i {
    color: #28a745;
}

.toast-error i {
    color: #dc3545;
}

.toast-warning i {
    color: #ffc107;
}

.toast-info i {
    color: #17a2b8;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-box p,
.modal-box .modal-message {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions button {
    min-width: 80px;
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 40px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .content-container {
        padding: 0 20px;
    }

    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .modal-actions {
        display: flex;
        gap: 12px;
        justify-content: space-between;
    }

    .modal-actions .modal-confirm,
    .modal-actions .modal-cancel {
        flex: 1;
        min-width: 0;
    }
}

.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #0078d4;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 120, 212, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.fab-main:hover {
    background: #005a9e;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 120, 212, 0.4);
}

.fab-main.active {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-item {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0078d4;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.fab-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fab-item:nth-child(1) {
    transition-delay: 0.1s;
}

.fab-item:nth-child(2) {
    transition-delay: 0.2s;
}

.fab-menu.active .fab-item {
    animation: fabSprout 0.3s ease forwards;
}

@keyframes fabSprout {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }

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

.fab-label {
    position: absolute;
    right: 60px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.fab-item:hover .fab-label {
    opacity: 1;
}

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

.modal-overlay.show {
    opacity: 1;
}

.modal-overlay.show .modal-box {
    transform: scale(1);
    opacity: 1;
}

.modal-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 32px 28px;
    max-width: 760px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 120, 212, 0.05);
    transform: scale(0.96);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.modal-box.payment-modal {
    max-width: 900px;
    width: 95%;
}

.modal-close-btn,
.metro-modal-close {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.modal-close-btn:hover,
.metro-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.metro-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.metro-sub-header .metro-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #0078d4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.metro-sub-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.metro-sub-header p {
    margin: 6px 0 0 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
}

.metro-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 16px;
}

.subscription-plans-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 580px;
    text-align: center;
}

.subscription-plans-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    text-align: center;
}

.subscription-plans-table th:first-child,
.subscription-plans-table td:first-child {
    text-align: left;
    padding-left: 18px;
}

.subscription-plans-table th:nth-last-child(-n+2),
.subscription-plans-table td:nth-last-child(-n+2) {
    text-align: right;
    padding-right: 18px;
}

.subscription-plans-table td {
    padding: 13px 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: background 0.12s ease;
}

.subscription-plans-table tbody tr:last-child td {
    border-bottom: none;
}

.subscription-plans-table tbody tr:hover td {
    background: #f0f7ff;
}

.subscription-plans-table .plan-name {
    font-weight: 700;
    color: #0078d4;
    font-size: 13.5px;
    white-space: nowrap;
}

.subscription-plans-table .plan-badge-rec {
    display: inline-block;
    background: #0078d4;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: -0.01em;
    vertical-align: middle;
}

.subscription-plans-table .plan-price {
    font-weight: 700;
    color: #0f172a;
    font-size: 13.5px;
    white-space: nowrap;
}

.subscription-plans-table .plan-price.free {
    color: #64748b;
    font-weight: 600;
}

.price-discount-box {
    line-height: 1.35;
    text-align: right;
}

.price-discount-box .orig-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

.price-discount-box .sale-price {
    color: #0078d4;
    font-size: 13.5px;
    font-weight: 800;
}

.direct-chat-special-wrap {
    margin-top: 14px;
}

.direct-chat-special-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #bae6fd;
    border-left: 4px solid #0078d4;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.04);
}

.direct-chat-special-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.direct-chat-special-main strong {
    font-size: 14.5px;
    font-weight: 700;
    color: #0078d4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.direct-chat-special-main p {
    margin: 0;
    font-size: 12.5px;
    color: #475569;
}

.direct-chat-special-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.direct-chat-special-prices span {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.direct-chat-special-prices strong {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.metro-referral-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 14px;
}

.metro-sub-contact {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.metro-sub-contact h4 {
    margin: 0 0 12px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metro-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metro-sub-contact h4 {
    display: none;
}

.btn-metro-telegram,
.btn-metro-kakao {
    height: 48px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.12s ease;
}

.btn-metro-telegram {
    background: #0088cc;
    color: #ffffff;
}

.btn-metro-telegram:hover {
    background: #006ca3;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.btn-metro-kakao {
    background: #fee500;
    color: #191919;
}

.btn-metro-kakao:hover {
    background: #f5dc00;
    color: #191919;
    transform: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    .modal-box {
        padding: 20px 16px 20px;
        border-radius: 10px;
    }

    .metro-sub-header h3 {
        font-size: 19px;
    }

    .direct-chat-special-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .direct-chat-special-prices {
        align-items: flex-start;
        width: 100%;
        padding-top: 8px;
        border-top: 1px dashed #bae6fd;
    }

    .metro-contact-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes metroSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.site-footer {
    display: block;
    width: 100%;
    margin: 0;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    box-sizing: border-box;
}
.footer-container {
    width: 100%;
    max-width: 1424px;
    margin: 0 auto;
    padding: 34px 32px 24px;
    box-sizing: border-box;
}
.edu-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.edu-footer__brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    padding: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.03em;
    text-decoration: none;
}
.edu-footer__brand i {
    color: #0078d4;
    font-size: 21px;
}
.edu-footer__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.edu-footer__link {
    display: inline-block;
    padding: 5px 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color .15s ease;
}
.edu-footer__link:hover {
    color: #0f172a;
}
.edu-footer__link.is-active {
    color: #0078d4;
    font-weight: 700;
}
.edu-footer__link:focus-visible {
    border-radius: 2px;
    outline: 2px solid #0078d4;
    outline-offset: 3px;
}
.edu-footer__bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .footer-container {
        padding: 28px 18px 22px;
    }
    .edu-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .edu-footer__brand {
        font-size: 17px;
    }
    .edu-footer__brand i {
        font-size: 20px;
    }
    .edu-footer__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px 20px;
    }
    .edu-footer__link {
        padding: 4px 0;
        font-size: 13px;
    }
    .edu-footer__bottom {
        margin-top: 20px;
        padding-top: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .edu-footer__link {
        transition: none;
    }
}

.pc-side-banner-wrap,
.pc-side-banner-daily,
.pc-side-banner-outsource {
    display: none;
}

@media (min-width: 1024px) {
    .pc-side-banner-wrap {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 220px;
        position: fixed;
        top: 150px;
        right: 30px;
        z-index: 100;
    }
    .pc-side-banner-daily,
    .pc-side-banner-outsource {
        display: block;
        width: 100%;
    }
    .pc-side-banner-daily-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        padding: 30px 20px;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .pc-side-banner-daily-inner:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }
    .pc-side-banner-daily-logo {
        width: 100%;
        max-width: 140px;
        margin-bottom: 16px;
    }
    .pc-side-banner-daily-logo img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        mix-blend-mode: multiply; 
    }
    .pc-side-banner-daily-title {
        font-size: 18px;
        font-weight: 800;
        color: #191919;
        margin: 0 0 10px;
        letter-spacing: -0.5px;
    }
    .pc-side-banner-daily-desc {
        font-size: 13px;
        color: #666;
        line-height: 1.5;
        margin: 0 0 20px;
        word-break: keep-all;
    }
    .pc-side-banner-daily-cta {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        background: #12b886;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px 0;
        border-radius: 8px;
        gap: 6px;
        transition: background 0.2s;
    }
    .pc-side-banner-daily-inner:hover .pc-side-banner-daily-cta {
        background: #0ca678;
    }
    .pc-side-banner-outsource-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        padding: 24px 20px;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-decoration: none;
        color: inherit;
    }
    .pc-side-banner-outsource-inner:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }
    .pc-side-banner-outsource-logo {
        width: 100%;
        max-width: 140px;
        margin-bottom: 16px;
    }
    .pc-side-banner-outsource-logo img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        mix-blend-mode: multiply;
    }
    .pc-side-banner-outsource-title {
        font-size: 16px;
        font-weight: 800;
        color: #191919;
        margin: 0 0 8px;
        letter-spacing: -0.5px;
    }
    .pc-side-banner-outsource-desc {
        font-size: 12px;
        color: #666;
        line-height: 1.5;
        margin: 0 0 16px;
        word-break: keep-all;
    }
    .pc-side-banner-outsource-cta {
        font-size: 13px;
        font-weight: 700;
        color: #fff;
        background: #0078d4;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 10px 0;
        border-radius: 8px;
        gap: 6px;
        transition: background 0.2s;
    }
    .pc-side-banner-outsource-inner:hover .pc-side-banner-outsource-cta {
        background: #005a9e;
    }
}

.fab-main,
.fab-main:hover,
.fab-main.active {
    width: 56px;
    height: 56px;
    font-size: 22px;
    background: #0078d4;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 120, 212, 0.32);
}

.fab-main:hover {
    background: #005a9e;
}

.fab-item {
    border-radius: 8px;
    color: #0078d4;
    background: #ffffff;
    border-color: #e2e8f0;
}

/* ============================================================
   Metro Custom Vertical Scrollbar Styles
   ============================================================ */

/* Universal Metro Scrollbar for all modals & scrollable areas */
#subscriptionModal .modal-box,
#subscriptionModal #subscriptionPlansContent,
#subscriptionPlansContent,
.modal-box,
.payment-request-modal-content,
.dct-dialog,
.dct-modal-body,
.metro-custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

#subscriptionModal .modal-box::-webkit-scrollbar,
#subscriptionModal #subscriptionPlansContent::-webkit-scrollbar,
#subscriptionPlansContent::-webkit-scrollbar,
.modal-box::-webkit-scrollbar,
.payment-request-modal-content::-webkit-scrollbar,
.dct-dialog::-webkit-scrollbar,
.dct-modal-body::-webkit-scrollbar,
.metro-custom-scroll::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

#subscriptionModal .modal-box::-webkit-scrollbar-track,
#subscriptionModal #subscriptionPlansContent::-webkit-scrollbar-track,
#subscriptionPlansContent::-webkit-scrollbar-track,
.modal-box::-webkit-scrollbar-track,
.payment-request-modal-content::-webkit-scrollbar-track,
.dct-dialog::-webkit-scrollbar-track,
.dct-modal-body::-webkit-scrollbar-track,
.metro-custom-scroll::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 0 !important;
}

#subscriptionModal .modal-box::-webkit-scrollbar-thumb,
#subscriptionModal #subscriptionPlansContent::-webkit-scrollbar-thumb,
#subscriptionPlansContent::-webkit-scrollbar-thumb,
.modal-box::-webkit-scrollbar-thumb,
.payment-request-modal-content::-webkit-scrollbar-thumb,
.dct-dialog::-webkit-scrollbar-thumb,
.dct-modal-body::-webkit-scrollbar-thumb,
.metro-custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 0 !important;
    transition: background 0.15s ease;
}

#subscriptionModal .modal-box::-webkit-scrollbar-thumb:hover,
#subscriptionModal #subscriptionPlansContent::-webkit-scrollbar-thumb:hover,
#subscriptionPlansContent::-webkit-scrollbar-thumb:hover,
.modal-box::-webkit-scrollbar-thumb:hover,
.payment-request-modal-content::-webkit-scrollbar-thumb:hover,
.dct-dialog::-webkit-scrollbar-thumb:hover,
.dct-modal-body::-webkit-scrollbar-thumb:hover,
.metro-custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #0078d4;
}

#subscriptionModal .modal-box::-webkit-scrollbar-button,
#subscriptionModal #subscriptionPlansContent::-webkit-scrollbar-button,
#subscriptionPlansContent::-webkit-scrollbar-button,
.modal-box::-webkit-scrollbar-button,
.payment-request-modal-content::-webkit-scrollbar-button,
.dct-dialog::-webkit-scrollbar-button,
.dct-modal-body::-webkit-scrollbar-button,
.metro-custom-scroll::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

#subscriptionModal .modal-box::-webkit-scrollbar-corner,
#subscriptionModal #subscriptionPlansContent::-webkit-scrollbar-corner,
#subscriptionPlansContent::-webkit-scrollbar-corner,
.modal-box::-webkit-scrollbar-corner,
.payment-request-modal-content::-webkit-scrollbar-corner,
.dct-dialog::-webkit-scrollbar-corner,
.dct-modal-body::-webkit-scrollbar-corner,
.metro-custom-scroll::-webkit-scrollbar-corner {
    background: transparent;
}

/* Metro Subscription Modal Box & Content Container */
#subscriptionModal .modal-box {
    background: #ffffff !important;
    border: 2px solid #0f172a !important;
    border-radius: 0 !important;
    padding: 24px 28px 20px !important;
    width: min(980px, calc(100vw - 24px)) !important;
    max-width: 980px !important;
    max-height: min(90vh, 880px) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#subscriptionModal .metro-sub-header {
    flex-shrink: 0;
    margin-bottom: 12px;
}

#subscriptionModal #subscriptionPlansContent {
    flex: 1 1 auto;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 8px;
    margin-right: -4px;
    margin-bottom: 12px;
}

#subscriptionModal .metro-sub-contact {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

#subscriptionModal .subscription-plans-table .plan-name,
#subscriptionModal .plan-name {
    color: #0078d4 !important;
}

#subscriptionModal .metro-kicker,
#subscriptionModal .metro-sub-header h3 {
    color: inherit;
}

#subscriptionModal .metro-kicker {
    color: #0078d4;
}

#subscriptionModal .metro-sub-header h3 {
    color: #0f172a;
}
.metro-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 2px 8px;
}
.metro-plan-card {
    display: flex;
    flex-direction: column;
    min-height: 228px;
    padding: 16px 16px 14px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #0078d4;
    background: #ffffff;
    border-radius: 0;
}
.metro-plan-card.is-rec {
    border-color: #0078d4;
    background: #f3f9fd;
    box-shadow: 0 0 0 1px #0078d4;
}
.metro-plan-card.is-free {
    border-top-color: #64748b;
}
.metro-plan-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
}
.metro-plan-card-top h4 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.metro-plan-badge {
    flex: 0 0 auto;
    padding: 2px 7px;
    background: #0078d4;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.metro-plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 14px;
}
.metro-plan-price strong {
    color: #0078d4;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}
.metro-plan-card.is-free .metro-plan-price strong {
    color: #334155;
}
.metro-plan-price em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}
.metro-plan-price .metro-plan-orig {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: line-through;
}
.metro-plan-year {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}
.metro-plan-year b {
    color: #334155;
    font-weight: 700;
}
.metro-plan-feats {
    margin: 16px 0 0;
    padding: 12px 0 0;
    list-style: none;
    border-top: 1px solid #e2e8f0;
}
.metro-plan-feats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    color: #64748b;
    font-size: 12px;
}
.metro-plan-feats b {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}
.metro-plan-extra {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.metro-plan-extra-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0078d4;
    background: #fff;
}
.metro-plan-extra-card strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}
.metro-plan-extra-card p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}
.metro-plan-extra-card .metro-plan-extra-prices {
    text-align: right;
    color: #64748b;
    font-size: 12px;
}
.metro-plan-extra-card .metro-plan-extra-prices b {
    display: block;
    margin-top: 3px;
    color: #0078d4;
    font-size: 16px;
    font-weight: 800;
}
.metro-ticket-strip {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.metro-ticket-strip-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}
.metro-ticket-strip-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
}
.metro-ticket-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.metro-ticket-card {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0078d4;
    background: #fff;
}
.metro-ticket-card strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}
.metro-ticket-card b {
    display: block;
    margin-top: 8px;
    color: #0078d4;
    font-size: 16px;
    font-weight: 800;
}
.metro-ticket-card em {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
}
.metro-ticket-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 16px;
    background: #0078d4;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.metro-ticket-cta:hover {
    background: #106ebe;
    color: #fff;
}
.metro-referral-tag {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #c7e0f4;
    background: #eff6fc;
    color: #005a9e;
    font-size: 13px;
    font-weight: 700;
}
@media (max-width: 860px) {
    .metro-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .metro-ticket-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .metro-plan-grid {
        grid-template-columns: 1fr;
    }
    .metro-plan-extra-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .metro-plan-extra-card .metro-plan-extra-prices {
        text-align: left;
    }
    .metro-ticket-grid {
        grid-template-columns: 1fr;
    }
}
