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

:root {
    --gh-blue: #0569ff;
    --gh-blue-deep: #004fc4;
    --gh-blue-soft: #e9f2ff;
    --gh-sidebar: #1b1b1b;
    --gh-sidebar-muted: #8f98a3;
    --gh-bg: #f5f7fb;
    --gh-surface: #ffffff;
    --gh-border: #d9e1ee;
    --gh-border-strong: #c6d2e3;
    --gh-text: #222222;
    --gh-text-soft: #5d6673;
    --gh-accent: #2f87ff;
    --gh-black-soft: #111111;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #f3f6fb 100%);
    color: var(--gh-text);
    letter-spacing: -0.02em;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.portal-shell {
    display: flex;
    min-height: calc(100vh - 56px);
}

.portal-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #171717 0%, var(--gh-sidebar) 100%);
    color: #fff;
    padding: 18px 18px 28px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-primary-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.sidebar-primary-link {
    display: block;
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #f5f7fb;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-primary-link.is-active {
    background: linear-gradient(90deg, rgba(5, 105, 255, 0.24) 0%, rgba(0, 79, 196, 0.3) 100%);
    border-color: rgba(84, 153, 255, 0.55);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sidebar-primary-link.is-disabled {
    color: #b9c0ce;
    opacity: 0.75;
}

.sidebar-section-label {
    margin: 22px 0 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gh-sidebar-muted);
    letter-spacing: 0.08em;
}

.sidebar-link {
    display: block;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 8px;
    color: #d9dee8;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-link.is-active {
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--gh-blue);
    color: #ffffff;
    padding-left: 11px;
}

.sidebar-link.is-disabled {
    color: #b9c0ce;
    opacity: 0.75;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

.sidebar-link--logout {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-support-copy {
    margin-top: 12px;
    color: var(--gh-sidebar-muted);
    font-size: 12px;
    line-height: 1.6;
}

.portal-main {
    flex: 1;
    min-width: 0;
}

.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: linear-gradient(90deg, var(--gh-blue) 0%, #4f6fe7 100%);
    color: #fff;
    border-bottom: 0;
    box-shadow: 0 8px 22px rgba(5, 105, 255, 0.16);
    position: relative;
    z-index: 5;
}

.portal-topbar-brand {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-width: 0;
}

.portal-topbar-logo {
    display: block;
    width: auto;
    height: 44px;
    max-width: 210px;
    flex: 0 0 auto;
}

.portal-topbar-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    transform: translate(-15px, -8px);
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.9);
}

.portal-topbar-user {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.portal-topbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}

.portal-content {
    padding: 28px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #151515;
}

.info-banner {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #cfe0ff;
    background: linear-gradient(180deg, #fbfdff 0%, #edf4ff 100%);
    color: #2254a8;
    font-size: 14px;
}

.summary-card,
.panel {
    background: var(--gh-surface);
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.summary-card {
    padding: 18px 20px;
}

.summary-card-label {
    font-size: 13px;
    color: var(--gh-text-soft);
    margin-bottom: 8px;
}

.summary-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gh-blue);
}

.panel {
    padding: 20px;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1a1a1a;
}

.panel-title--sub {
    margin-top: 22px;
    font-size: 16px;
}

.panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.panel-action-button {
    text-decoration: none;
}

.panel + .panel {
    margin-top: 22px;
}

.panel-subtitle {
    margin-bottom: 14px;
    color: var(--gh-text-soft);
    font-size: 14px;
}

.service-detail-subsection {
    margin-top: 18px;
}

.service-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-detail-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--gh-border-strong);
    background: #fff;
    color: var(--gh-blue);
    font-size: 14px;
    font-weight: 600;
}

.service-traffic-chart-card {
    margin-top: 10px;
    padding: 18px 18px 10px;
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    background: linear-gradient(180deg, #fcfdff 0%, #f7faff 100%);
    min-height: 280px;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    grid-template-areas:
        "usage billing profile"
        "usage news tickets";
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-hero-grid > .panel {
    margin-top: 0;
}

.dashboard-panel--usage {
    grid-area: usage;
}

.dashboard-panel--billing {
    grid-area: billing;
}

.dashboard-panel--profile {
    grid-area: profile;
}

.dashboard-panel--news {
    grid-area: news;
}

.dashboard-panel--tickets {
    grid-area: tickets;
}

.dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    min-height: 54px;
}

.dashboard-panel-subtitle {
    margin-top: 4px;
    color: var(--gh-text-soft);
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-panel-body {
    padding-top: 18px;
}

.dashboard-usage {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.dashboard-usage-chart {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--dashboard-chart);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.dashboard-usage-chart-hole {
    position: absolute;
    inset: 50%;
    width: 106px;
    height: 106px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gh-text-soft);
    box-shadow: 0 6px 18px rgba(35, 53, 87, 0.08);
}

.dashboard-usage-chart-hole strong {
    font-size: 34px;
    line-height: 1;
    color: var(--gh-blue);
}

.dashboard-usage-chart-hole span {
    font-size: 12px;
    margin-top: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-usage-legend {
    display: grid;
    gap: 12px;
}

.dashboard-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    border: 1px solid #d8e4f6;
}

.dashboard-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.dashboard-legend-label {
    flex: 1;
    color: var(--gh-text-soft);
}

.dashboard-billing-value {
    font-size: 52px;
    line-height: 1.02;
    text-align: right;
    font-weight: 300;
    letter-spacing: -0.05em;
    color: #4a5263;
    margin: 0 0 12px;
}

.dashboard-billing-meta {
    display: grid;
    gap: 6px;
    justify-items: end;
    color: #5d6473;
    font-size: 15px;
}

.dashboard-profile-name {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0 0 14px;
    text-align: right;
}

.dashboard-profile-line,
.dashboard-profile-status {
    text-align: right;
    color: #5d6473;
    font-size: 15px;
    margin-bottom: 6px;
}

.dashboard-feed {
    display: grid;
    gap: 8px;
}

.dashboard-feed-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e7f0;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.dashboard-feed-title {
    font-size: 14px;
    line-height: 1.35;
    color: var(--gh-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-feed-meta {
    font-size: 12px;
    color: var(--gh-text-soft);
}

.dashboard-feed-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-feed-status {
    font-size: 12px;
    color: var(--gh-blue);
}

.dashboard-feed-empty {
    padding: 16px 14px;
    border-radius: 14px;
    background: #f8faff;
    color: var(--gh-text-soft);
    font-size: 14px;
}

.dashboard-service-count {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    border-top: 1px solid var(--gh-border);
    padding: 14px 12px;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: #f2f6fa;
}

.table-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
}

.table-status-badge.is-active {
    background: #ecf9f1;
    border-color: #cbeed8;
    color: #16794d;
}

.table-status-badge.is-pending {
    background: #fff8e8;
    border-color: #f3dfab;
    color: #8e6510;
}

.table-status-badge.is-suspended,
.table-status-badge.is-muted {
    background: #f4f6fa;
    border-color: #dce3ee;
    color: #596172;
}

.table-action-link.is-disabled {
    color: var(--gh-text-soft);
    cursor: default;
    pointer-events: none;
}

@media (max-width: 1280px) {
    .dashboard-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "usage usage"
            "billing profile"
            "news tickets";
    }
}

@media (max-width: 860px) {
    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-grid {
        grid-template-areas:
            "usage"
            "billing"
            "profile"
            "news"
            "tickets";
    }

    .dashboard-usage {
        grid-template-columns: 1fr;
    }

    .dashboard-usage-chart {
        width: 220px;
        height: 220px;
    }

    .dashboard-billing-value,
    .dashboard-profile-name,
    .dashboard-profile-line,
    .dashboard-profile-status {
        text-align: left;
    }

    .dashboard-billing-meta {
        justify-items: start;
    }

    .dashboard-panel-head {
        min-height: auto;
    }

    .dashboard-panel-body {
        padding-top: 14px;
    }
}

.data-table td a {
    color: var(--gh-blue-deep);
}

.data-table th {
    color: var(--gh-text-soft);
    font-weight: 600;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--gh-border);
    background: #fff;
    color: var(--gh-text);
}

.pagination-link.is-disabled {
    opacity: 0.45;
}

.pagination-status {
    color: var(--gh-text-soft);
    font-size: 14px;
}

.table-action-link {
    font-weight: 600;
}

.table-action-muted {
    color: var(--gh-text-soft);
    opacity: 0.7;
}

.mode-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--gh-border-strong);
    margin-right: 8px;
    color: var(--gh-text-soft);
    background: #fff;
    font-weight: 600;
}

.mode-link.is-active {
    color: #fff;
    background: var(--gh-blue);
    border-color: var(--gh-blue);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.account-form-grid {
    display: grid;
    gap: 10px;
    max-width: 640px;
}

.domain-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 12px;
    max-width: 720px;
}

.domain-subpanel {
    margin-bottom: 18px;
}

.domain-record-form {
    display: grid;
    gap: 14px;
}

.domain-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.domain-row-actions {
    display: inline-block;
    margin-right: 8px;
}

.domain-row-actions summary {
    list-style: none;
    cursor: pointer;
}

.domain-row-actions summary::-webkit-details-marker {
    display: none;
}

.domain-row-form {
    margin-top: 12px;
    min-width: 280px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    background: #fbfcff;
}

.domain-row-form-actions {
    display: flex;
    justify-content: flex-end;
}

.domain-inline-delete {
    display: inline-block;
}

.domain-delete-form {
    margin: 18px 0;
}

.account-password-panel {
    display: grid;
    gap: 16px;
}

.account-password-rules {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    background: #fbfcff;
}

.account-password-rule {
    color: var(--gh-text-soft);
    font-size: 14px;
}

.profile-item {
    padding: 18px 20px;
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.profile-item-label {
    font-size: 13px;
    color: var(--gh-text-soft);
    margin-bottom: 8px;
}

.profile-item-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gh-text);
    word-break: break-word;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-item {
    padding: 18px 20px;
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    background: #fbfcff;
}

.detail-item-label {
    font-size: 13px;
    color: var(--gh-text-soft);
    margin-bottom: 8px;
}

.detail-item-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
}

.invoice-total-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.invoice-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gh-border);
    font-size: 14px;
}

.invoice-total-row.is-emphasis {
    font-size: 16px;
}

.invoice-document-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.invoice-detail-layout {
    display: block;
}

.invoice-detail-layout--with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.invoice-detail-side {
    position: sticky;
    top: 84px;
}

.invoice-print-button {
    cursor: pointer;
}

.invoice-document {
    position: relative;
    margin-top: 10px;
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #fdfefe 0%, #f7faff 100%);
    overflow: hidden;
}

.invoice-document-sheet {
    padding: 28px 26px 24px;
    background: #fff;
}

.invoice-status-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    min-width: 104px;
    padding: 10px 16px;
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}

.invoice-status-ribbon--paid {
    background: #ecf9f1;
    color: #16794d;
    border: 1px solid #cbeed8;
}

.invoice-status-ribbon--unpaid,
.invoice-status-ribbon--cancelled,
.invoice-status-ribbon--취소완료 {
    background: #fff5f5;
    color: #b42318;
    border: 1px solid #f2c6c2;
}

.invoice-document-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-right: 124px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gh-border);
}

.invoice-brand-block {
    display: grid;
    gap: 4px;
}

.invoice-brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1f2937;
}

.invoice-brand-code {
    font-size: 20px;
    font-weight: 700;
    color: #8b95a7;
}

.invoice-header-meta {
    display: grid;
    gap: 8px;
    min-width: 250px;
}

.invoice-header-meta-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    font-size: 14px;
}

.invoice-header-meta-row span {
    color: var(--gh-text-soft);
    font-weight: 600;
}

.invoice-header-meta-row strong {
    color: var(--gh-text);
    font-weight: 700;
}

.invoice-document-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 260px;
    gap: 18px;
    padding: 26px 0 28px;
}

.invoice-party-block,
.invoice-balance-block {
    padding: 18px 20px;
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    background: #fbfcff;
}

.invoice-party-label {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gh-text-soft);
}

.invoice-party-value {
    display: grid;
    gap: 4px;
    font-size: 14px;
    color: var(--gh-text);
    line-height: 1.6;
}

.invoice-party-value strong {
    font-size: 16px;
}

.invoice-balance-block {
    align-content: start;
    gap: 10px;
}

.invoice-balance-row {
    display: grid;
    gap: 6px;
    padding: 8px 0;
}

.invoice-balance-row span {
    color: var(--gh-text-soft);
    font-size: 13px;
}

.invoice-balance-row strong {
    font-size: 18px;
    color: #111827;
}

.invoice-document-table .table-wrap {
    overflow: visible;
}

.invoice-document-table .data-table th,
.invoice-document-table .data-table td {
    font-size: 13px;
}

.invoice-description-line {
    line-height: 1.65;
}

.invoice-description-line + .invoice-description-line {
    margin-top: 2px;
}

.invoice-document-total-wrap {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
}

.invoice-document-total-wrap .invoice-total-list {
    width: min(100%, 360px);
    margin-bottom: 0;
}

.invoice-payment-panel {
    padding: 20px;
}

.invoice-payment-select-form {
    margin-top: 16px;
}

.invoice-payment-select {
    width: 100%;
}

.invoice-payment-body {
    margin-top: 16px;
    border-top: 1px solid var(--gh-border);
    padding-top: 16px;
}

.payment-method-note {
    display: grid;
    gap: 14px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gh-text);
}

.payment-method-bank-text {
    white-space: normal;
}

.payment-method-reference {
    margin: 0;
    color: var(--gh-text-soft);
}

.payment-method-reference strong {
    color: var(--gh-text);
}

.payment-method-form {
    margin: 0;
}

.payment-method-submit {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.payment-method-empty {
    margin: 0;
    color: var(--gh-text-soft);
}

.news-detail-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.news-detail-meta {
    margin-bottom: 20px;
    color: var(--gh-text-soft);
    font-size: 14px;
}

.news-detail-content {
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
}

.ticket-thread {
    display: grid;
    gap: 14px;
}

.ticket-message {
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 18px 20px;
    background: #fbfcff;
}

.ticket-message-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.ticket-message-head span {
    color: var(--gh-text-soft);
}

.ticket-message-body {
    line-height: 1.8;
    font-size: 15px;
}

.ticket-message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ticket-detail-close,
.ticket-detail-submit {
    cursor: pointer;
}

.ticket-detail-submit {
    border: 1px solid var(--gh-blue);
    background: var(--gh-blue);
    color: #fff;
}

.ticket-request-form {
    display: grid;
    gap: 16px;
    max-width: 860px;
}

.ticket-request-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 12px;
}

.ticket-request-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-request-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--gh-border);
    border-radius: 999px;
    background: #fbfcff;
    font-size: 14px;
}

.ticket-request-radio input {
    margin: 0;
}

.ticket-request-textarea {
    min-height: 240px;
    resize: vertical;
}

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

.ticket-attachment-panel {
    display: grid;
    gap: 12px;
}

.ticket-attachment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ticket-attachment-list {
    display: grid;
    gap: 10px;
}

.ticket-attachment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.ticket-attachment-empty {
    padding: 14px 16px;
    border: 1px dashed var(--gh-border);
    border-radius: 14px;
    color: var(--gh-text-soft);
    background: #fbfcff;
    font-size: 14px;
}

.ticket-attachment-add[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

.affiliate-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.affiliate-hero {
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef3ff 48%, #ffffff 100%);
}

.affiliate-hero-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #2f4c67;
}

.affiliate-hero-desc {
    margin-top: 6px;
    color: var(--gh-text-soft);
    font-size: 15px;
}

.affiliate-shortcuts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
}

.affiliate-shortcut-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(180deg, #8dca39 0%, #5ca31d 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.affiliate-shortcut-btn.is-disabled {
    background: linear-gradient(180deg, #c8d3e4 0%, #a7b4c8 100%);
    cursor: not-allowed;
}

.affiliate-shortcut-note {
    color: var(--gh-text-soft);
    font-size: 13px;
}

.affiliate-empty-state {
    padding: 22px 24px;
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    line-height: 1.8;
}

.affiliate-error-banner {
    margin-bottom: 18px;
}

.affiliate-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.affiliate-section-grid > .panel {
    margin-top: 0;
}

.affiliate-stat-table th {
    width: 40%;
    background: #fafafa;
    color: #58708a;
    font-weight: 500;
}

.affiliate-stat-table td {
    color: #44505c;
}

.affiliate-stat-strong {
    font-size: 16px;
    font-weight: 700;
    color: #3a5772;
}

.affiliate-link-text {
    color: var(--gh-blue-deep);
    font-weight: 700;
    word-break: break-all;
}

.affiliate-plan-link {
    color: #2e79d4;
    word-break: break-all;
    line-height: 1.6;
}

.affiliate-plan-link:hover {
    text-decoration: underline;
}

.affiliate-product-summary {
    line-height: 1.5;
    color: #53697e;
}

.affiliate-show-products {
    display: inline-flex;
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1676d8 0%, #0569ff 100%);
    color: #fff;
    font-weight: 700;
}

.affiliate-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow-y: auto;
    padding: 24px;
}

.affiliate-modal:target {
    display: block;
}

.affiliate-modal-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.affiliate-modal-dialog {
    position: relative;
    width: 900px;
    max-width: 92%;
    max-height: calc(100vh - 48px);
    margin: 0 auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.affiliate-modal-head {
    padding: 24px 26px;
    border-bottom: 1px solid #ededed;
    font-size: 22px;
    font-weight: 700;
    color: #62707d;
}

.affiliate-modal-close {
    position: absolute;
    right: 22px;
    top: 18px;
    color: #cfcfcf;
    font-size: 26px;
    font-weight: 700;
}

.affiliate-modal-body {
    padding: 28px 26px 34px;
    overflow-y: auto;
}

.affiliate-modal-body h4 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #62707d;
}

.affiliate-modal-body ul {
    margin: 0;
    padding-left: 22px;
}

.affiliate-modal-body li {
    margin-bottom: 8px;
    color: #4a89d0;
    font-size: 18px;
    line-height: 1.45;
}

.panel--nested {
    padding: 0;
    overflow: hidden;
}

.panel--nested .panel-title {
    padding: 20px 20px 0;
}

.panel--nested .table-wrap {
    padding: 0 20px 20px;
}

@media (max-width: 960px) {
    .portal-shell {
        flex-direction: column;
        min-height: calc(100vh - 56px);
    }

    .portal-sidebar {
        width: 100%;
    }

    .summary-grid,
    .summary-grid--compact,
    .profile-grid,
    .detail-grid,
    .invoice-document-summary,
    .affiliate-section-grid {
        grid-template-columns: 1fr;
    }

    .invoice-document-header {
        flex-direction: column;
        padding-right: 0;
    }

    .invoice-detail-layout--with-sidebar {
        grid-template-columns: 1fr;
    }

    .invoice-detail-side {
        position: static;
    }

    .invoice-header-meta {
        min-width: 0;
    }

    .invoice-document-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .invoice-status-ribbon {
        position: static;
        display: inline-flex;
        margin: 0 0 18px auto;
    }

    .affiliate-modal {
        padding: 12px;
    }

    .affiliate-modal-dialog {
        max-width: 100%;
        max-height: calc(100vh - 24px);
    }

    .affiliate-modal-head {
        padding: 20px 20px;
        font-size: 20px;
    }

    .affiliate-modal-close {
        right: 18px;
        top: 14px;
    }

    .affiliate-modal-body {
        padding: 22px 20px 26px;
    }

    .invoice-document-sheet {
        padding: 22px 18px 18px;
    }

    .invoice-header-meta-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media print {
    .portal-topbar,
    .portal-sidebar,
    .page-header,
    .invoice-document-actions {
        display: none !important;
    }

    .portal-shell,
    .portal-main {
        display: block;
        min-height: auto;
    }

    .portal-content {
        padding: 0;
    }

    .panel {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .invoice-document {
        border: 0;
        box-shadow: none;
        margin-top: 0;
    }

    .invoice-document-sheet {
        padding: 0;
    }
}

.page-auth {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1b4fb4 0%, #0b2f70 38%, #111111 100%);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 34px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 80px rgba(7, 20, 45, 0.24);
}

.auth-brand-line {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-brand-logo {
    display: block;
    width: auto;
    height: 42px;
    max-width: min(100%, 220px);
}

.auth-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(2px);
    letter-spacing: -0.03em;
    color: #4f6b95;
}

.auth-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff2f2;
    border: 1px solid #efc1c1;
    color: #aa2e2e;
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-label {
    font-size: 14px;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    font-size: 15px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--gh-text-soft);
    font-size: 14px;
}

.auth-submit {
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--gh-blue);
    color: #fff;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(5, 105, 255, 0.22);
}

.auth-links {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--gh-blue-deep);
}

.auth-help {
    margin-top: 18px;
    color: var(--gh-text-soft);
    font-size: 14px;
}

@media (max-width: 960px) {
    .portal-topbar {
        padding: 14px 18px;
        gap: 12px;
    }

    .portal-topbar-brand {
        gap: 10px;
    }

    .portal-topbar-logo {
        height: 35px;
        max-width: 170px;
    }

    .portal-topbar-title {
        font-size: 16px;
        transform: translate(-5px, -6px);
    }
}

@media (max-width: 640px) {
    .auth-brand-logo {
        height: 34px;
        max-width: 170px;
    }

    .auth-title {
        font-size: 16px;
        transform: translateY(2px);
    }
}

.cdn-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cdn-tool-card {
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    padding: 18px;
    background: #f8fbff;
}

.cdn-tool-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gh-blue-deep);
}

.cdn-tool-card-subtitle {
    margin-top: 6px;
    margin-bottom: 14px;
    color: var(--gh-text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.cdn-tool-textarea {
    width: 100%;
    min-height: 180px;
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    padding: 14px 15px;
    resize: vertical;
    font: inherit;
    line-height: 1.5;
}

.cdn-tool-actions {
    margin-top: 12px;
}

.cdn-tool-submit {
    width: auto;
    min-width: 136px;
    margin-top: 0;
}

.cdn-tool-submit--ghost {
    background: #eef5ff;
    color: var(--gh-blue-deep);
}

.cdn-tool-result,
.cdn-inline-message {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gh-text-soft);
}

.cdn-tool-result.is-success,
.cdn-inline-message.is-visible {
    color: #196d46;
}

.cdn-tool-result.is-error,
.cdn-inline-message.is-error {
    color: #aa2e2e;
}

.cdn-traffic-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.cdn-traffic-toolbar-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cdn-traffic-toolbar-label {
    font-size: 14px;
    color: var(--gh-text);
}

.cdn-traffic-range-display {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    min-width: 228px;
    padding: 0 16px;
    border: 1px solid var(--gh-border-strong);
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    cursor: pointer;
}

.cdn-traffic-controls {
    display: grid;
    grid-template-columns: 180px 180px 120px;
    gap: 12px;
    align-items: end;
}

.cdn-traffic-chart {
    margin-top: 12px;
    padding: 18px;
    border: 1px solid var(--gh-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    overflow-x: auto;
    min-height: 220px;
}

.cdn-line-chart-wrap {
    min-width: 640px;
}

.cdn-line-chart {
    display: block;
    width: 100%;
    height: 220px;
}

.cdn-chart-guide {
    stroke: rgba(5, 105, 255, 0.12);
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.cdn-chart-area {
    fill: rgba(5, 105, 255, 0.12);
    stroke: none;
}

.cdn-chart-line {
    fill: none;
    stroke: #0569ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cdn-chart-dot {
    fill: #0569ff;
    stroke: #ffffff;
    stroke-width: 2;
}

.cdn-chart-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.cdn-chart-meta-item {
    text-align: center;
}

.cdn-chart-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--gh-blue-deep);
}

.cdn-chart-label {
    margin-top: 4px;
    font-size: 12px;
    color: var(--gh-text-soft);
    word-break: break-word;
}

.cdn-chart-empty {
    min-height: 182px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cdn-chart-empty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 8px;
    background: #59b85b;
    color: #fff;
    font-size: 14px;
}

.cdn-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.cdn-pager-text {
    color: var(--gh-text-soft);
    font-size: 14px;
}

.cdn-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cdn-refresh-button {
    border: 1px solid var(--gh-border-strong);
    background: #fff;
    cursor: pointer;
}

button,
input[type="submit"],
input[type="button"] {
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

input,
select,
textarea {
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.vod-search-bar {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.vod-search-submit {
    width: auto;
    margin-top: 0;
}

.vod-content-table {
    min-width: 1280px;
}

.vod-thumb {
    display: block;
    width: 180px;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--gh-border);
}

.vod-break {
    word-break: break-all;
    min-width: 180px;
}

.vod-embed-box {
    width: 320px;
    max-width: 100%;
    min-height: 96px;
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 10px 12px;
    resize: vertical;
    font: 12px/1.5 monospace;
}

.vod-empty-row {
    text-align: center;
    color: var(--gh-text-soft);
    padding: 24px 12px;
}

@media (max-width: 960px) {
    .domain-inline-form,
    .domain-record-grid {
        grid-template-columns: 1fr;
    }

    .cdn-tool-grid,
    .cdn-traffic-controls {
        grid-template-columns: 1fr;
    }

    .vod-search-bar {
        grid-template-columns: 1fr;
    }

    .ticket-request-actions {
        align-items: stretch;
    }

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