* { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: #f5f7fa;
            min-height: 100vh;
            color: #333;
            line-height: 1.5;
            padding-bottom: 60px;
        }

        header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 16px;
        }

        .app-name {
            font-size: 17px;
            font-weight: 600;
            color: white;
        }

        .header-nav {
            display: flex;
            gap: 16px;
        }

        .header-nav .nav-link {
            color: rgba(255,255,255,0.75);
            text-decoration: none;
            font-size: 14px;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.2s;
        }

        .header-nav .nav-link:hover,
        .header-nav .nav-link.active {
            color: white;
            background: rgba(255,255,255,0.15);
        }

        .target-tabs {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px 6px;
        }

        .app-name {
            font-size: 16px;
            font-weight: 600;
            color: white;
        }

        .refresh-info {
            font-size: 11px;
            color: rgba(255,255,255,0.7);
        }

        .target-tabs {
            display: flex;
            gap: 6px;
            padding: 0 16px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .target-tabs::-webkit-scrollbar { display: none; }

        .target-tab {
            padding: 4px 12px;
            border-radius: 16px;
            background: rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.8);
            font-size: 12px;
            white-space: nowrap;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
        }

        .target-tab.active {
            background: white;
            color: #667eea;
            font-weight: 500;
        }

        .main-content {
            padding: 16px;
            max-width: 800px;
            margin: 0 auto;
        }

        .card {
            background: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .card-title {
            font-size: 13px;
            color: #8c8c8c;
            margin-bottom: 12px;
            font-weight: 500;
        }

        .gauge-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
        }

        .gauge-wrapper {
            position: relative;
            width: 200px;
            height: 100px;
            overflow: hidden;
        }

        .gauge-bg {
            position: absolute;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: conic-gradient(
                from 180deg,
                #f5222d 0deg,
                #faad14 72deg,
                #52c41a 144deg,
                #52c41a 180deg,
                #faad14 252deg,
                #f5222d 360deg
            );
            transform: rotate(0deg);
        }

        .gauge-inner {
            position: absolute;
            width: 160px;
            height: 160px;
            border-radius: 50%;
            background: white;
            top: 20px;
            left: 20px;
        }

        .gauge-needle {
            position: absolute;
            width: 4px;
            height: 70px;
            background: #333;
            bottom: 0;
            left: 50%;
            transform-origin: bottom center;
            transform: translateX(-50%) rotate(0deg);
            transition: transform 0.8s ease-out;
            border-radius: 2px;
        }

        .gauge-center {
            position: absolute;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #333;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
        }

        .gauge-labels {
            display: flex;
            justify-content: space-between;
            width: 100%;
            padding: 0 10px;
            margin-top: 8px;
            font-size: 11px;
            color: #8c8c8c;
        }

        .gauge-value {
            font-size: 36px;
            font-weight: 700;
            color: #333;
            margin-top: 8px;
        }

        .gauge-level {
            font-size: 16px;
            color: #8c8c8c;
            margin-top: 4px;
        }

        .signal-badge {
            display: inline-block;
            padding: 4px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            margin-top: 12px;
        }

        .signal-buy {
            background: #fff1f0;
            color: #f5222d;
        }

        .signal-sell {
            background: #f6ffed;
            color: #52c41a;
        }

        .signal-hold {
            background: #f5f5f5;
            color: #8c8c8c;
        }

        .vix-card {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .vix-item {
            background: #f5f7fa;
            border-radius: 8px;
            padding: 12px;
            text-align: center;
        }

        .vix-item-label {
            font-size: 11px;
            color: #8c8c8c;
            margin-bottom: 4px;
        }

        .vix-item-value {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }

        .history-chart {
            height: 150px;
            position: relative;
        }

        #historyCanvas {
            width: 100%;
            height: 150px;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #8c8c8c;
        }

        .error-msg {
            text-align: center;
            padding: 20px;
            color: #f5222d;
            background: #fff1f0;
            border-radius: 8px;
            margin: 20px 0;
        }
