
        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            background:
                radial-gradient(circle at top right, rgba(212, 175, 55, 0.10), transparent 30%),
                linear-gradient(180deg, #101114, #15171c);
            color: #f3f3f5;
            font-family: Tahoma, sans-serif;
            min-height: 100vh;
            padding: 24px;
        }

        .container {
            max-width: 1320px;
            margin: 0 auto;
        }

        .panel {
            background: rgba(20, 21, 26, 0.96);
            border: 1px solid rgba(212, 175, 55, 0.14);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            padding: 24px 28px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            flex-wrap: wrap;
        }

        .panel-title {
            margin: 0;
            font-size: 28px;
            color: #f4d77a;
        }

        .panel-subtitle {
            margin: 8px 0 0;
            color: #a9acb8;
            font-size: 14px;
        }

        .header-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .header-actions a,
        .header-actions button {
            text-decoration: none;
            color: #121212;
            background: #f0cf61;
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        .header-actions a.secondary {
            background: #2b2f3a;
            color: #f3f3f5;
        }

        .content {
            padding: 24px;
        }

        .table-wrap {
            overflow-x: auto;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 1000px;
        }

        thead th {
            background: #191b21;
            color: #f4d77a;
            font-size: 14px;
            font-weight: 700;
            padding: 16px 14px;
        }

        tbody td {
            padding: 16px 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            text-align: center;
            vertical-align: middle;
        }

        tbody tr:nth-child(even) {
            background: rgba(255, 255, 255, 0.015);
        }

        .product-cell {
            text-align: right;
        }

        .product-title {
            font-size: 15px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 6px;
        }

        .product-id {
            font-size: 12px;
            color: #8d93a5;
            direction: ltr;
            display: inline-block;
        }

        .price-input {
            width: 100%;
            max-width: 150px;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid #303443;
            background: #0f1117;
            color: #ffffff;
            text-align: center;
            font-size: 15px;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .price-input:focus {
            border-color: #d4af37;
            box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.10);
        }

        .stock-input {
            width: 90px;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid #303443;
            background: #0f1117;
            color: #ffffff;
            text-align: center;
            font-size: 15px;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .stock-input:focus {
            border-color: #d4af37;
            box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.10);
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 58px;
            height: 32px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            inset: 0;
            cursor: pointer;
            background: #4a4f5c;
            border-radius: 999px;
            transition: 0.25s ease;
        }

        .slider::before {
            content: '';
            position: absolute;
            width: 24px;
            height: 24px;
            right: 4px;
            top: 4px;
            border-radius: 50%;
            background: #fff;
            transition: 0.25s ease;
        }

        .switch input:checked + .slider {
            background: linear-gradient(135deg, #c93b3b, #ff5c5c);
        }

        .switch input:checked + .slider::before {
            transform: translateX(-26px);
        }

        .status-badge {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
        }

        .status-badge.active {
            background: rgba(35, 166, 90, 0.16);
            color: #92efb7;
            border: 1px solid rgba(35, 166, 90, 0.25);
        }

        .status-badge.stopped-manual {
            background: rgba(210, 62, 62, 0.16);
            color: #ffadad;
            border: 1px solid rgba(210, 62, 62, 0.25);
        }

        .status-badge.stopped-auto {
            background: rgba(240, 170, 50, 0.14);
            color: #ffd27a;
            border: 1px solid rgba(240, 170, 50, 0.25);
        }

        .small-note {
            display: block;
            margin-top: 6px;
            font-size: 11px;
            color: #8d93a5;
        }

        .footer-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            padding-top: 20px;
            flex-wrap: wrap;
        }

        .footer-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .hint {
            color: #9ea2af;
            font-size: 13px;
        }

        .save-btn {
            border: none;
            border-radius: 14px;
            padding: 14px 22px;
            background: linear-gradient(135deg, #d4af37, #f0cf61);
            color: #141414;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            font-family: inherit;
        }

        .apply-stock-btn {
            border: none;
            border-radius: 14px;
            padding: 14px 22px;
            background: linear-gradient(135deg, #1e9e5a, #37c978);
            color: #fff;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            font-family: inherit;
        }

        .save-btn:disabled,
        .apply-stock-btn:disabled,
        .header-actions button:disabled {
            opacity: 0.65;
            cursor: wait;
        }

        .message {
            margin-top: 16px;
            display: none;
            padding: 14px 16px;
            border-radius: 14px;
            font-size: 14px;
        }

        .message.success {
            display: block;
            background: rgba(35, 166, 90, 0.14);
            color: #92efb7;
            border: 1px solid rgba(35, 166, 90, 0.20);
        }

        .message.error {
            display: block;
            background: rgba(210, 62, 62, 0.14);
            color: #ffadad;
            border: 1px solid rgba(210, 62, 62, 0.20);
        }

        .message.info {
            display: block;
            background: rgba(70, 130, 240, 0.14);
            color: #a8c6ff;
            border: 1px solid rgba(70, 130, 240, 0.20);
            white-space: pre-wrap;
        }

        @media (max-width: 768px) {
            body {
                padding: 14px;
            }

            .panel-header,
            .content {
                padding: 18px;
            }

            .panel-title {
                font-size: 22px;
            }

            .header-actions {
                width: 100%;
            }

            .header-actions a,
            .header-actions button {
                flex: 1 1 auto;
                text-align: center;
                justify-content: center;
            }
        }
