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

html, body {
    min-height: 100%;
}

body {
    background: rgba(248, 250, 252, 0.5);
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: rgba(248, 250, 252, 0.5);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

.header-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 1rem;
    width: 100%;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.header-placeholder {
    width: 2.5rem;
    height: 2.5rem;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
    background: transparent;
    border: none;
    cursor: pointer;
    height: 2.5rem;
    width: 2.5rem;
    color: #475569;
}

.header-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.tabs-scroll {
    display: flex;
    align-items: center;
    height: 3rem;
    padding: 0 1rem;
    gap: 1rem;
    overflow-x: auto;
    border-top: 1px solid #f8fafc;
    width: 100%;
}

.tab-item {
    white-space: nowrap;
    font-size: 0.875rem;
    transition: all 0.15s;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    color: #94a3b8;
}

.tab-item:hover {
    color: #475569;
}

.tab-item.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    font-weight: 600;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 7rem;
    padding-bottom: 6rem;
}

.card-wrapper {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-wrapper.transparent {
    border: none;
    box-shadow: none;
    background: transparent;
}

.card-content {
    padding: 0;
}

.card-content > div {
    margin-top: 1.5rem;
}

.card-content > div:first-child {
    margin-top: 0;
}

.inner-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.card-header-section {
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}

.card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid transparent;
    padding: 0 0.625rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.15s;
    background: #eef2ff;
    color: #4f46e5;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 0.25rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.75rem;
}

.card-meta-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-meta-dot {
    color: #cbd5e1;
}

.section-list {
    margin-top: 3rem;
}

.section-item {
    scroll-margin-top: 8rem;
    margin-top: 3rem;
}

.section-item:first-child {
    margin-top: 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: auto;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.05em;
    background: #0f172a;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 16rem;
}

.section-line {
    height: 2px;
    width: 100%;
    background: #f1f5f9;
    margin-top: 0.75rem;
}

.section-content {
    padding-left: 0;
    padding-right: 0;
}

.section-text {
    font-size: 0.9375rem;
    line-height: 1.625;
    color: #475569;
    text-align: justify;
}

.section-text p {
    margin: 0;
}

.sub-section {
    margin-top: 1.5rem;
}

.sub-section:first-child {
    margin-top: 0;
}

.sub-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sub-number {
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #94a3b8;
}

.sub-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-content {
    font-size: 0.9375rem;
    line-height: 1.625;
    color: #475569;
    text-align: justify;
    padding-left: 0;
}

.sub-content p {
    margin: 0;
}

.section-highlight {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.625;
    color: #475569;
    text-align: justify;
    font-weight: 500;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 1rem;
    border-left: 4px solid #4f46e5;
    font-style: italic;
}

.card-footer-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.footer-inner {
    background: #f1f5f9;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.footer-text {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 2;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-top: 1px solid #f1f5f9;
    padding: 1rem;
}

.bottom-bar-inner {
    max-width: 28rem;
    margin: 0 auto;
}

.confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: 100%;
    height: 3.5rem;
    background: #0f172a;
    color: #f8fafc;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.15s;
}

.confirm-btn:hover {
    background: #1e293b;
}

.confirm-btn:active {
    transform: scale(0.95);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 70;
    width: 18rem;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.drawer-header-text {
    display: flex;
    flex-direction: column;
}

.drawer-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #0f172a;
}

.drawer-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
}

.drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    height: 2.5rem;
    width: 2.5rem;
    color: #475569;
}

.drawer-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
}

.drawer-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.9375rem;
    transition: all 0.15s;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #475569;
    margin-top: 0.25rem;
}

.drawer-item:first-child {
    margin-top: 0;
}

.drawer-item:hover {
    background: #f1f5f9;
}

.drawer-item.active {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.1), 0 4px 6px -4px rgba(79, 70, 229, 0.1);
}

.drawer-item-number {
    width: 1.75rem;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    margin-right: 0.5rem;
    color: #cbd5e1;
}

.drawer-item.active .drawer-item-number {
    color: #c7d2fe;
}

.drawer-item-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-item-arrow {
    width: 1rem;
    height: 1rem;
    opacity: 0;
    transform: translateX(0.5rem);
    transition: all 0.15s;
}

.drawer-item:hover .drawer-item-arrow {
    opacity: 1;
}

.drawer-item.active .drawer-item-arrow {
    opacity: 1;
    transform: translateX(0);
}

.drawer-footer {
    padding: 1.5rem;
    background: #f1f5f9;
}

.drawer-footer-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
    background: #fff;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.drawer-footer-icon {
    width: 1rem;
    height: 1rem;
    color: #4f46e5;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: #94a3b8;
    font-size: 0.875rem;
    gap: 0.625rem;
}

.loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 9999px;
    animation: spin 0.8s linear infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@media screen and (max-width: 480px) {
    .page-wrapper {
        width: 100%;
        overflow-x: hidden;
    }
    
    .header {
        width: 100%;
    }
    
    .header-inner {
        width: 100%;
        max-width: 100%;
    }
    
    .header-top {
        width: 100%;
        padding: 0 0.75rem;
    }
    
    .tabs-scroll {
        width: 100%;
        padding: 0 0.75rem;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
        padding-top: 7rem;
        padding-bottom: 5rem;
        overflow-x: hidden;
    }
    
    .inner-card {
        width: 100%;
        padding: 1rem 0.875rem;
        border-radius: 1rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1rem;
        max-width: 10rem;
    }
    
    .section-text {
        font-size: 0.875rem;
    }
    
    .section-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .section-number {
        font-size: 2rem;
        min-width: 2.5rem;
        padding: 0.375rem 0.5rem;
    }
    
    .sub-title {
        font-size: 0.875rem;
        max-width: 8rem;
    }
    
    .sub-content {
        font-size: 0.875rem;
        padding-left: 0;
    }
    
    .drawer {
        width: 85%;
        max-width: 18rem;
    }
    
    .bottom-bar {
        width: 100%;
        padding: 0.75rem;
    }
    
    .bottom-bar-inner {
        width: 100%;
        max-width: 100%;
    }
    
    .confirm-btn {
        height: 3rem;
        font-size: 0.9375rem;
        border-radius: 0.75rem;
    }
    
    .tab-item {
        font-size: 0.8125rem;
    }
    
    .card-header-top {
        flex-wrap: wrap;
    }
    
    .badge {
        margin-top: 0.5rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .page-wrapper {
        width: 100%;
    }
    
    .header {
        width: 100%;
    }
    
    .header-inner {
        width: 100%;
        max-width: 100%;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        padding-top: 7rem;
    }
    
    .section-title {
        max-width: 14rem;
    }
    
    .drawer {
        width: 70%;
        max-width: 16rem;
    }
    
    .bottom-bar-inner {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (min-width: 769px) {
    .page-wrapper {
        width: 100%;
    }
    
    .header {
        width: 100%;
    }
    
    .header-inner {
        width: 100%;
        max-width: 32rem;
    }
    
    .main-content {
        width: 100%;
        max-width: 32rem;
        padding: 1.5rem;
        padding-top: 7rem;
        padding-bottom: 6rem;
    }
    
    .inner-card {
        padding: 2rem 1.5rem;
    }
    
    .card-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        max-width: 20rem;
    }
    
    .section-number {
        font-size: 3rem;
        min-width: 4rem;
        padding: 0.75rem 1rem;
    }
    
    .section-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .drawer {
        width: 20rem;
    }
    
    .drawer-item {
        padding: 1.25rem;
    }
    
    .bottom-bar-inner {
        width: 100%;
        max-width: 32rem;
    }
}