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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #667eea;
    font-size: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: #666;
    font-size: 0.9rem;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 400px;
    margin: 5rem auto;
}

.card h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.card h2 {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='password'],
.form-group input[type='url'] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subdomain Preview Styles */
.subdomain-preview {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: slideDown 0.3s ease-out;
    transition: all 0.3s ease;
}

.subdomain-preview:hover {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.preview-url-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.preview-url-container:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.preview-url-container:last-of-type {
    margin-bottom: 12px;
}

.preview-url {
    color: #4f46e5;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    flex: 1;
    word-break: break-all;
}

.preview-url-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-right: 8px;
    padding: 2px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.availability-status.available {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.availability-status.taken {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.availability-status.checking {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.availability-status svg {
    flex-shrink: 0;
}

.availability-status .store-name {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 4px;
}

/* Store URL Link */
.store-url-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.store-url-link:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
    color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.store-url-link:active {
    transform: translateY(0);
}

.store-url-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Production URL variant */
.store-url-link.store-url-prod {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.store-url-link.store-url-prod:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Table Spinner */
.table-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Special styling for create store button */
#createStoreBtn {
    background: white !important;
    color: #667eea !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem;
    width: auto !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#createStoreBtn:hover {
    background: #f8f9fa !important;
    color: #5a67d8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-warning:hover {
    background: #e0a800;
    color: #212529;
}

.btn-danger-outline {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 0.4rem 0.75rem;
    font-size: 1.1rem;
    line-height: 1;
}

.btn-danger-outline:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.5);
}

.btn-success {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-success:hover {
    background: #218838;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #667eea;
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid #e1e4e8;
}

tbody tr:hover {
    background: #f8f9fa;
}

td {
    padding: 1rem;
}

td.loading {
    text-align: center;
    color: #666;
    padding: 3rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content h3 {
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.modal-content input[type='color'] {
    width: 100%;
    height: 50px;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    cursor: pointer;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-color: #667eea;
}

.color-swatch.selected {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e4e8;
}

.modal-header h2 {
    color: #333;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal-content form {
    padding: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

/* Messages */
.error-message {
    color: #dc3545;
    background: #f8d7da;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #155724;
    background: #d4edda;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Actions Column */
.actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   ENHANCED DEVTOOLS IMPROVEMENTS
   ============================================ */

/* Search and Filter Bar */
.search-filter-bar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box svg {
    color: #999;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #333;
}

.search-box input:focus {
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.filter-btn span {
    font-weight: 600;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

/* Deployment Logs Modal */
.deployment-logs-container {
    max-height: 500px;
    overflow-y: auto;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1rem;
}

.logs-content {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #d4d4d4;
    line-height: 1.6;
}

.log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-timestamp {
    color: #858585;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.log-message {
    flex: 1;
}

.log-success {
    color: #4ade80;
}

.log-error {
    color: #f87171;
}

.log-warning {
    color: #fbbf24;
}

.log-info {
    color: #60a5fa;
}

/* Deployment Progress */
.deployment-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-step.completed {
    color: #10b981;
}

.progress-step.active {
    color: #667eea;
    font-weight: 600;
}

.progress-step.pending {
    color: #999;
}

.progress-step-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Table Styling */
.table-container table tbody tr {
    transition: all 0.2s;
}

.table-container table tbody tr:hover {
    background: #f8f9ff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state-message {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PASSWORD VISIBILITY TOGGLE
   ============================================ */

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #667eea;
}

.password-toggle:focus {
    outline: none;
}

/* ============================================
   IMPROVED TABLE LAYOUT
   ============================================ */

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: calc(100vh - 300px);
    min-height: 400px;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
}

.table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.table-container thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.table-container thead th {
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    white-space: nowrap;
    border-bottom: none;
}

/* Column width allocations */
.table-container table th:nth-child(1),
.table-container table td:nth-child(1) {
    width: 12%; /* Name */
}

.table-container table th:nth-child(2),
.table-container table td:nth-child(2) {
    width: 8%; /* Slug */
}

.table-container table th:nth-child(3),
.table-container table td:nth-child(3) {
    width: 8%; /* Subdomain */
}

.table-container table th:nth-child(4),
.table-container table td:nth-child(4) {
    width: 15%; /* Store URL */
}

.table-container table th:nth-child(5),
.table-container table td:nth-child(5) {
    width: 8%; /* Status */
}

.table-container table th:nth-child(6),
.table-container table td:nth-child(6) {
    width: 10%; /* Deployment */
}

.table-container table th:nth-child(7),
.table-container table td:nth-child(7) {
    width: 10%; /* Created */
}

.table-container table th:nth-child(8),
.table-container table td:nth-child(8) {
    width: 29%; /* Actions */
}

.table-container tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.table-container tbody tr:last-child td {
    border-bottom: none;
}

/* Better action buttons layout */
.table-container .actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.table-container .actions .btn-sm {
    font-size: 0.813rem;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}

/* Store URL links improvements */
.store-url-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
    font-size: 0.813rem;
    transition: all 0.2s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-url-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(2px);
}

.store-url-link svg {
    flex-shrink: 0;
}

.store-url-link span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar styling */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Responsive table adjustments */
@media (max-width: 1600px) {
    .table-container table {
        min-width: 1300px;
    }
}

@media (max-width: 768px) {
    .table-container {
        max-height: calc(100vh - 350px);
        min-height: 300px;
    }
    
    .table-container table th:nth-child(8),
    .table-container table td:nth-child(8) {
        width: 35%;
    }
}

/* ============================================
   ACTIONS DROPDOWN MENU
   ============================================ */

.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-menu-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.actions-menu-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.05);
}

.actions-menu-btn:active {
    transform: scale(0.95);
}

.actions-menu {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.actions-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.action-item {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    color: #333;
    text-align: left;
}

.action-item:first-child {
    border-radius: 12px 12px 0 0;
}

.action-item:last-child {
    border-radius: 0 0 12px 12px;
}

.action-item:hover {
    background: #f8f9fa;
}

.action-item svg {
    flex-shrink: 0;
    color: #666;
}

.action-item span {
    flex: 1;
    font-weight: 500;
}

.action-item.action-deploy:hover {
    background: #d1fae5;
    color: #10b981;
}

.action-item.action-deploy:hover svg {
    color: #10b981;
}

.action-item.action-success:hover {
    background: #d1fae5;
    color: #10b981;
}

.action-item.action-success:hover svg {
    color: #10b981;
}

.action-item.action-warning:hover {
    background: #fef3c7;
    color: #f59e0b;
}

.action-item.action-warning:hover svg {
    color: #f59e0b;
}

.action-item.action-danger:hover {
    background: #fee2e2;
    color: #ef4444;
}

.action-item.action-danger:hover svg {
    color: #ef4444;
}

.action-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.25rem 0;
}

/* ============================================
   DEPLOYMENT INFO & DETAILS
   ============================================ */

.deployment-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.deployment-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deployment-detail {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #666;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    width: fit-content;
}

.deployment-detail svg {
    flex-shrink: 0;
    color: #10b981;
}

/* Update Actions column width */
.table-container table th:nth-child(8),
.table-container table td:nth-child(8) {
    width: 5% !important;
    text-align: center;
}

/* Update Deployment column width */
.table-container table th:nth-child(6),
.table-container table td:nth-child(6) {
    width: 18% !important;
}

/* Adjust other columns */
.table-container table th:nth-child(1),
.table-container table td:nth-child(1) {
    width: 12%;
}

.table-container table th:nth-child(2),
.table-container table td:nth-child(2) {
    width: 10%;
}

.table-container table th:nth-child(3),
.table-container table td:nth-child(3) {
    width: 10%;
}

.table-container table th:nth-child(4),
.table-container table td:nth-child(4) {
    width: 18%;
}

.table-container table th:nth-child(5),
.table-container table td:nth-child(5) {
    width: 9%;
}

.table-container table th:nth-child(7),
.table-container table td:nth-child(7) {
    width: 9%;
}

/* ============================================
   IMPROVED DEPLOYMENT COLUMN STYLING
   ============================================ */

/* Override previous deployment info styles */
.deployment-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    align-items: flex-start;
}

.deployment-info .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    width: 100%;
    justify-content: center;
}

.deployment-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.deployment-detail {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    color: #374151;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 5px;
    border: 1px solid #bbf7d0;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.deployment-detail svg {
    flex-shrink: 0;
    color: #10b981;
    width: 12px;
    height: 12px;
}

/* Not deployed badge styling */
.status-badge[style*="6b7280"] {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.3);
}

/* Make deployment column compact */
.table-container table th:nth-child(6),
.table-container table td:nth-child(6) {
    width: 12% !important;
    min-width: 120px;
}

/* Center align deployment column header */
.table-container table th:nth-child(6) {
    text-align: center;
}

/* Better table cell alignment */
.table-container tbody td:nth-child(6) {
    vertical-align: middle;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ============================================
   STATUS ICON BADGES
   ============================================ */

.status-icons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.status-icon-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: default;
}

.status-icon-badge svg {
    margin-bottom: 2px;
}

.status-icon-badge .badge-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status States */
.status-icon-badge.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.status-icon-badge.status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.status-icon-badge.status-none {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.15);
}

.status-icon-badge.clickable {
    cursor: pointer;
}

.status-icon-badge.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-icon-badge.clickable:active {
    transform: translateY(0);
}

/* Improve overall table spacing */
.table-container tbody td {
    padding: 1rem 0.75rem;
}

/* First column (Name) styling */
.table-container tbody td:nth-child(1) {
    font-weight: 600;
    color: #1f2937;
}

/* Status badges in Status column */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.status-inactive {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

/* Remove the pulsing dot - cleaner look */
.status-badge::before {
    display: none;
}

/* ============================================
   PAYMENTS MODAL STYLES
   ============================================ */

.payments-modal {
    max-width: 800px !important;
    width: 95% !important;
}

.payments-modal-body {
    padding: 0;
}

/* Payment Status Banner */
.payment-status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #fcd34d;
}

.payment-status-banner.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-bottom-color: #6ee7b7;
}

.payment-status-banner .status-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-status-banner .status-content {
    flex: 1;
}

.payment-status-banner .status-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.payment-status-banner.active .status-title {
    color: #065f46;
}

.payment-status-banner .status-desc {
    font-size: 0.875rem;
    color: #a16207;
}

.payment-status-banner.active .status-desc {
    color: #047857;
}

/* Payments Tabs */
.payments-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.payments-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.payments-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.payments-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.payments-tab svg {
    opacity: 0.7;
}

.payments-tab.active svg {
    opacity: 1;
}

/* Tab Content */
.payments-tab-content {
    display: none;
    padding: 1.5rem;
}

.payments-tab-content.active {
    display: block;
}

/* Setup Section */
.setup-section h3,
.config-section h3,
.test-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.setup-section h3 svg,
.config-section h3 svg,
.test-section h3 svg {
    color: #667eea;
}

.section-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Select Styling */
.payments-modal select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payments-modal select:focus {
    outline: none;
    border-color: #667eea;
}

/* Verification Result */
.verification-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 10px;
    margin: 1rem 0;
    border: 2px solid #6ee7b7;
}

.verification-result .verification-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.verification-result .verification-title {
    font-weight: 600;
    color: #065f46;
    font-size: 0.9rem;
}

.verification-result .verification-name {
    color: #047857;
    font-size: 1rem;
    font-weight: 700;
}

/* Form Actions Row */
.form-actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions-row .btn {
    flex: 1;
}

/* Config Section */
.config-details {
    margin-top: 1rem;
}

.config-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}

.config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.config-row:last-child {
    border-bottom: none;
}

.config-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.config-value {
    font-weight: 600;
    color: #1f2937;
}

.config-value code {
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Fee Breakdown */
.fee-breakdown {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-row.fee-deduction {
    color: #dc2626;
}

.fee-row.fee-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #10b981;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #e5e7eb;
}

.fee-amount {
    font-weight: 600;
    font-family: 'Monaco', 'Consolas', monospace;
}

.fee-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
}

.fee-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.fee-notes .fee-note {
    margin-top: 0.25rem;
}

/* Detailed Fee Breakdown */
.fee-breakdown.detailed {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.fee-section-header {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 0.75rem 0 0.25rem 0;
    margin-top: 0.5rem;
    border-bottom: none;
}

.fee-row.fee-detail {
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px dashed #e2e8f0;
}

.fee-row.fee-subtotal {
    padding: 0.5rem 0;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.5);
    margin: 0.25rem -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.fee-row.fee-vat,
.fee-row.fee-vat-total {
    color: #6366f1;
    font-size: 0.85rem;
    font-style: italic;
}

.fee-divider {
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin: 1rem 0;
    border-radius: 1px;
}

.fee-row.fee-deduction strong {
    color: #dc2626;
}

/* Test Section */
.test-disabled-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.test-disabled-state .disabled-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.test-disabled-state h4 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.test-disabled-state p {
    color: #9ca3af;
}

/* Fee Preview */
/* Test Payment Form */
.test-payment-form h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.test-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.amount-input-wrapper:focus-within {
    border-color: #667eea;
}

.currency-prefix {
    padding: 0.75rem 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    border-right: 2px solid #e2e8f0;
}

.amount-input-wrapper input {
    border: none;
    padding: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    width: 100%;
    outline: none;
}

.amount-input-wrapper input:focus {
    outline: none;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-prefix {
    padding: 0.625rem 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    border-right: 1px solid #d1d5db;
    white-space: nowrap;
}

.phone-input-wrapper input {
    border: none;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    outline: none;
}

.phone-input-wrapper input:focus {
    outline: none;
}

/* Existing Account Info */
.existing-account-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    border: 1px solid #93c5fd;
    margin-bottom: 1rem;
}

.existing-info-icon {
    font-size: 1.25rem;
}

.existing-info-content {
    flex: 1;
}

.existing-info-title {
    font-weight: 600;
    color: #1e40af;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.existing-info-details {
    color: #1e3a8a;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.existing-account-info small {
    color: #3b82f6;
    font-size: 0.75rem;
}

/* Fee Preview Card */
.fee-preview-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.25);
}

.fee-preview-header {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fee-preview-header .fee-preview-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fee-preview-header .fee-preview-amount {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Monaco', 'Consolas', monospace;
}

.fee-preview-body {
    padding: 1rem 1.25rem;
}

.fee-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.fee-preview-item .fee-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.fee-preview-item .fee-value {
    color: #f87171;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Consolas', monospace;
}

.fee-preview-item.total .fee-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.fee-preview-item.total .fee-value {
    color: #fca5a5;
    font-weight: 600;
}

.fee-preview-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.fee-preview-footer {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fee-preview-footer .fee-preview-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.fee-preview-footer .fee-preview-net {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Monaco', 'Consolas', monospace;
}

.btn-pay {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    gap: 0.75rem;
}

/* Payment Result */
.payment-result {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid #e5e7eb;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.result-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
}

.result-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.result-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.result-details {
    margin-bottom: 1.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.result-row code {
    background: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #374151;
}

.status-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: white !important;
}

/* Button Large */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

/* Loading State */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #6b7280;
}

.loading-state .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Empty Config State */
.empty-config-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-config-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-config-state h4 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-config-state p {
    color: #9ca3af;
}

/* Action Payments Button Style */
.action-item.action-payments:hover {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    color: #7c3aed;
}

.action-item.action-payments:hover svg {
    color: #7c3aed;
}

/* ═══════════════════════════════════════════════════════════════════
   TEST CARDS SECTION
   ═══════════════════════════════════════════════════════════════════ */

.test-cards-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.test-cards-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.test-cards-info {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.test-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.test-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.test-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.test-card .card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    flex-shrink: 0;
}

.test-card.success .card-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.test-card.decline .card-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.test-card.timeout .card-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.test-card.bank .card-icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

.test-card .card-info {
    flex: 1;
    min-width: 0;
}

.test-card .card-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.test-card .card-number {
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    color: #475569;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.test-card .card-details {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.3;
}

/* Selected Card Details Display */
.selected-card-details {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.selected-card-details.highlight {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.selected-card-details h5 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.card-display {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.25rem;
}

.card-display-number {
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 1.25rem;
    color: white;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.card-display-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-display-row > div {
    text-align: center;
}

.card-display-row .label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.card-display-row span:not(.label) {
    display: block;
    color: white;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-display-expected {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.card-display-expected .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    margin-right: 0.5rem;
}

.card-display-expected span:not(.label) {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   CARD BIN VALIDATION SECTION
   ═══════════════════════════════════════════════════════════════════ */

.card-validation-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.card-validation-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-bin-result {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card-bin-result.highlight {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.bin-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.bin-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bin-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bin-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
}

/* BIN input styling */
#cardBinInput {
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   VERIFICATION WARNING STATE
   ═══════════════════════════════════════════════════════════════════ */

.verification-result.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.verification-result.warning .verification-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.success-message.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #f59e0b;
}

.warning-text {
    color: #d97706;
    font-size: 0.75rem;
    display: block;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   REAL-TIME EVENTS - SSE
   ═══════════════════════════════════════════════════════════════════ */

/* Test Header Row */
.test-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.test-header-row h3 {
    margin: 0;
}

/* Connection Status Indicator */
.event-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-connection-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.event-connection-status.connected {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.event-connection-status.connected .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.event-connection-status.disconnected {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.event-connection-status.disconnected .status-dot {
    background: #9ca3af;
    animation: none;
}

.event-connection-status.error {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.event-connection-status.error .status-dot {
    background: #f59e0b;
}

.event-connection-status.unavailable {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border: 1px solid #a5b4fc;
}

.event-connection-status.unavailable .status-dot {
    background: #6366f1;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Event Log Section */
.event-log-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.event-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.event-log-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.event-log-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Event Log Container */
.event-log {
    background: #1f2937;
    border-radius: 8px;
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
}

.event-log-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #9ca3af;
    text-align: center;
}

.event-log-empty span {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.event-log-empty p {
    margin: 0 0 0.25rem;
    color: #d1d5db;
}

.event-log-empty small {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Event Log Entry */
.event-log-entry {
    display: grid;
    grid-template-columns: 80px 80px 1fr auto;
    gap: 1rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #374151;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.event-log-entry:last-child {
    border-bottom: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-log-time {
    color: #9ca3af;
    font-size: 0.7rem;
}

.event-log-type {
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-log-ref {
    color: #e5e7eb;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-log-amount {
    color: #a5b4fc;
    font-weight: 500;
    text-align: right;
}

/* Payment Toast Notifications */
.payment-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 350px;
}

.payment-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.payment-toast.fade-out {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.payment-toast .toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.payment-toast.success .toast-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.payment-toast.failed .toast-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.payment-toast.pending .toast-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.payment-toast .toast-content {
    flex: 1;
    min-width: 0;
}

.payment-toast .toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
    margin-bottom: 0.125rem;
}

.payment-toast .toast-detail {
    font-size: 0.75rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-toast .toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-left: 0.5rem;
}

.payment-toast .toast-close:hover {
    color: #374151;
}

/* Result Fees Info */
.result-fees-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e5e7eb;
}

.result-fees-info .fees-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.result-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
