/* Detail Page Mobile CSS (max-width: 768px) */

/* Hero Section */
.detail-hero {
    height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.detail-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #050505);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px 30px 20px;
    width: 100%;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 5px 0;
    background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-slogan {
    font-size: 1rem;
    opacity: 0.8;
    margin: 5px 0 15px 0;
}

.hero-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: none;
    backdrop-filter: blur(4px);
}

/* Tabs (Scrollable) */
.detail-tabs-wrapper {
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 55px;
    /* Adjust based on header height */
    z-index: 90;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.detail-tabs {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
    gap: 20px;
    width: max-content;
}

.detail-tabs li {
    padding: 15px 5px;
    color: #777;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.detail-tabs li.active {
    color: #fff;
}

.detail-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
}

/* Content Area */
.detail-content-area {
    padding: 30px 0 60px 0;
}

.content-box {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 25px 20px;
    margin-bottom: 20px;
}

/* Tab Content */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content.show {
    opacity: 1;
    transform: translateY(0);
}

.tab-content.active {
    display: block;
}

.tab-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* PDF Mobile Optimization */
@media (max-width: 768px) {
    /* Catalog PDF */
    .catalog-wide-box {
        padding: 10px !important;
        border-radius: 8px !important;
    }

    .catalog-toolbar {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 8px !important;
        margin-bottom: 15px !important;
    }

    .catalog-toolbar button {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        min-height: 40px !important;
        min-width: 40px !important;
        touch-action: manipulation !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
        border-radius: 6px !important;
    }

    .catalog-toolbar button:disabled {
        opacity: 0.5 !important;
    }

    .catalog-page-info {
        font-size: 0.8rem !important;
        min-width: 80px !important;
        color: #fff !important;
    }

    #pdf-canvas-catalog {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        cursor: zoom-in !important;
    }

    .catalog-all-pages {
        width: 100% !important;
        padding: 0 !important;
    }

    .catalog-all-page {
        margin: 0 0 15px 0 !important;
    }

    .catalog-all-page canvas {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 4px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
    }

    /* Price PDF */
    .pdf-viewer-container {
        padding: 15px !important;
        border-radius: 8px !important;
    }

    .pdf-toolbar {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 8px !important;
        margin-bottom: 15px !important;
    }

    .pdf-toolbar button {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
        border-radius: 6px !important;
    }

    .pdf-toolbar button:disabled {
        opacity: 0.5 !important;
    }

    .pdf-page-info {
        font-size: 0.8rem !important;
        min-width: 80px !important;
    }

    #pdf-canvas-price {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        cursor: zoom-in !important;
    }

    /* PDF Zoom Controls for Mobile */
    .pdf-zoom-controls {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 10px;
    }

    /* Touch-friendly buttons */
    .pdf-toolbar button {
        min-height: 40px !important;
        min-width: 40px !important;
        touch-action: manipulation;
    }
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-left: 3px solid #fff;
    padding-left: 15px;
    color: #fff;
}

.desc-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
}

/* Features Tab Hero (Tab 2) */
.features-hero-section {
    padding: 40px 0;
    margin-bottom: 30px;
}

.features-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

.features-hero-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.features-hero-slogan {
    font-size: 1rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
}

.features-hero-meta {
    margin-bottom: 0;
}

.features-hero-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.features-hero-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-top: 14px;
}

.features-hero-spec {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.features-hero-spec-value {
    font-size: 1rem;
    font-weight: 700;
}

.features-hero-spec-label {
    font-size: 0.8rem;
    margin-top: 4px;
}

.features-hero-colors {
    margin-top: 16px;
}

.features-hero-colors-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 5px;
}

.features-hero-colors-selected {
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.features-hero-colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.features-hero-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    overflow: hidden;
}

.features-hero-color-swatch.is-active {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.features-hero-color-img,
.features-hero-color-fallback {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.features-hero-color-fallback {
    background: rgba(255, 255, 255, 0.18);
}

/* Highlights (Stacked) */
.highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.highlight-item {
    background: #0f0f0f;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.highlight-item .label {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.highlight-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

/* Specs Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #222;
}

.spec-table th {
    width: 35%;
    color: #777;
    text-align: left;
    font-weight: 400;
}

.spec-table td {
    color: #ccc;
    text-align: right;
}

/* Grades (Mobile Stack) */
.grades-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.grade-item {
    background: #0f0f0f;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 8px;
}

.g-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.g-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.g-price {
    color: #ccc;
    font-size: 0.95rem;
}

.g-features {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Polls (Mobile Stack) */
.polls-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.poll-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 8px;
}

.poll-title {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.poll-opt-row {
    margin-bottom: 12px;
}

.opt-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #aaa;
}

.opt-bar-bg {
    width: 100%;
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
}

.opt-bar {
    height: 100%;
    background: #fff;
    border-radius: 3px;
}

.poll-footer {
    margin-top: 15px;
    text-align: right;
    font-size: 0.8rem;
    color: #555;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gallery-item {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 1px solid #222;
}

/* Toast UI Viewer Dark Mode Mobile Override */
.toastui-editor-contents {
    font-size: 0.95rem !important;
    color: #ccc !important;
    font-family: 'Noto Sans KR', sans-serif !important;
}

.toastui-editor-contents h1,
.toastui-editor-contents h2,
.toastui-editor-contents h3 {
    color: #fff !important;
    border-bottom: none !important;
}

.toastui-editor-contents p {
    color: #ccc !important;
}

.toastui-editor-contents img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Reviews Section & Form */
.review-form {
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.review-form input,
.review-form textarea {
    width: 100%;
    background: #050505;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
}

.btn-submit {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 12px;
    font-weight: 700;
    border-radius: 4px;
}

/* Reviews List */
.reviews-list .review-item {
    padding: 20px 0;
    border-bottom: 1px solid #222;
}

.rw-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.rw-author {
    color: #fff;
    font-weight: 600;
}

.rw-date {
    color: #555;
    font-size: 0.8rem;
}

.rw-content {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 95%;
    max-height: 80%;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
}

.empty-state {
    text-align: center;
    color: #555;
    padding: 40px 0;
}

.disclaimer-text {
    color: #555;
    font-size: 0.8rem;
    margin-top: 20px;
}

.blog-content-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 16px 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.9;
    word-break: keep-all;
}

.blog-content-wrapper h2 {
    font-size: 1.35rem;
    color: #fff;
    margin: 32px 0 16px;
    padding: 10px 0 10px 14px;
    border-left: 3px solid var(--color-accent, #00ADB5);
    line-height: 1.4;
    font-weight: 700;
}

.blog-content-wrapper h2:first-child {
    margin-top: 0;
}

.blog-content-wrapper h3 {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 22px 0 12px;
    font-weight: 600;
    line-height: 1.5;
}

.blog-content-wrapper p {
    margin: 0 0 14px;
    color: #c8c8c8;
    font-size: 0.95rem;
    line-height: 1.9;
}

.blog-content-wrapper ul {
    padding-left: 20px;
    margin: 10px 0 16px;
}

.blog-content-wrapper li {
    margin-bottom: 8px;
    color: #bbb;
    line-height: 1.7;
}

.blog-content-wrapper strong {
    color: #fff;
    font-weight: 700;
}

.blog-content-wrapper em {
    color: #ddd;
    font-style: italic;
}

.blog-content-wrapper hr,
.blog-content-wrapper hr.section-divider {
    border: none;
    height: 1px;
    margin: 32px 0;
    background: linear-gradient(90deg, transparent, rgba(0,173,181,0.4) 20%, rgba(0,173,181,0.6) 50%, rgba(0,173,181,0.4) 80%, transparent);
    position: relative;
}

.blog-content-wrapper hr::after,
.blog-content-wrapper hr.section-divider::after {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg-primary, #0a0a0a);
    padding: 0 10px;
    color: rgba(0,173,181,0.45);
    font-size: 0.5rem;
    letter-spacing: 4px;
}

.blog-content-wrapper .article-image {
    margin: 20px -16px;
    text-align: center;
}

.blog-content-wrapper .article-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.vehicle-blog-post {
    color: #ccc;
    line-height: 1.8;
}

.blog-header {
    margin-bottom: 30px;
}

.blog-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 15px;
}

.blog-header h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-intro {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.7;
    font-style: italic;
}

.blog-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 30px 0;
}

.blog-section {
    margin-bottom: 30px;
}

.blog-section h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    border-left: 3px solid var(--color-accent);
    padding-left: 15px;
}

.blog-section p {
    margin-bottom: 12px;
    color: #ccc;
    font-size: 0.95rem;
}

.blog-section strong {
    color: #fff;
    font-weight: 600;
}

.blog-recommend-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.blog-recommend-list li {
    padding: 10px 0;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-recommend-list li:last-child {
    border-bottom: none;
}

.blog-closing {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    color: #ddd;
}

.user-comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-header h3 {
    font-size: 1.4rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-count {
    color: #888;
    font-size: 0.85rem;
}

.comments-list {
    margin-bottom: 30px;
    min-height: 80px;
}

.no-comments {
    text-align: center;
    padding: 40px 15px;
    color: #555;
}

.no-comments i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.no-comments p {
    color: #666;
    font-size: 0.9rem;
}

.comment-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.comment-form-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form-row input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.comment-form-row input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}

.comment-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    min-height: 100px;
    resize: vertical;
    margin-bottom: 12px;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}

.comment-form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form-hint {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-submit-btn {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.comment-submit-btn:hover {
    background: #d1000a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.comment-date {
    color: #888;
    font-size: 0.8rem;
}

.comment-text {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-line;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 8px;
}

.comment-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.comment-action-btn:hover {
    background: rgba(227, 6, 19, 0.2);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.recommended-models-section {
    margin: 40px 0;
    padding: 40px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
}

.recommended-model-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.recommended-model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.recommended-model-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.grade-grid-dynamic {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.grade-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.grade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.highlight-item .label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-item .value {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.feature-category-section {
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-slide {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}

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

.modal-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: all 0.3s;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid #222;
    padding-bottom: 12px;
}

.modal-title {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-body input {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 10px;
}

.modal-body input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #2a2a2a;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #222;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #d1000a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: calc(100% - 40px);
    max-width: 400px;
}

.toast {
    background: rgba(15, 15, 15, 0.95);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

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

.toast.success {
    border-left: 4px solid #00c851;
}

.toast.error {
    border-left: 4px solid #ff4444;
}

.toast.info {
    border-left: 4px solid #33b5e5;
}

.toast.warning {
    border-left: 4px solid #ffbb33;
}

/* =========================================
   제원 섹션 모바일 스타일
   ========================================= */
@media (max-width: 768px) {
    /* 차량 제원 다이어그램 컨테이너 */
    .dimension-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        padding: 20px 15px !important;
        margin-bottom: 30px !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    /* 제원 뷰 (정면/측면) */
    .dimension-view {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .dimension-view h4 {
        text-align: center !important;
        color: #888 !important;
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 15px !important;
    }

    .dimension-view h4 i {
        margin-right: 6px !important;
        font-size: 0.75rem !important;
    }

    /* SVG 다이어그램 */
    .dim-svg {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* SVG 내부 요소 */
    .dim-car {
        fill: rgba(255, 255, 255, 0.08) !important;
        stroke: rgba(255, 255, 255, 0.3) !important;
        stroke-width: 1.5 !important;
    }

    .dim-line {
        stroke: #e30613 !important;
        stroke-width: 1.2 !important;
    }

    .dim-text {
        fill: #fff !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    .dim-label {
        fill: #888 !important;
        font-size: 9px !important;
    }

    .dim-guide {
        stroke: rgba(255, 255, 255, 0.15) !important;
        stroke-width: 0.8 !important;
    }

    /* 빠른 통계 (전장, 전폭, 전고, 축거) */
    .dim-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-top: 25px !important;
        padding: 0 5px !important;
    }

    .dim-stat {
        text-align: center !important;
        padding: 15px 8px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        transition: all 0.3s !important;
    }

    .dim-stat:hover {
        background: rgba(227, 6, 19, 0.1) !important;
        border-color: rgba(227, 6, 19, 0.3) !important;
        transform: translateY(-2px) !important;
    }

    .dim-stat .stat-value {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        display: block !important;
        line-height: 1.3 !important;
    }

    .dim-stat .stat-unit {
        font-size: 0.75rem !important;
        color: #e30613 !important;
    }

    .dim-stat .stat-label {
        font-size: 0.7rem !important;
        color: #888 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-top: 6px !important;
        display: block !important;
    }

    /* 파워트레인 하이라이트 그리드 */
    .highlight-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }

    .highlight-item {
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px !important;
        padding: 15px !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .highlight-item .label {
        font-size: 0.8rem !important;
        color: #888 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        margin: 0 !important;
    }

    .highlight-item .value {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        margin: 0 !important;
    }

    /* 트림(등급) 그리드 */
    .grade-grid-dynamic {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-top: 20px !important;
        margin-bottom: 0 !important;
    }

    /* 트림 카드 */
    .grade-card {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 14px !important;
        padding: 18px !important;
        transition: transform 0.3s, box-shadow 0.3s !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .grade-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
    }

    /* 트림 카드 헤더 */
    .grade-card > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding-bottom: 14px !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .grade-card > div:first-child > div:first-child {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        line-height: 1.5 !important;
        word-break: keep-all !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
        text-align: left !important;
        width: 100% !important;
    }

    .grade-card > div:first-child > div:last-child {
        font-size: 1.05rem !important;
        color: var(--color-accent) !important;
        font-weight: 600 !important;
        text-align: left !important;
        font-family: 'Roboto', sans-serif !important;
        margin-top: 4px !important;
        width: 100% !important;
    }

    /* 트림 카드 스펙 그리드 */
    .grade-card > div:nth-child(2) {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .grade-card > div:nth-child(2) > div {
        background: rgba(0, 0, 0, 0.3) !important;
        padding: 12px 8px !important;
        border-radius: 10px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .grade-card > div:nth-child(2) > div > div:first-child {
        font-size: 0.75rem !important;
        color: rgba(255, 255, 255, 0.5) !important;
        margin-bottom: 6px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        font-weight: 500 !important;
    }

    .grade-card > div:nth-child(2) > div > div:last-child {
        font-size: 0.95rem !important;
        color: #fff !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
    }

    /* 트림 카드 특징 섹션 */
    .grade-card > div:last-child {
        background: rgba(255, 255, 255, 0.02) !important;
        border-radius: 10px !important;
        padding: 14px !important;
        margin-top: auto !important;
    }

    .grade-card > div:last-child > div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }

    .grade-card > div:last-child > div:first-child i {
        color: var(--color-accent) !important;
        font-size: 0.8rem !important;
    }

    .grade-card > div:last-child > div:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .grade-card > div:last-child > div:last-child > span {
        font-size: 0.8rem !important;
        color: #ddd !important;
        background: rgba(255, 255, 255, 0.05) !important;
        padding: 6px 12px !important;
        border-radius: 18px !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        white-space: nowrap !important;
    }

    /* 섹션 제목 */
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
        color: #fff !important;
    }

    /* 서브 제목 (파워트레인, 트림 정보 등) */
    h3 {
        font-size: 1.2rem !important;
        margin-top: 30px !important;
        margin-bottom: 15px !important;
        color: #fff !important;
    }

    /* 면책 조항 텍스트 */
    .disclaimer-text {
        font-size: 0.75rem !important;
        line-height: 1.6 !important;
        color: #666 !important;
        margin-top: 30px !important;
        padding: 0 5px !important;
    }
}

/* =========================================
   Footer Mobile Styles
   ========================================= */
@media (max-width: 768px) {
    .main-footer {
        background-color: #050505 !important;
        padding: 50px 0 30px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .footer-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        text-align: center !important;
    }

    .footer-col {
        padding: 0 15px !important;
    }

    .footer-col h4 {
        color: #fff !important;
        font-size: 0.95rem !important;
        margin-bottom: 18px !important;
        letter-spacing: 1px !important;
        font-weight: 600 !important;
    }

    .footer-col ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-col ul li {
        margin-bottom: 12px !important;
    }

    .footer-col ul li a {
        color: #888 !important;
        font-size: 0.9rem !important;
        transition: color 0.3s !important;
        text-decoration: none !important;
    }

    .footer-col ul li a:hover {
        color: var(--color-accent) !important;
    }

    .brand-col .logo {
        color: #fff !important;
        margin-bottom: 18px !important;
        font-size: 1.4rem !important;
        font-weight: 700 !important;
    }

    .footer-desc {
        font-size: 0.85rem !important;
        margin-bottom: 25px !important;
        line-height: 1.6 !important;
        color: #888 !important;
    }

    .footer-desc br {
        display: block !important;
    }

    .social-links {
        display: flex !important;
        gap: 10px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .social-icon {
        font-size: 0.7rem !important;
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 8px 14px !important;
        border-radius: 20px !important;
        transition: all 0.3s !important;
        text-decoration: none !important;
        display: inline-block !important;
    }

    .social-icon:hover {
        border-color: var(--color-accent) !important;
        color: var(--color-accent) !important;
        background: rgba(227, 6, 19, 0.1) !important;
    }

    .info-col .disclaimer-text {
        font-size: 0.75rem !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
        color: #666 !important;
        text-align: left !important;
    }

    .info-col .disclaimer-text br {
        display: block !important;
    }

    .copyright {
        font-size: 0.75rem !important;
        color: #666 !important;
        text-align: left !important;
    }
}