/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* ===== リセット & 基本スタイル ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - Premium Dark */
    --primary: #f7b733;
    --primary-light: #ffd86f;
    --primary-dark: #d4982a;
    --accent-red: #fc5c65;
    --accent-blue: #45aaf2;
    --accent-cyan: #2bcbba;
    --accent-purple: #a55eea;

    /* ダークテーマ */
    --bg-primary: #0b0f1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #212b45;
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(247, 183, 51, 0.3);

    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(247, 183, 51, 0.15);
    --shadow-glow-strong: 0 0 40px rgba(247, 183, 51, 0.25);

    /* その他 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(247, 183, 51, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(69, 170, 242, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(165, 94, 234, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hidden {
    display: none !important;
}

/* ===== ヘッダー ===== */
.header {
    background: rgba(26, 32, 53, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(247, 183, 51, 0.5));
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.settings-btn {
    background: rgba(247, 183, 51, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
}

.settings-icon {
    font-size: 1rem;
}

.settings-label {
    display: inline;
}

.settings-btn:hover {
    background: rgba(247, 183, 51, 0.2);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* ===== ヒーローセクション ===== */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== カメラセクション ===== */
.camera-section {
    max-width: 580px;
    margin: 0 auto 60px;
}

.camera-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: var(--transition);
}

.camera-container:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.camera-border {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, rgba(247, 183, 51, 0.2), transparent, rgba(69, 170, 242, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.camera-container:hover .camera-border {
    opacity: 1;
}

.camera-preview,
.image-preview {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

.placeholder-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.placeholder-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
}

.placeholder-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.camera-btn,
.upload-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 260px;
}

.camera-btn:hover,
.upload-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.scan-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-primary);
    border: none;
    padding: 0;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.scan-btn-inner {
    display: block;
    padding: 18px 40px;
    position: relative;
    z-index: 1;
}

.scan-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.scan-btn:hover::before {
    opacity: 1;
}

.scan-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

.scan-btn:disabled {
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.scan-btn:disabled::before {
    display: none;
}

.btn-text,
.btn-loader {
    position: relative;
    z-index: 1;
}

.btn-loader {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(11, 15, 26, 0.3);
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== 使い方セクション ===== */
.howto-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: -0.02em;
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.howto-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.howto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.howto-card:hover::before {
    transform: scaleX(1);
}

.howto-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.howto-step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-primary);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.howto-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.howto-card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 結果セクション ===== */
.result-section {
    max-width: 650px;
    margin: 0 auto 60px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.result-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-accent);
}

.card-info {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.card-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
}

.card-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-info {
    margin-bottom: 28px;
}

.price-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.estimated-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    margin: 8px 0 12px;
    text-shadow: 0 0 20px rgba(247, 183, 51, 0.3);
}

.price-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.affiliate-links {
    display: grid;
    gap: 12px;
}

.affiliate-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.affiliate-btn:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.btn-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.btn-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.btn-label {
    font-size: 1rem;
    font-weight: 600;
}

.btn-sublabel {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.affiliate-btn:hover .btn-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.mercari-btn:hover {
    border-color: var(--accent-red);
}

.yahoo-btn:hover {
    border-color: var(--accent-blue);
}

/* ===== エラーメッセージ ===== */
.error-message {
    max-width: 580px;
    margin: 24px auto;
    background: rgba(252, 92, 101, 0.08);
    border: 1px solid rgba(252, 92, 101, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--accent-red);
    text-align: center;
    font-size: 0.9rem;
    animation: shake 0.4s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* ===== FAQセクション ===== */
.faq-section {
    max-width: 700px;
    margin: 0 auto 60px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--border-accent);
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ===== エラーモーダル ===== */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.error-modal.hidden {
    display: none;
}

.error-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.error-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(252, 92, 101, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: errorModalIn 0.3s ease;
}

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

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

.error-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.error-modal-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.error-modal-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-primary);
    border: none;
    padding: 10px 32px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.error-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.faq-link:hover {
    text-decoration: underline;
}

/* ===== フッター ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 32px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===== モーダル ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 28px;
}

/* 使用状況 */
.usage-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.usage-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.usage-text strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.usage-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
}

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

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.form-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.1);
}

.form-help {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.form-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

.save-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-primary);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.reset-btn {
    width: 100%;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.reset-btn:hover {
    color: var(--text-secondary);
    border-color: var(--text-muted);
}

/* ===== 利用規約モーダル ===== */
.terms-content {
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.terms-content h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 10px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .howto-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .howto-card {
        padding: 20px;
    }

    .camera-container {
        padding: 24px;
        min-height: 320px;
    }

    .placeholder-icon {
        font-size: 3rem;
    }

    .scan-btn {
        font-size: 1rem;
    }

    .scan-btn-inner {
        padding: 16px 32px;
    }

    .result-card {
        padding: 24px;
    }

    .card-name {
        font-size: 1.3rem;
    }

    .estimated-price {
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    .settings-label {
        display: none;
    }

    .settings-btn {
        padding: 8px 12px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .camera-btn,
    .upload-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}