        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f7fafc;
            padding: 16px;
        }
        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        .header {
            background: white;
            border-radius: 20px;
            padding: 16px 20px;
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .header h1 {
            font-size: 20px;
            color: #1a1a2e;
        }
        .header h1 i {
            color: #667eea;
            margin-right: 8px;
        }
        .logout-btn {
            background: #ef4444;
            color: white;
            padding: 8px 16px;
            border-radius: 40px;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: background 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .logout-btn:hover {
            background: #dc2626;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }
        .stat-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            transition: transform 0.2s;
        }
        .stat-card:hover {
            transform: translateY(-2px);
        }
        .stat-card h3 {
            color: #718096;
            font-size: 13px;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
        }
        .stat-card h3 i {
            margin-right: 6px;
            color: #667eea;
        }
        .stat-number {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a2e;
        }
        .card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 24px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .card-title {
            font-size: 16px;
            font-weight: 600;
            color: #1a1a2e;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e2e8f0;
        }
        .card-title i {
            color: #667eea;
            margin-right: 8px;
        }
        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #4a5568;
            font-size: 13px;
        }
        .form-group label i {
            margin-right: 6px;
            color: #667eea;
            width: 18px;
        }
        .form-group input, .form-group select {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid #e2e8f0;
            border-radius: 40px;
            font-size: 14px;
            transition: all 0.2s;
        }
        .form-group input:focus, .form-group select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
        }
        .btn {
            padding: 10px 24px;
            border-radius: 40px;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-primary {
            background: linear-gradient(135deg, #4CAF50 0%, #009688 100%);
            color: white;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(76,175,80,0.3);
        }
        .btn-sm {
            padding: 6px 12px;
            font-size: 12px;
            border-radius: 40px;
        }
        .btn-danger {
            background: #ef4444;
            color: white;
            border: none;
            cursor: pointer;
        }
        .btn-danger:hover {
            background: #dc2626;
        }
        .btn-success {
            background: #10b981;
            color: white;
            border: none;
            cursor: pointer;
        }
        .btn-success:hover {
            background: #059669;
        }
        .btn-warning {
            background: #f59e0b;
            color: white;
            border: none;
            cursor: pointer;
        }
        .btn-warning:hover {
            background: #d97706;
        }
        .btn-copy {
            background: #3b82f6;
            color: white;
            padding: 4px 12px;
            font-size: 11px;
            border-radius: 40px;
            border: none;
            cursor: pointer;
        }
        .btn-copy:hover {
            background: #2563eb;
        }
        .filter-bar {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .filter-bar input {
            flex: 1;
            min-width: 150px;
            padding: 10px 14px;
            border: 2px solid #e2e8f0;
            border-radius: 40px;
            font-size: 13px;
        }
        .filter-bar input:focus {
            outline: none;
            border-color: #667eea;
        }
        .table-wrapper {
            overflow-x: auto;
            margin: 0 -4px;
            padding: 0 4px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 650px;
        }
        th {
            text-align: left;
            padding: 12px 8px;
            background: #f8fafc;
            color: #4a5568;
            font-weight: 600;
            font-size: 12px;
        }
        th i {
            margin-right: 4px;
            color: #667eea;
        }
        td {
            padding: 12px 8px;
            border-bottom: 1px solid #e2e8f0;
            color: #2d3748;
            font-size: 13px;
        }
        tr:hover {
            background: #fafafa;
        }
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 40px;
            font-size: 11px;
            font-weight: 600;
        }
        .badge-active {
            background: #d1fae5;
            color: #065f46;
        }
        .badge-inactive {
            background: #fee2e2;
            color: #991b1b;
        }
        .license-key {
            font-family: 'Monaco', 'Menlo', monospace;
            font-size: 11px;
            background: #f1f5f9;
            padding: 4px 8px;
            border-radius: 40px;
            display: inline-block;
            word-break: break-all;
            max-width: 180px;
        }
        .actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        .actions .btn-sm {
            white-space: nowrap;
        }
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
        }
        .toast {
            background: white;
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 10px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 10px;
            animation: slideInRight 0.3s ease;
            border-left: 4px solid;
            max-width: 300px;
        }
        .toast-success { border-left-color: #10b981; }
        .toast-error { border-left-color: #ef4444; }
        .toast-warning { border-left-color: #f59e0b; }
        .toast i { font-size: 16px; }
        .toast-success i { color: #10b981; }
        .toast-error i { color: #ef4444; }
        .toast-warning i { color: #f59e0b; }
        .toast-content {
            flex: 1;
            color: #1f2937;
            font-size: 13px;
        }
        .toast-close {
            cursor: pointer;
            color: #9ca3af;
            font-size: 12px;
        }
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes fadeOut {
            from { opacity: 1; transform: translateX(0); }
            to { opacity: 0; transform: translateX(100%); }
        }
        .toast.fade-out { animation: fadeOut 0.3s ease forwards; }
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            animation: fadeIn 0.2s ease;
            padding: 20px;
        }
        .modal {
            background: white;
            border-radius: 20px;
            padding: 24px;
            max-width: 400px;
            width: 100%;
            text-align: center;
            animation: scaleIn 0.2s ease;
        }
        .modal i { font-size: 18px; }
        .modal h3 { margin-bottom: 8px; color: #1f2937; font-size: 18px; }
        .modal p { color: #6b7280; margin-bottom: 20px; font-size: 14px; }
        .modal-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes scaleIn {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
        @media (max-width: 768px) {
            body { padding: 12px; }
            .card { padding: 16px; }
            .stats-grid { gap: 12px; }
            .stat-card { padding: 16px; }
            .stat-number { font-size: 24px; }
            .license-key { max-width: 100px; font-size: 9px; }
            th, td { padding: 8px 6px; font-size: 11px; }
            .actions .btn-sm span, .actions .btn-sm .btn-text { display: none; }
            .actions .btn-sm i { margin: 0; font-size: 14px; }
            .actions .btn-sm { padding: 6px 10px; min-width: 32px; justify-content: center; }
            .badge { padding: 3px 8px; font-size: 10px; }
            .badge i { font-size: 10px; }
            .table-wrapper { margin: 0 -8px; padding: 0 8px; }
            .btn-copy { padding: 4px 8px; }
            .btn-copy span { display: none; }
            .btn-copy i { margin: 0; }
        }
        
        @media (max-width: 480px) {
            .header h1 { font-size: 18px; }
            .card-title { font-size: 15px; }
            .form-row { grid-template-columns: 1fr; }
            th:nth-child(1), td:nth-child(1) { display: none; }
            .license-key { max-width: 80px; font-size: 8px; }
            .actions { flex-direction: column; gap: 4px; }
            .actions .btn-sm { width: 100%; justify-content: center; }
            .actions .btn-sm span { display: inline; margin-left: 6px; font-size: 11px; }
            .actions .btn-sm i { margin-right: 4px; }
            .btn-copy span { display: inline; }
        }
        
        @media (max-width: 380px) {
            th:nth-child(4), td:nth-child(4) { display: none; }
        }
        
        .edit-form-group {
            text-align: left;
            margin-bottom: 16px;
        }
        .edit-form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #4a5568;
            font-size: 13px;
        }
        .edit-form-group input {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid #e2e8f0;
            border-radius: 40px;
            font-size: 14px;
        }
        .edit-form-group input:focus {
            outline: none;
            border-color: #667eea;
        }
        .date-note {
            font-size: 11px;
            color: #718096;
            margin-top: 4px;
            display: block;
        }
