        :root {
            --primary: #635bff;
            --primary-dark: #4b45c7;
            --bg: #0f1419;
            --bg-card: #1a1f26;
            --bg-card-hover: #242b35;
            --text: #e7e9ea;
            --text-muted: #8b98a5;
            --border: #2f3940;
            --success: #00ba7c;
            --warning: #ffad1f;
            --danger: #f4212e;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Noto Sans JP', sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
        }

        /* ヘッダー */
        header {
            background: linear-gradient(135deg, var(--bg-card) 0%, #1e252e 100%);
            padding: 20px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(10px);
        }

        .logo-link {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.3rem;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-link::before {
            content: '📦';
            font-size: 1.5rem;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-email {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.9rem;
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
        }

        .btn-outline:hover {
            background: var(--bg-card-hover);
            border-color: var(--text-muted);
        }

        /* メインコンテンツ */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 30px;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .page-title {
            font-size: 1.8rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .stats-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .stat-icon.total {
            background: linear-gradient(135deg, #635bff 0%, #8b5cf6 100%);
        }

        .stat-icon.pending {
            background: linear-gradient(135deg, #ffad1f 0%, #f59e0b 100%);
        }

        .stat-icon.shipped {
            background: linear-gradient(135deg, #00ba7c 0%, #10b981 100%);
        }

        .stat-info h3 {
            font-size: 1.8rem;
            font-weight: 700;
        }

        .stat-info p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        /* テーブル */
        .orders-table-wrapper {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
        }

        .orders-table {
            width: 100%;
            border-collapse: collapse;
        }

        .orders-table th,
        .orders-table td {
            padding: 16px 20px;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }

        .orders-table th {
            background: rgba(99, 91, 255, 0.1);
            color: var(--text-muted);
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .orders-table tbody tr {
            transition: background 0.2s;
        }

        .orders-table tbody tr:hover {
            background: var(--bg-card-hover);
        }

        .orders-table tbody tr:last-child td {
            border-bottom: none;
        }

        .customer-name {
            font-weight: 600;
            color: var(--text);
        }

        .customer-email {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .amount {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--primary);
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .status-badge.paid {
            background: rgba(255, 173, 31, 0.15);
            color: var(--warning);
        }

        .status-badge.shipped {
            background: rgba(0, 186, 124, 0.15);
            color: var(--success);
        }

        .btn-action {
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }

        .btn-ship {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
        }

        .btn-ship:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(99, 91, 255, 0.4);
        }

        .btn-detail {
            background: var(--bg-card-hover);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-detail:hover {
            background: var(--border);
        }

        .action-buttons {
            display: flex;
            gap: 8px;
        }

        .btn-copy:hover {
            background: var(--border);
        }

        .btn-copy.copied {
            background: var(--success);
            color: white;
            border-color: var(--success);
        }

        .btn-save-image {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
        }

        .btn-save-image:hover {
            background: #00ba7c;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .status-badge.shipped {
            background: #dcfce7;
            color: #166534;
            border: 1px solid #bbf7d0;
        }

        .status-badge.paid {
            background: #fff7ed;
            color: #c2410c;
            border: 1px solid #fed7aa;
        }

        .status-badge.refunded {
            background: #f3f4f6;
            color: #4b5563;
            border: 1px solid #d1d5db;
        }

        .btn-receipt {
            background: var(--bg-card-hover);
            color: var(--text);
            border: 1px solid #718096;
        }

        .btn-receipt:hover {
            background: #e2e8f0;
            color: var(--text);
        }

        .btn-refund {
            background: #ffe4e6;
            color: #e11d48;
            border: 1px solid #fda4af;
        }

        .btn-refund:hover {
            background: #fda4af;
        }

        /* アクセス制限画面 */
        .access-denied {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 70vh;
            text-align: center;
        }

        .access-denied-icon {
            font-size: 4rem;
            margin-bottom: 20px;
        }

        .access-denied h2 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .access-denied p {
            color: var(--text-muted);
            margin-bottom: 20px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(99, 91, 255, 0.4);
        }

        .loading {
            text-align: center;
            padding: 60px;
            color: var(--text-muted);
        }

        .empty-state {
            text-align: center;
            padding: 60px;
            color: var(--text-muted);
        }

        .empty-state-icon {
            font-size: 3rem;
            margin-bottom: 16px;
        }

        /* === モーダル === */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .modal.show {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: var(--bg-card);
            width: 90%;
            max-width: 600px;
            border-radius: 16px;
            border: 1px solid var(--border);
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }

        @keyframes modalSlideIn {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            background: var(--bg-card);
            z-index: 10;
        }

        .modal-title {
            font-size: 1.2rem;
            font-weight: 700;
        }

        .btn-close {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1.5rem;
            cursor: pointer;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .btn-close:hover {
            background: var(--bg-card-hover);
            color: var(--text);
        }

        #detailContent {
            padding: 24px;
        }

        .detail-row {
            display: flex;
            margin-bottom: 16px;
            align-items: baseline;
        }

        .detail-row:last-child {
            margin-bottom: 0;
        }

        .detail-label {
            width: 100px;
            flex-shrink: 0;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .detail-value {
            flex: 1;
            font-weight: 500;
            line-height: 1.5;
        }

        .modal-actions {
            padding: 20px 24px;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 12px;
            background: var(--bg-card);
            position: sticky;
            bottom: 0;
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
        }

        .btn-modal-action {
            flex: 1;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-copy {
            background: var(--bg-card-hover);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-copy:hover {
            background: var(--border);
        }

        .btn-save-image {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
        }

        /* === レスポンシブ対応 === */

        /* スマホ (〜599px) */
        @media (max-width: 599px) {
            header {
                padding: 15px;
                flex-direction: column;
                gap: 10px;
            }

            .header-actions {
                width: 100%;
                justify-content: space-between;
            }

            .user-email {
                font-size: 0.8rem;
            }

            .container {
                padding: 15px;
            }

            .page-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .page-title {
                font-size: 1.3rem;
            }

            .stats-row {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .stat-card {
                padding: 16px;
            }

            .stat-icon {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }

            .stat-info h3 {
                font-size: 1.4rem;
            }

            /* テーブルをカード形式に変換 */
            .orders-table thead {
                display: none;
            }

            .orders-table tbody tr {
                display: block;
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 12px;
                margin-bottom: 12px;
                padding: 15px;
            }

            .orders-table td {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 8px 0;
                border-bottom: 1px solid var(--border);
            }

            .orders-table td:last-child {
                border-bottom: none;
            }

            .orders-table td::before {
                content: attr(data-label);
                font-weight: 600;
                color: var(--text-muted);
                font-size: 0.85rem;
            }

            .modal-content {
                width: 95%;
                padding: 20px;
                max-height: 90vh;
                overflow-y: auto;
            }

            .detail-row {
                flex-direction: column;
                align-items: flex-start;
            }

            .modal-actions {
                flex-direction: column;
            }

            .btn-modal-action {
                width: 100%;
            }
        }

        /* タブレット (600px〜899px) */
        @media (min-width: 600px) and (max-width: 899px) {
            .container {
                padding: 20px;
            }

            .stats-row {
                grid-template-columns: repeat(3, 1fr);
            }

            .orders-table th,
            .orders-table td {
                padding: 14px 16px;
                font-size: 0.9rem;
            }
        }

        /* PC (900px〜) */
        @media (min-width: 900px) {
            .container {
                padding: 30px;
            }

            .stats-row {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* 大画面PC (1400px〜) */
        @media (min-width: 1400px) {
            .container {
                max-width: 1600px;
            }
        }