/* ==========================================================================
   TENBAG Mobile Design System & Stylesheet (mobile.css)
   ========================================================================== */

:root {
    --m-primary: #2563eb;
    --m-primary-dark: #1d4ed8;
    --m-primary-light: #eff6ff;
    --m-navy: #0f172a;
    --m-slate-dark: #1e293b;
    --m-slate: #334155;
    --m-muted: #64748b;
    --m-light-muted: #94a3b8;
    --m-border: #e2e8f0;
    --m-border-light: #f1f5f9;
    --m-bg: #f8fafc;
    --m-card-bg: #ffffff;
    --m-red: #ef4444;
    --m-red-light: #fef2f2;
    --m-blue: #3b82f6;
    --m-blue-light: #eff6ff;
    --m-nav-height: 60px;
    --m-header-height: 54px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--m-bg);
    color: var(--m-slate-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.stock-up { color: var(--m-red) !important; font-weight: 700; }
.stock-down { color: var(--m-blue) !important; font-weight: 700; }
.stock-flat { color: var(--m-muted) !important; font-weight: 600; }
.badge-up { background-color: var(--m-red-light); color: var(--m-red); }
.badge-down { background-color: var(--m-blue-light); color: var(--m-blue); }
.badge-flat { background-color: #f1f5f9; color: var(--m-muted); }

/* Layout Shell */
#mobile-app {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

/* Sticky App Header */
.m-header {
    height: var(--m-header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--m-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.m-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.m-logo-badge {
    -webkit-text-fill-color: initial;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--m-primary-light);
    color: var(--m-primary);
}

.m-search-trigger {
    flex: 1;
    margin: 0 12px;
    background: #f1f5f9;
    border-radius: 20px;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    color: var(--m-light-muted);
    cursor: pointer;
    transition: background 0.15s ease;
}

.m-search-trigger:active {
    background: #e2e8f0;
}

.m-search-trigger i {
    margin-right: 6px;
    color: var(--m-light-muted);
}

.m-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--m-slate);
    font-size: 17px;
}

.m-header-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.m-notif-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--m-red);
}

/* Scrollable Container */
.m-content {
    flex: 1;
    padding-bottom: calc(var(--m-nav-height) + 20px);
    background-color: var(--m-bg);
}

/* Market Indices Section */
.m-section-indices {
    background: #ffffff;
    padding: 14px 16px;
    border-bottom: 1px solid var(--m-border-light);
}

.m-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.m-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--m-slate-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.m-pill-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 8px;
    gap: 2px;
}

.m-pill-btn {
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    color: var(--m-muted);
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.m-pill-btn.active {
    background: #ffffff;
    color: var(--m-slate-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.m-indices-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 6px 0;
}

.m-index-card {
    min-width: 136px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid var(--m-border);
    border-radius: 12px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s;
}

.m-index-card:active {
    transform: scale(0.98);
}

.m-index-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--m-muted);
}

.m-index-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--m-navy);
    margin: 4px 0 2px 0;
}

.m-index-chg {
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Strategy Shortcuts Grid */
.m-section-strats {
    background: #ffffff;
    padding: 14px 16px;
    margin-top: 8px;
    border-top: 1px solid var(--m-border-light);
    border-bottom: 1px solid var(--m-border-light);
}

.m-strats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.m-strat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.m-strat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.m-strat-item:active .m-strat-icon-box {
    transform: scale(0.92);
}

.m-strat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--m-slate);
}

/* Radar Banner */
.m-radar-banner {
    margin: 10px 16px 4px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 14px;
    padding: 13px 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.m-radar-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.m-radar-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #60a5fa;
}

.m-radar-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: #93c5fd;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.m-radar-msg {
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.m-radar-btn {
    background: var(--m-primary);
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* Smart Ranking Section */
.m-section-ranking {
    background: #ffffff;
    padding: 14px 16px;
    margin-top: 8px;
    border-top: 1px solid var(--m-border-light);
    border-bottom: 1px solid var(--m-border-light);
}

.m-ranking-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 10px 0;
}

.m-rank-chip {
    border: 1px solid transparent;
    background: #f1f5f9;
    color: var(--m-slate);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.m-rank-chip.active {
    background: var(--m-navy);
    color: #ffffff;
    font-weight: 700;
}

.m-ranking-list {
    display: flex;
    flex-direction: column;
}

.m-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 4px;
    border-bottom: 1px solid var(--m-border-light);
    cursor: pointer;
    transition: background-color 0.1s;
}

.m-stock-row:last-child {
    border-bottom: none;
}

.m-stock-row:active {
    background-color: #f8fafc;
}

.m-stock-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.m-stock-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--m-slate);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.m-stock-meta {
    min-width: 0;
}

.m-stock-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--m-slate-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-stock-sub {
    font-size: 10.5px;
    color: var(--m-muted);
    margin-top: 2px;
}

.m-stock-right {
    text-align: right;
    flex-shrink: 0;
}

.m-stock-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--m-navy);
}

.m-diff-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.m-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 9px 0;
    background: #f8fafc;
    border: 1px solid var(--m-border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--m-slate);
    cursor: pointer;
}

/* News Section */
.m-section-news {
    background: #ffffff;
    padding: 14px 16px;
    margin-top: 8px;
    border-top: 1px solid var(--m-border-light);
    border-bottom: 1px solid var(--m-border-light);
}

.m-news-item {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid var(--m-border-light);
    cursor: pointer;
}

.m-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.m-news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--m-slate-dark);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-news-meta {
    font-size: 10.5px;
    color: var(--m-light-muted);
    margin-top: 4px;
    display: flex;
    gap: 6px;
}

/* Mobile Footer */
.m-footer {
    padding: 24px 16px 20px;
    text-align: center;
    font-size: 11px;
    color: var(--m-light-muted);
    line-height: 1.6;
    background: var(--m-bg);
}

.m-footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--m-muted);
}

/* Fixed Bottom Navigation */
.m-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: var(--m-nav-height);
    background: #ffffff;
    border-top: 1px solid var(--m-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--m-muted);
    text-decoration: none;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: color 0.15s ease;
}

.m-nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

.m-nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.m-nav-item.active {
    color: var(--m-primary);
}

.m-nav-item.active span {
    font-weight: 700;
}

/* Mobile Drawer (Side Menu) */
.m-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.m-drawer-overlay.active {
    display: block;
    opacity: 1;
}

.m-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.m-drawer.active {
    right: 0;
}

.m-drawer-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--m-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
}

.m-drawer-group {
    margin-bottom: 20px;
}

.m-drawer-group-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--m-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.m-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--m-slate-dark);
    text-decoration: none;
    border-radius: 6px;
}

.m-drawer-link:active {
    background-color: #f1f5f9;
}

.m-drawer-link i {
    width: 18px;
    color: var(--m-muted);
    font-size: 14px;
    text-align: center;
}

/* Fast Search Modal */
.m-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 900;
    display: none;
    flex-direction: column;
}

.m-search-modal.active {
    display: flex;
}

.m-search-header {
    height: var(--m-header-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--m-border-light);
    gap: 10px;
}

.m-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 0 12px;
    height: 38px;
}

.m-search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 13.5px;
    margin-left: 6px;
}

.m-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

/* Stock Popup Modal (Mobile Bottom Sheet / Dialog) */
.m-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-end;
}

.m-modal-overlay.active {
    display: flex;
}

.m-modal-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    height: 88vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.m-modal-sheet-head {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--m-border-light);
    background: #ffffff;
}

.m-modal-iframe {
    flex: 1;
    width: 100%;
    border: none;
}

/* ==========================================================================
   Mobile Stock List Page Styles
   ========================================================================== */

.m-stock-list-container {
    background: #ffffff;
    min-height: calc(100vh - var(--m-header-height) - var(--m-nav-height));
    display: flex;
    flex-direction: column;
}

.m-search-panel {
    background: #ffffff;
    padding: 12px 16px;
    border-bottom: 1px solid var(--m-border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.m-search-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 0 12px;
    height: 40px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.m-search-input-box:focus-within {
    background: #ffffff;
    border-color: var(--m-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.m-search-input-box input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    margin-left: 6px;
    color: var(--m-slate-dark);
}

.m-search-btn {
    height: 40px;
    padding: 0 14px;
    background: var(--m-primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease;
}

.m-search-btn:active {
    background: var(--m-primary-dark);
}

.m-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.m-market-pills {
    display: flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 8px;
    gap: 2px;
}

.m-market-pill {
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--m-muted);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.m-market-pill.active {
    background: #ffffff;
    color: var(--m-slate-dark);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.m-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 8px center/12px;
    border: 1px solid var(--m-border);
    border-radius: 8px;
    padding: 5px 26px 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--m-slate);
    cursor: pointer;
}

.m-list-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--m-border-light);
    font-size: 11px;
    color: var(--m-muted);
}

.m-scroll-hint {
    font-size: 10.5px;
    color: var(--m-light-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Horizontal Scroll Table */
.m-table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: #ffffff;
}

.m-stock-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

.m-stock-data-table th {
    background: #f8fafc;
    color: var(--m-muted);
    font-weight: 700;
    font-size: 11.5px;
    padding: 10px 10px;
    border-bottom: 1px solid var(--m-border);
    white-space: nowrap;
    text-align: right;
    position: sticky;
    top: 0;
    z-index: 10;
}

.m-stock-data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--m-border-light);
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
}

.m-stock-data-table tr:active td {
    background-color: #f8fafc;
}

/* Sticky First Column: 종목명 */
.m-stock-data-table th.col-sticky-name,
.m-stock-data-table td.col-sticky-name {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 5;
    text-align: left;
    min-width: 130px;
    max-width: 155px;
    box-shadow: 3px 0 6px -2px rgba(0, 0, 0, 0.08);
}

.m-stock-data-table th.col-sticky-name {
    background: #f8fafc;
    z-index: 20;
}

.m-col-name-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.m-col-name-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--m-slate-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-col-name-sub {
    font-size: 10.5px;
    color: var(--m-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-market-tag {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background: #f1f5f9;
    color: var(--m-muted);
}

.m-market-tag.kospi {
    background: #eff6ff;
    color: #2563eb;
}

.m-market-tag.kosdaq {
    background: #fef2f2;
    color: #dc2626;
}

/* Table Pagination Controls */
.m-pagination-bar {
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: #ffffff;
}

.m-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--m-border);
    background: #ffffff;
    color: var(--m-slate);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.m-page-btn.active {
    background: var(--m-navy);
    color: #ffffff;
    border-color: var(--m-navy);
    font-weight: 700;
}

.m-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Group Chips Tabs */
.m-group-tabs-wrap {
    padding: 10px 16px 6px;
    background: #ffffff;
    border-bottom: 1px solid var(--m-border-light);
}

.m-group-scroll-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.m-group-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--m-slate);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.m-group-chip:active {
    transform: scale(0.96);
}

.m-group-chip.active {
    background: var(--m-primary);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.m-group-chip-count {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
}

.m-group-chip.active .m-group-chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Mobile Stock Detail Page Styles
   ========================================================================== */

.m-detail-container {
    background: #ffffff;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* Top Back Navigation Bar */
.m-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--m-border-light);
    position: sticky;
    top: var(--m-header-height);
    z-index: 50;
}

.m-nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--m-slate);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
}

.m-detail-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-fav-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.m-fav-btn.active {
    color: #f59e0b;
}

/* Hero Price Header */
.m-detail-hero {
    padding: 16px 16px 14px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--m-border-light);
}

.m-hero-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.m-hero-stock-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--m-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-hero-stock-code {
    font-size: 12px;
    font-weight: 600;
    color: var(--m-muted);
}

.m-hero-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 12px 0;
    flex-wrap: wrap;
}

.m-hero-cur-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--m-navy);
    letter-spacing: -0.5px;
}

.m-hero-diff-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
}

/* Day Stats Grid */
.m-day-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 10px;
    text-align: center;
}

.m-day-stat-box {
    display: flex;
    flex-direction: column;
}

.m-day-stat-label {
    font-size: 10.5px;
    color: var(--m-muted);
    font-weight: 600;
}

.m-day-stat-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--m-slate-dark);
    margin-top: 2px;
}

/* Chart Container */
.m-chart-section {
    padding: 14px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--m-border-light);
}

.m-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.m-chart-box {
    width: 100%;
    height: 300px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* Detail Segmented Tabs */
.m-subtab-bar {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid var(--m-border);
    position: sticky;
    top: calc(var(--m-header-height) + 42px);
    z-index: 40;
}

.m-subtab-btn {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--m-muted);
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.m-subtab-btn.active {
    color: var(--m-primary);
    font-weight: 800;
    border-bottom-color: var(--m-primary);
}

/* Tab Panels */
.m-tab-panel {
    display: none;
    padding: 16px;
    background: #ffffff;
}

.m-tab-panel.active {
    display: block;
}

/* Financial Info Cards Grid */
.m-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.m-info-card {
    background: #f8fafc;
    border: 1px solid var(--m-border-light);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.m-info-card-label {
    font-size: 11px;
    color: var(--m-muted);
    font-weight: 600;
}

.m-info-card-val {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--m-navy);
    margin-top: 3px;
}

/* Returns Pill List */
.m-returns-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin: 12px 0;
}

.m-return-box {
    flex: 1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--m-border-light);
}

.m-return-period {
    font-size: 10px;
    color: var(--m-muted);
    font-weight: 600;
}

.m-return-val {
    font-size: 11.5px;
    font-weight: 800;
    margin-top: 2px;
}

/* Table in Detail Tabs */
.m-simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.m-simple-table th {
    background: #f8fafc;
    color: var(--m-muted);
    padding: 8px 6px;
    font-weight: 700;
    border-bottom: 1px solid var(--m-border);
    text-align: center;
}

.m-simple-table td {
    padding: 9px 6px;
    border-bottom: 1px solid var(--m-border-light);
    text-align: right;
    color: var(--m-slate-dark);
}

.m-simple-table td:first-child {
    text-align: center;
    color: var(--m-muted);
    font-weight: 500;
}

/* Floating Bottom Action Bar */
.m-detail-floating-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid var(--m-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    z-index: 100;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.m-floating-btn {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.m-floating-btn-outline {
    background: #f1f5f9;
    color: var(--m-slate-dark);
}

.m-floating-btn-primary {
    background: var(--m-primary);
    color: #ffffff;
}

/* Strategy Banner */
.m-strat-desc-banner {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--m-border-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.m-strat-desc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.m-strat-desc-text {
    flex: 1;
    min-width: 0;
}

.m-strat-desc-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.m-strat-desc-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--m-navy);
}

.m-strat-desc-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: #e2e8f0;
    color: var(--m-slate);
}

.m-strat-desc-content {
    font-size: 11.5px;
    color: var(--m-muted);
    line-height: 1.45;
}



/* ==========================================================================
   Mobile Chart Page Styles
   ========================================================================== */
.m-chart-page-container {
    padding: 10px 14px 24px;
}

.m-chart-top-bar {
    margin-bottom: 12px;
}

.m-chart-search-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.m-chart-search-input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 36px;
    background: #ffffff;
    border: 1px solid var(--m-border);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--m-navy);
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.m-chart-search-input:focus {
    border-color: var(--m-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.m-chart-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--m-muted);
}

.m-chart-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--m-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}

.m-chart-search-dropdown {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--m-border);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
}

.m-search-drop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--m-border-light);
    cursor: pointer;
}

.m-search-drop-item:last-child {
    border-bottom: none;
}

.m-search-drop-item:hover, .m-search-drop-item:active {
    background: #f8fafc;
}

.m-search-drop-item .stock-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--m-navy);
    margin-right: 6px;
}

.m-search-drop-item .stock-code {
    font-size: 11px;
    color: var(--m-muted);
}

.m-search-drop-item .stock-market {
    font-size: 10px;
    color: var(--m-slate);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.m-quick-ticker-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.m-quick-ticker-chips::-webkit-scrollbar {
    display: none;
}

.m-ticker-chip {
    padding: 5px 11px;
    background: #ffffff;
    border: 1px solid var(--m-border);
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--m-slate);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.m-ticker-chip.active {
    background: var(--m-navy);
    color: #ffffff;
    border-color: var(--m-navy);
}

.m-chart-quote-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid var(--m-border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    margin-bottom: 12px;
}

.m-quote-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.m-quote-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-quote-hname {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--m-navy);
    margin: 0;
}

.m-quote-shcode {
    font-size: 11.5px;
    color: var(--m-muted);
    font-weight: 600;
}

.m-quote-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-quote-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--m-slate);
}

.m-quote-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.m-quote-price-wrap {
    display: flex;
    flex-direction: column;
}

.m-quote-cur-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--m-navy);
    line-height: 1.1;
    margin-bottom: 4px;
}

.m-quote-diff-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
}

.m-quote-vol-wrap {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.m-chart-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.m-chart-period-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.m-period-tab {
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--m-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.m-period-tab.active {
    background: #ffffff;
    color: var(--m-navy);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.m-chart-ma-legend {
    display: flex;
    gap: 4px;
}

.m-ma-pill {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.m-ma-pill.ma5 { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.m-ma-pill.ma20 { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.m-ma-pill.ma60 { background: rgba(16, 185, 129, 0.15); color: #047857; }
.m-ma-pill.ma120 { background: rgba(139, 92, 246, 0.15); color: #6d28d9; }
.m-ma-pill.disabled { opacity: 0.35; text-decoration: line-through; }

.m-chart-info-bar {
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid var(--m-border-light);
    margin-bottom: 8px;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.m-bar-hint {
    font-size: 10.5px;
    color: var(--m-light-muted);
}

.m-ohlc-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: var(--m-slate-dark);
}

.m-ohlc-date {
    font-weight: 700;
    color: var(--m-navy);
    margin-right: 4px;
}

.m-chart-viewport-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 4px;
    border: 1px solid var(--m-border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    margin-bottom: 12px;
    position: relative;
}

.m-full-chart-box {
    width: 100%;
    height: 380px;
    position: relative;
}

.m-chart-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--m-primary);
    z-index: 10;
}

.m-chart-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.m-chart-stat-item {
    background: #ffffff;
    padding: 10px 8px;
    border-radius: 8px;
    border: 1px solid var(--m-border-light);
    text-align: center;
}

.m-chart-stat-item .stat-lbl {
    display: block;
    font-size: 10.5px;
    color: var(--m-muted);
    margin-bottom: 2px;
}

.m-chart-stat-item .stat-num {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--m-navy);
}

/* ==========================================================================
   Mobile MY Page Styles (UUID & Push Settings)
   ========================================================================== */
.m-my-container {
    padding: 12px 14px 28px;
}

.m-my-profile-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 14px;
    padding: 16px;
    color: #ffffff;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.m-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.m-profile-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #38bdf8;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.m-profile-info {
    flex: 1;
}

.m-profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.m-profile-nickname {
    font-size: 17px;
    font-weight: 800;
}

.m-profile-edit-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-profile-tag-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-badge-uuid {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.m-badge-push-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.m-badge-push-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.m-badge-push-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.m-uuid-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.m-uuid-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.m-uuid-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.m-uuid-copy-btn {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
}

.m-uuid-value {
    font-family: monospace;
    font-size: 12px;
    color: #e2e8f0;
    word-break: break-all;
    user-select: all;
    margin-bottom: 6px;
}

.m-uuid-help {
    font-size: 10px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}

.m-my-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid var(--m-border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    margin-bottom: 14px;
}

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

.m-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: var(--m-navy);
}

.m-count-badge {
    background: #e2e8f0;
    color: var(--m-slate);
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
}

.m-btn-add-fav {
    padding: 4px 10px;
    background: var(--m-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

/* Toggle Switch */
.m-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.m-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.m-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.m-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .m-toggle-slider {
    background-color: var(--m-primary);
}

input:checked + .m-toggle-slider:before {
    transform: translateX(20px);
}

.m-toggle-switch-sm {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.m-toggle-switch-sm input {
    opacity: 0;
    width: 0;
    height: 0;
}

.m-toggle-switch-sm .m-toggle-slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

.m-toggle-switch-sm input:checked + .m-toggle-slider:before {
    transform: translateX(16px);
}

.m-push-options-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid var(--m-border-light);
}

.m-push-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--m-border-light);
}

.m-push-item:last-child {
    border-bottom: none;
}

.m-push-item-text {
    display: flex;
    flex-direction: column;
}

.m-push-item-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--m-slate-dark);
}

.m-push-item-desc {
    font-size: 10.5px;
    color: var(--m-muted);
}

.m-btn-test-push {
    background: #f1f5f9;
    border: 1px solid var(--m-border);
    color: var(--m-slate);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.m-fav-list-container, .m-alerts-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m-fav-card, .m-alert-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--m-border-light);
}

.m-fav-card-left, .m-alert-info {
    flex: 1;
    cursor: pointer;
}

.m-fav-name-row, .m-alert-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.m-fav-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--m-navy);
}

.m-fav-code {
    font-size: 11px;
    color: var(--m-muted);
    font-weight: 600;
}

.m-fav-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
}

.m-target-price-tag {
    background: #fee2e2;
    color: #dc2626;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.m-fav-memo-text {
    color: var(--m-muted);
}

.m-fav-card-right {
    display: flex;
    align-items: center;
}

.m-fav-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--m-navy);
}

.m-fav-del-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px;
    cursor: pointer;
    font-size: 13px;
}

.m-fav-del-btn:hover {
    color: #ef4444;
}

.m-badge-triggered {
    font-size: 10px;
    font-weight: 700;
    background: #fee2e2;
    color: #dc2626;
    padding: 1px 5px;
    border-radius: 4px;
}

.m-badge-monitoring {
    font-size: 10px;
    font-weight: 700;
    background: #dbeafe;
    color: #2563eb;
    padding: 1px 5px;
    border-radius: 4px;
}

.m-empty-state {
    text-align: center;
    padding: 24px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed var(--m-border);
}

.m-sync-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--m-border-light);
}

/* Modals */
.m-dialog-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.m-dialog-overlay.active {
    display: flex;
}

.m-modal-content {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 360px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.m-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.m-modal-close {
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--m-muted);
    cursor: pointer;
}

.m-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.m-btn-cancel {
    padding: 8px 14px;
    background: #f1f5f9;
    border: 1px solid var(--m-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--m-slate);
    cursor: pointer;
}

.m-btn-confirm {
    padding: 8px 16px;
    background: var(--m-primary);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
}
