* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    background-color: #f4f5fb;
    color: #222;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: #ffffff;
    border-bottom: 1px solid #e3e5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.header img {
    height: 135px;
    margin-top: 7px;
}

.sidebar {
    width: 230px;
    background: #ffffff;
    border-right: 1px solid #e3e5ee;
    padding: 24px 20px;
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.main {
    margin-left: 230px;
    padding-top: 90px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.logo-area img {
    max-width: 150px;
    height: auto;
}

.menu-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9699aa;
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: #3a3f4d;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: #f3f6ff;
    color: #ff4d6a;
}

.nav-links a.active {
    background: #ff4d6a;
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-footer a {
    text-decoration: none;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dde0ef;
    color: #3a3f4d;
    transition: 0.2s;
}

.sidebar-footer a:hover {
    border-color: #ff4d6a;
    color: #ff4d6a;
}

.sidebar-footer .btn-primary {
    background: #ff4d6a;
    color: #fff;
    border: none;
}

.sidebar-footer .btn-primary:hover {
    background: #e8425d;
}

.main-content {
    padding: 24px 32px 40px 32px;
}

.page-header {
    text-align: center;
    margin-bottom: 45px;
    margin: 0 auto;
}

.page-header {
    margin-top: 5px !important;
}

.page-title {
    font-size: 30px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 15px;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    margin-bottom: 60px;
    line-height: 1.6;
}

.main {
    margin-left: 0 !important;
    padding-top: 50px !important;
}

.upload-center {
    text-align: center;
    margin: 25px 0 10px 0;
}

.upload-only-btn {
    padding: 13px 42px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff6a88 0%, #ff4d6a 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(255, 77, 106, 0.35);
    transition: 0.2s ease;
}

.upload-only-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 77, 106, 0.5);
}

.file-empty {
    font-size: 15px;
    color: #999;
    margin-top: 30px !important;
}

.file-list {
    list-style: none;
    padding: 0;
    margin-top: 30px !important;
    font-size: 15px;
    color: #444;
    text-align: center;
}

.file-list li {
    display: block !important;
    margin: 6px 0;
}

.convert-open-panel {
    width: 100%;
    margin: 0 auto 40px auto;
    padding: 18px 0 6px 0;
    text-align: center;
}

.convert-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.convert-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.convert-column label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    margin-left: 6px;
}

.picker-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #d3d7eb;
    border-radius: 12px;
    background: #ffffff;
    font-size: 15px;
    min-width: 100px;
    cursor: pointer;
    transition: 0.15s ease;
}

.picker-box:hover {
    background: #f8f9ff;
    border-color: #b7c7ff;
}

.convert-button-wrapper {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
}

.convert-main-btn {
    padding: 14px 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4d6a 0%, #ff7b9b 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.18s ease;
    box-shadow: 0 10px 24px rgba(255, 77, 106, 0.35);
}

.convert-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 77, 106, 0.45);
}

.convert-main-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    background: #d7d9e0;
}

.hero-card-upload {
    background: none;
    padding: 0;
    margin-top: 10px;
}

.file-list-wrapper {
    background: #f8f9ff;
    border-radius: 16px;
    border: 1px dashed #d5d8ee;
    padding: 10px 14px;
    margin-top: 14px;
}

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

.file-list li {
    font-size: 13px;
    color: #333;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ff4d6a;
}

.file-empty {
    font-size: 13px;
    color: #a0a3b8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e6e7f2;
    border-radius: 16px;
    padding: 24px 22px;
    text-align: left;
    transition: 0.25s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
}

.feature-icon {
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.feature-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.form-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e3e5ee;
    padding: 24px;
    max-width: 420px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #4a4e60;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #d2d6ea;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-helper {
    font-size: 11px;
    color: #999cb1;
}

.feature-icon svg {
    width: 80px;
    height: 80px;
}

.feature-icon svg path {
    stroke-width: 3;
}

.btn-block {
    width: 100%;
    padding: 10px 0;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
}

.btn-primary {
    background: #ff4d6a;
    color: #ffffff;
}

.btn-primary:hover {
    background: #e8425d;
}

.btn-ghost {
    background: #f5f6ff;
    color: #3a3f4d;
}

.btn-ghost:hover {
    background: #e7e9ff;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.pricing-card {
    flex: 1;
    min-width: 220px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e3e5ee;
    padding: 20px;
}

.pricing-card.highlight {
    border-color: #ff4d6a;
    box-shadow: 0 0 0 1px rgba(255, 77, 106, 0.08);
}

.pricing-name {
    font-size: 15px;
    font-weight: 600;
}

.pricing-price {
    font-size: 22px;
    margin: 10px 0 6px 0;
}

.pricing-desc {
    font-size: 12px;
    color: #81849a;
    margin-bottom: 10px;
}

.pricing-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #55596c;
}

.pricing-list li {
    margin-bottom: 4px;
}

.notice-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e3e5ee;
    padding: 20px;
    font-size: 14px;
}

.main-footer {
    margin-top: 30px;
    font-size: 11px;
    color: #999cb1;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 8px;
    left: 8px;
    width: 46px;
    height: 46px;

    background: #ff5f7d;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1500;
}

.menu-toggle svg {
    width: 26px;
    height: 26px;
}

.icon-close {
    display: none;
    transform: translateX(4px);
}

.menu-toggle.open .icon-hamburger {
    display: none;
}

.menu-toggle.open .icon-close {
    display: block;
}

.menu-toggle i {
    font-size: 26px;
    color: #fff;
    line-height: 1;
}

.sidebar {
    transform: translateX(-260px);
    transition: 0.3s ease;
}

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

.menu-toggle {
    display: block;
}

li {
    margin-bottom: 8px;
}

.center-page {
    max-width: 500px;
    margin: 0 auto;
}

.format-panel {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    z-index: 9999;
    padding: 20px;
}

.format-panel-inner {
    width: 90%;
    max-width: 850px;
    height: 70%;
    background: #f4f5f7;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
}

.format-left {
    width: 220px;
    background: #eef0f4;
    padding: 16px;
    overflow-y: auto;
}

.format-left ul {
    padding: 0;
    margin: 0;
}

.format-left li {
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #dfe3eb;
    cursor: pointer;
    font-size: 14px;
    transition: 0.15s;
}

.format-left li:hover,
.format-left li.active {
    background: #e6edff;
    border-color: #b7c7ff;
}

.format-right {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

#formatSearch {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d1d4df;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 14px;
}

.format-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.format-item {
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e1e4ed;
    transition: 0.2s;
    font-size: 13px;
}

.format-item:hover {
    background: #f1f3fa;
}

.format-left ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.format-left li {
    list-style-type: none !important;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 22px;
    padding-top: 0px !important;
}

.policy-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111;
    margin-top: 5px
}

.policy-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 150px;
}

.policy-section {
    margin-bottom: 100px;
}

.policy-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.policy-section p,
.policy-section li {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.policy-section ul {
    padding-left: 20px;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 22px;
    padding-top: 0px !important;
}

.terms-title {
    font-size: 32px;
    font-weight: 800;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.terms-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 150px;
}

.terms-section {
    margin-bottom: 100px;
}

.terms-section h2 {
    font-size: 22px;
    margin-bottom: 14px;
    margin-top: 35px;
    color: #222;
}

.terms-section p {
    line-height: 1.6;
    font-size: 15px;
    color: #444;
}

.terms-section ul {
    padding-left: 20px;
}

.terms-section ul li {
    font-size: 15px;
    margin-bottom: 6px;
    color: #444;
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 22px;
    padding-top: 0px !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.faq-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 5;
    text-align: center;
}

.faq-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 120px;
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e3e5ee;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.faq-item:hover {
    background: #f7f9ff;
}

.faq-question {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    font-size: 15px;
    color: #555;
    margin-top: 50px;
    display: none;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-icon {
    font-size: 22px;
    color: #777;
    margin-left: 12px;
}

@media (min-width: 768px) {
    .faq-wrapper {
        margin-top: 60px;
    }
}

.deletion-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 22px;
    padding-top: 0px !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.deletion-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: 5;
}

.deletion-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 100px;
}

.deletion-section {
    margin-bottom: 80px;
}

.deletion-section h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #222;
}

.deletion-section p {
    line-height: 1.6;
    font-size: 15px;
    color: #444;
}

.deletion-section ul {
    margin-top: 8px;
    padding-left: 20px;
}

.deletion-section ul li {
    font-size: 15px;
    margin-bottom: 6px;
    color: #444;
}
