        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e8ecff 100%);
            color: #333;
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        header {
            text-align: center;
            padding: 30px 0;
            margin-bottom: 25px;
            background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            border-radius: 15px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
        }
        
        header::before {
            content: "¥";
            position: absolute;
            top: -30px;
            left: -30px;
            font-size: 200px;
            opacity: 0.05;
            transform: rotate(-25deg);
        }
        
        h1 {
            font-size: 2.4rem;
            margin-bottom: 10px;
            position: relative;
        }
        
        .subtitle {
            font-size: 1.15rem;
            opacity: 0.9;
            position: relative;
        }
        
        .app-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 30px;
        }
        
        @media (max-width: 900px) {
            .app-container {
                grid-template-columns: 1fr;
            }
        }
        
        .card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
            padding: 25px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        }
        
        .card-title {
            font-size: 1.45rem;
            margin-bottom: 20px;
            color: #1e3c72;
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f2f5;
        }
        
        .card-title i {
            font-size: 1.3rem;
            color: #2a5298;
        }
        
        .form-group {
            margin-bottom: 18px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #444;
        }
        
        input, select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s;
            background: #f9fafc;
        }
        
        input:focus, select:focus {
            outline: none;
            border-color: #4a6fcb;
            box-shadow: 0 0 0 3px rgba(74, 111, 203, 0.1);
            background: white;
        }
        
        .btn-group {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }
        
        button {
            flex: 1;
            padding: 12px 0;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn-buy {
            background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
            color: white;
        }
        
        .btn-sell {
            background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
            color: white;
        }
        
        .btn-clear {
            background: linear-gradient(135deg, #9e9e9e 0%, #616161 100%);
            color: white;
            margin-top: 10px;
        }
        
        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        }
        
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 18px;
            margin-bottom: 25px;
        }
        
        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
            transition: transform 0.3s;
        }
        
        .stat-card:hover {
            transform: translateY(-3px);
        }
        
        .stat-value {
            font-size: 2.1rem;
            font-weight: 700;
            margin: 10px 0;
        }
        
        .profit {
            color: #4CAF50;
        }
        
        .loss {
            color: #F44336;
        }
        
        .neutral {
            color: #616161;
        }
        
        .transactions {
            margin-top: 20px;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            border-radius: 10px;
            overflow: hidden;
        }
        
        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #f0f2f5;
        }
        
        th {
            background: linear-gradient(to bottom, #f8f9fa, #eef0f5);
            font-weight: 600;
            color: #1e3c72;
        }
        
        tr:last-child td {
            border-bottom: none;
        }
        
        tr:hover {
            background-color: #f8fbff;
        }
        
        .buy-row {
            background-color: #f0f9f0;
        }
        
        .sell-row {
            background-color: #fff0f0;
        }
        
        .profit-cell {
            color: #4CAF50;
            font-weight: 600;
        }
        
        .loss-cell {
            color: #F44336;
            font-weight: 600;
        }
        
        .delete-btn {
            color: #F44336;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.2s;
            width: auto;
            padding: 5px 10px;
            border-radius: 5px;
        }
        
        .delete-btn:hover {
            background: #ffebee;
            transform: scale(1.1);
        }
        
        .summary {
            margin-top: 30px;
            text-align: center;
            padding: 25px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
            position: relative;
            overflow: hidden;
        }
        
        .summary::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #4CAF50, #2a5298, #F44336);
        }
        
        .summary-title {
            font-size: 1.75rem;
            margin-bottom: 15px;
            color: #1e3c72;
        }
        
        .total-profit {
            font-size: 2.4rem;
            font-weight: 700;
            margin: 15px 0;
        }
        
        footer {
            text-align: center;
            padding: 20px;
            color: #666;
            font-size: 0.9rem;
            margin-top: 30px;
        }
        
        .exchange-rate {
            background: #fffde7;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0 20px;
            text-align: center;
            font-weight: 500;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }
        
        .rate-value {
            font-weight: 700;
            color: #d32f2f;
            font-size: 1.2rem;
        }
        
        .instructions {
            background: #e3f2fd;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0 25px;
            font-size: 0.9rem;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }
        
        .instructions ul {
            padding-left: 20px;
            margin-top: 10px;
        }
        
        .instructions li {
            margin-bottom: 7px;
        }
        
        .chart-container {
            height: 240px;
            margin: 20px 0;
        }
        
        .data-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 25px;
        }
        
        @media (max-width: 768px) {
            .data-section {
                grid-template-columns: 1fr;
            }
        }
        
        .inventory-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
        }
        
        .inventory-title {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: #1e3c72;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .inventory-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #f0f2f5;
        }
        
        .inventory-item:last-child {
            border-bottom: none;
        }
        
        .no-inventory {
            text-align: center;
            padding: 20px;
            color: #777;
        }
        
        .action-buttons {
            display: flex;
            gap: 12px;
            margin-top: 15px;
        }
        
        .action-btn {
            padding: 10px 15px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            border: 1px solid #ddd;
            background: #f8f9fa;
            transition: all 0.2s;
        }
        
        .action-btn:hover {
            background: #eef0f5;
            transform: translateY(-2px);
        }
        
        .export-btn {
            background: linear-gradient(135deg, #2196F3 0%, #0d47a1 100%);
            color: white;
            border: none;
        }
        
        .export-btn:hover {
            background: linear-gradient(135deg, #1e88e5 0%, #0b3d91 100%);
        }
        
        .tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 2px solid #f0f2f5;
        }
        
        .tab {
            padding: 12px 25px;
            cursor: pointer;
            font-weight: 500;
            color: #666;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
        }
        
        .tab.active {
            color: #2a5298;
            border-bottom: 3px solid #2a5298;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .rate-info {
            font-size: 0.9rem;
            color: #666;
            margin-top: 5px;
            text-align: center;
        }
        
        .highlight {
            background-color: #fff8e1;
            padding: 3px 6px;
            border-radius: 4px;
            font-weight: 600;
        }