/* =========================================================
    🌵 1. カラー変数（Arizona Sunset & Terracotta テーマ）
========================================================= */
:root {
    /* ☀️ ライトモード（アリゾナの灼熱と赤土・夕焼け高コントラスト） */
    --bg-color: #fcf9f5;            /* 砂漠のウォームサンドホワイト */
    --card-bg: #ffffff;
    --text-color: #2b1810;          /* 深みのあるダークブラウン */
    --text-muted: #6e5044;
    --border-color: #e2d2c7;
    --primary-color: #b8461b;       /* 🏜️ アリゾナ・テラコッタ（赤土） */
    --primary-hover: #8f310f;
    --cactus-green: #00796b;       /* 🌵 サボテン・グリーン */
    --accent-color: #e66a1f;        /* 🌅 アリゾナ・サンセットオレンジ */
    --nav-bg: #ffffff;
    --modal-bg: rgba(43, 24, 16, 0.7);
}

/* 🌙 ダークモード（アリゾナ砂漠の熱帯夜） */
body.dark-mode {
    --bg-color: #1a0f0a;            /* 砂漠の夜のダークブラウン */
    --card-bg: #261712;
    --text-color: #f3e8e2;
    --text-muted: #b8a096;
    --border-color: #422b22;
    --primary-color: #e06232;       /* 夜間用見やすいテラコッタオレンジ */
    --primary-hover: #f07b48;
    --cactus-green: #4db6ac;
    --accent-color: #ff8a3d;        /* 夜間でも映える夕焼けオレンジ */
    --nav-bg: #21130d;
    --modal-bg: rgba(0, 0, 0, 0.88);
}

/* =========================================================
    📱 2. リセット＆PWA基本レイアウト
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent; /* スマホタップ時のグレーのハイライト消去 */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-bottom: 20px; 
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 🌵 画面最下部に固定される「巨大サワロサボテン ＆ 赤岩メサ（Mesa）」のシルエット */
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 180' preserveAspectRatio='none'%3E%3C!-- 遠景：アリゾナの台地（メサ） --%3E%3Cpath d='M 0,180 L 0,110 L 140,110 L 170,130 L 320,130 L 360,95 L 520,95 L 560,125 L 710,125 L 750,90 L 930,90 L 980,120 L 1200,100 L 1200,180 Z' fill='%23b8461b' opacity='0.22'/%3E%3C!-- 近景：荒々しい岩山 --%3E%3Cpath d='M 0,180 L 0,135 L 90,115 L 200,145 L 290,105 L 410,140 L 500,110 L 630,150 L 740,108 L 860,140 L 960,105 L 1080,135 L 1200,120 L 1200,180 Z' fill='%23b8461b' opacity='0.45'/%3E%3C!-- 巨大サワロサボテン群 --%3E%3Cg fill='%2300796b' opacity='0.75'%3E%3C!-- 左の巨大サボテン --%3E%3Cpath d='M 80,65 h 12 v 95 h -12 z M 62,92 h 42 v 10 h -42 z M 62,72 h 10 v 30 h -10 z M 94,78 h 10 v 24 h -10 z'/%3E%3C!-- 中央左のサボテン --%3E%3Cpath d='M 380,85 h 9 v 75 h -9 z M 366,108 h 32 v 8 h -32 z M 366,95 h 8 v 21 h -8 z M 390,98 h 8 v 18 h -8 z'/%3E%3C!-- 右の巨大サボテン --%3E%3Cpath d='M 920,50 h 14 v 110 h -14 z M 898,85 h 52 v 12 h -52 z M 898,62 h 12 v 35 h -12 z M 938,68 h 12 v 29 h -12 z'/%3E%3C!-- 右端の小サボテン --%3E%3Cpath d='M 1120,95 h 8 v 65 h -8 z M 1108,114 h 28 h -28 z M 1108,102 h 7 v 17 h -7 z M 1129,105 h 7 v 14 h -7 z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 100%;
    opacity: 0.35; /* ☀️ 誰が見ても一目で分かる存在感 */
    pointer-events: none;
    z-index: 0;
}

body.dark-mode::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 180' preserveAspectRatio='none'%3E%3Cpath d='M 0,180 L 0,110 L 140,110 L 170,130 L 320,130 L 360,95 L 520,95 L 560,125 L 710,125 L 750,90 L 930,90 L 980,120 L 1200,100 L 1200,180 Z' fill='%23e06232' opacity='0.25'/%3E%3Cpath d='M 0,180 L 0,135 L 90,115 L 200,145 L 290,105 L 410,140 L 500,110 L 630,150 L 740,108 L 860,140 L 960,105 L 1080,135 L 1200,120 L 1200,180 Z' fill='%23e06232' opacity='0.5'/%3E%3Cg fill='%234db6ac' opacity='0.8'%3E%3Cpath d='M 80,65 h 12 v 95 h -12 z M 62,92 h 42 v 10 h -42 z M 62,72 h 10 v 30 h -10 z M 94,78 h 10 v 24 h -10 z'/%3E%3Cpath d='M 380,85 h 9 v 75 h -9 z M 366,108 h 32 v 8 h -32 z M 366,95 h 8 v 21 h -8 z M 390,98 h 8 v 18 h -8 z'/%3E%3Cpath d='M 920,50 h 14 v 110 h -14 z M 898,85 h 52 v 12 h -52 z M 898,62 h 12 v 35 h -12 z M 938,68 h 12 v 29 h -12 z'/%3E%3Cpath d='M 1120,95 h 8 v 65 h -8 z M 1108,114 h 28 h -28 z M 1108,102 h 7 v 17 h -7 z M 1129,105 h 7 v 14 h -7 z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.45; /* 🌙 夜間画面 */
}

/* 共通パーツ：非表示用クラス */
.hidden {
    display: none !important;
}

/* =========================================================
    🛡️ 3. 免責事項同意モーダル (Startup Consent)
========================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* どんな画面よりも絶対に最前面に出す */
    padding: 16px;
}

.modal-box {
    background-color: var(--card-bg);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

/* 👑 バグ修正：全モーダル要素の小画面・キーボード立ち上げ時の縦切れ防止 */
.modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.modal-header h2 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.modal-header h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* スクロール必須の規約全文エリア */
.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex-grow: 1;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-footer {
    padding: 16px;
    text-align: center;
}

#agree-button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* スクロール完了後に JavaScript で有効化された時のスタイル */
#agree-button:not([disabled]) {
    background-color: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#agree-button:not([disabled]):active {
    transform: scale(0.98);
}

/* =========================================================
    📱 4. アプリヘッダー（2段モバイル最適化レイアウト）
========================================================= */
.app-header {
    background-color: var(--card-bg);
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(184, 70, 27, 0.1);
}

/* 上段：ブランド・タイトル・アバター */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.header-logo-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

#btn-header-home {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    padding: 2px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    outline: none;
    flex-shrink: 0;
}

#page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.header-avatar-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(184, 70, 27, 0.1);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    overflow: hidden;
    cursor: pointer;
}

.header-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 下段：ツールバー */
.header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(184, 70, 27, 0.12);
}

.btn-header-update {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(230, 106, 31, 0.1);
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(230, 106, 31, 0.15);
}

.btn-header-update:active {
    transform: scale(0.96);
    background: rgba(230, 106, 31, 0.25);
}

#sync-icon {
    font-size: 0.85rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.header-utility-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    height: 30px;
    padding: 0 10px;
    cursor: pointer;
    color: inherit;
    border-radius: 15px;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: sans-serif;
    outline: none;
    transition: all 0.15s ease;
}

.header-icon-btn.help-btn {
    width: 30px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 900;
}

.header-icon-btn:active {
    opacity: 1;
    background: rgba(184, 70, 27, 0.15);
}

/* =========================================================
    🖥️ 5. メインエリア＆画面切り替え
========================================================= */
#main-content {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.app-view {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 暫定：カードUIのベース（各画面で使うコンテンツの枠） */
.scout-stats, .card {
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    box-shadow: 0 3px 8px rgba(184, 70, 27, 0.04);
    position: relative;
    z-index: 1;
}

/* =========================================================
    🏠 6. ホーム画面（アリゾナ砂漠サンセットテーマ）
========================================================= */
.nav-hub-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 20px 20px 16px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(184, 70, 27, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--primary-color);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(184, 70, 27, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
    position: relative;
    z-index: 1;
}

body.dark-mode .nav-hub-btn {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(224, 98, 50, 0.15) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nav-hub-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.hub-btn-icon {
    font-size: 2.2rem;
    margin-right: 16px;
    line-height: 1;
}

.hub-btn-text {
    display: flex;
    flex-direction: column;
}

.hub-btn-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.hub-btn-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* =========================================================
    📊 SHOWS画面（会場カードUI）の装飾
========================================================= */
.view-title {
    margin-bottom: 16px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.show-card {
    margin-bottom: 14px;
}

.show-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.show-card-header h3 {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* 各種バッジ・タグ */
.badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 20px;
}
.badge-open { background-color: #e8f5e9; color: #2e7d32; }
.badge-closed { background-color: #eee; color: #777; }

.show-card-body p {
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.show-vendors strong {
    color: var(--accent-color); 
    font-size: 1rem;
}

.admission-tag {
    background-color: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* アクションボタン */
.show-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-nav, .btn-reg {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-nav:active, .btn-reg:active {
    background-color: var(--border-color);
}

/* =========================================================
    🏬 VENDORS画面（検索窓 ＆ DNAバーUI）の装飾
========================================================= */
.search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.search-box input, .search-box select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.vendor-card {
    padding: 14px;
    margin-bottom: 12px;
}

.vendor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.vendor-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    max-width: 70%;
}

.vendor-show-badge {
    font-size: 0.75rem;
    font-weight: bold;
    background-color: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

.vendor-booth {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* 🧬 DNAバーのビジュアルレイアウト */
.dna-container {
    background-color: var(--bg-color);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.dna-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.dna-row:last-child { margin-bottom: 0; }

.dna-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 40%;
}

.dna-bar-wrapper {
    display: flex;
    gap: 3px;
    width: 55%;
    height: 10px;
}

.dna-block {
    flex: 1;
    background-color: var(--border-color); /* 通常は灰色 */
    border-radius: 2px;
}

/* 5段階のうち、スコアを満たしているブロックに色を塗る */
.dna-block.active {
    background-color: var(--accent-color); /* 🌅 アリゾナ・サンセットオレンジで美しく可視化 */
}

/* 👍 👎 ボタンUI */
.vendor-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.15s ease;
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

.btn-add-report:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

/* =========================================================
    ⭐️ FAVORITES View (Sanctuary Note UI) Style
========================================================= */
.favorite-card {
    padding: 14px;
    margin-bottom: 12px;
    border-left: 5px solid var(--primary-color); /* おおらかな赤土色で強調 */
}

.fav-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fav-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-remove-fav {
    background: none;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* 🔒 秘密のメモエリア */
.note-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: var(--bg-color);
    padding: 10px;
    border-radius: 6px;
}

.note-area label {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-muted);
}

.txt-note {
    width: 100%;
    height: 70px;
    padding: 8px;
    font-size: 16px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-bg);
    color: var(--text-color);
    resize: none; /* スマホでの誤動作防止のためサイズ固定 */
}

.btn-save-note {
    align-self: flex-end;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

/* =========================================================
    ★ Favorite Toggle Button Styles
========================================================= */
.vendor-title-block {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 75%;
}

.btn-fav-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    color: var(--text-muted);
    transition: transform 0.1s ease;
}

.btn-fav-toggle.active {
    color: var(--accent-color); /* お気に入り時はサンセットオレンジの輝き */
    transform: scale(1.1);
}

/* =========================================================
   📢 広告バナー枠（募集用 / スポンサー用スタイル）
========================================================= */
.ad-banner-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ---------------------------------------------------------
   🚧 募集用バナー (省スペース・グリッドレイアウト)
--------------------------------------------------------- */
.ad-banner-card.recruitment {
    background-color: rgba(230, 106, 31, 0.06);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: 
        "badge btn"
        "msg btn";
    gap: 6px 12px;
    align-items: center;
    padding: 12px 14px;
}

body.dark-mode .ad-banner-card.recruitment {
    background-color: rgba(255, 138, 61, 0.08);
    border-color: var(--border-color);
    border-left-color: var(--accent-color);
}

.ad-banner-card.recruitment .ad-header-row {
    grid-area: badge;
    display: flex;
    justify-content: flex-start;
}

.ad-badge-recruitment {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-color);
    background: rgba(230, 106, 31, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

body.dark-mode .ad-badge-recruitment {
    color: #ff8a3d;
    background: rgba(255, 138, 61, 0.2);
}

.ad-recruitment-msg {
    grid-area: msg;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.35;
    margin: 0;
}

.ad-action-btn.recruitment-btn {
    grid-area: btn;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(230, 106, 31, 0.3);
}

body.dark-mode .ad-action-btn.recruitment-btn {
    background-color: #ff8a3d;
    color: #1a0f0a;
}

.ad-action-btn.recruitment-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* ---------------------------------------------------------
   💎 スポンサー掲載用バナー (コンパクトな上品スタイル)
--------------------------------------------------------- */
.ad-banner-card.sponsored {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(184, 70, 27, 0.05) 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

body.dark-mode .ad-banner-card.sponsored {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(224, 98, 50, 0.08) 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.ad-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ad-badge-sponsored {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

body.dark-mode .ad-badge-sponsored {
    background: #e06232;
    color: #ffffff;
}

.ad-booth-info {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(128,128,128,0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.ad-sponsor-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 2px 0 0 0;
    line-height: 1.25;
}

.ad-sponsor-msg {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 4px 0;
}

.ad-action-btn.sponsored-btn {
    align-self: flex-start;
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease;
}

body.dark-mode .ad-action-btn.sponsored-btn {
    background: #e06232;
    color: #ffffff;
}

.ad-action-btn.sponsored-btn:active {
    transform: scale(0.96);
}