/* Reset and Base Styles */
* {
    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, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 127, 0.1);
    border-left: 4px solid #00ff7f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: #00ff7f;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* Ninja Logo */
.ninja-logo {
    width: 60px;
    height: 60px;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #0f0f23);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 255, 127, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #00ff7f;
}

.ninja-head {
    width: 40px;
    height: 40px;
    position: relative;
    background: #2d3748;
    border-radius: 50%;
    border: 2px solid #4a5568;
}

.ninja-mask {
    position: absolute;
    top: 15px;
    left: 5px;
    right: 5px;
    height: 20px;
    background: #1a202c;
    border-radius: 10px;
    border: 1px solid #2d3748;
}

.ninja-eyes {
    position: absolute;
    top: 18px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
}

.eye {
    width: 6px;
    height: 6px;
    background: #00ff7f;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 127, 0.8);
    animation: ninja-blink 3s infinite;
}

@keyframes ninja-blink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

.logo h1 {
    color: #00ff7f;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 255, 127, 0.3);
}

.tagline {
    color: rgba(0, 255, 127, 0.8);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 127, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff7f;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.step.completed {
    background: #00ff7f;
    color: #0f0f23;
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.5);
}

.step.active {
    background: linear-gradient(135deg, #00ff7f, #00cc66);
    color: #0f0f23;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.6);
}

/* Auth Card */
.auth-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ff7f;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.card-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #00ff7f;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0, 255, 127, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(15, 15, 35, 0.8);
    color: #e2e8f0;
}

.input-group input:focus {
    outline: none;
    border-color: #00ff7f;
    background: rgba(15, 15, 35, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.2);
}

.input-group input::placeholder {
    color: #64748b;
}

.key-input-container {
    position: relative;
}

.toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #00ff7f;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-btn:hover {
    color: #00cc66;
    text-shadow: 0 0 5px rgba(0, 255, 127, 0.5);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff7f, #00cc66);
    color: #0f0f23;
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.4);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 127, 0.6);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border: 2px solid rgba(0, 255, 127, 0.3);
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 1);
    border-color: #00ff7f;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6666, #dd0000);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #00ff7f;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 127, 0.3);
}

/* Enhanced Page 2 Styles */
.ebay-logo {
    margin-bottom: 15px;
}

.ebay-logo i {
    font-size: 3rem;
    background: linear-gradient(135deg, #e53238, #0064d2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.integration-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(15, 15, 35, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item i {
    color: #00ff7f;
    font-size: 1.1rem;
    width: 20px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.input-group label i {
    color: #00ff7f;
    font-size: 0.9rem;
}

.password-input-container {
    position: relative;
}

.security-notice {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.security-notice i {
    color: #00ff7f;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.notice-content {
    color: #e2e8f0;
}

.trust-indicators {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 127, 0.2);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.trust-item i {
    color: #00ff7f;
    font-size: 1.2rem;
}

.warning-text {
    color: #dc2626;
    font-weight: 600;
    display: block;
    margin-top: 8px;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border-left: 3px solid #dc2626;
}
/* IP Verification */
.verification-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.verification-header {
    margin-bottom: 30px;
}

.verification-header i {
    font-size: 3rem;
    color: #00ff7f;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 127, 0.5);
}

.verification-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ff7f;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.verification-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #94a3b8;
}

.verification-step i {
    color: #00ff7f;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s linear infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.ip-details {
    background: rgba(15, 15, 35, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.ip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 255, 127, 0.1);
}

.ip-item:last-child {
    border-bottom: none;
}

.ip-item label {
    font-weight: 600;
    color: #00ff7f;
}

.ip-item span {
    color: #e2e8f0;
}

.status-pending {
    color: #fbbf24;
}

.status-valid {
    color: #00ff7f;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.status-invalid {
    color: #ff4444;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ff7f, #00cc66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f0f23;
    font-size: 1.2rem;
    font-weight: 700;
}

.user-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.user-plan {
    font-size: 0.85rem;
    color: #00ff7f;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 127, 0.3);
}

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

.header-actions .btn-primary,
.header-actions .btn-secondary,
.header-actions .btn-danger {
    width: auto;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Risk Summary */
.risk-summary {
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.summary-icon.risk-high {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.summary-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.risk-level {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.risk-level.high {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.risk-details {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 255, 127, 0.1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.stat-card.warning {
    border-left: 4px solid #fbbf24;
}

.stat-card.success {
    border-left: 4px solid #00ff7f;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    background: linear-gradient(135deg, #00ff7f, #00cc66);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #00ff7f, #00cc66);
}

.stat-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* Listings Container */
.listings-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 127, 0.1);
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 255, 127, 0.2);
}

.listings-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
}

.filter-controls select {
    padding: 8px 15px;
    border: 2px solid rgba(0, 255, 127, 0.3);
    border-radius: 8px;
    background: rgba(15, 15, 35, 0.8);
    color: #e2e8f0;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Table Styles */
.listings-table {
    overflow-x: auto;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    gap: 20px;
    padding: 20px 30px;
    background: rgba(15, 15, 35, 0.6);
    font-weight: 600;
    color: #00ff7f;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-body {
    max-height: 600px;
    overflow-y: auto;
}

.listing-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    gap: 20px;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 255, 127, 0.1);
    align-items: center;
    transition: background 0.3s ease;
}

.listing-row:hover {
    background: rgba(0, 255, 127, 0.05);
}

.listing-row.risk {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
}

.listing-row.robot-risk {
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #f59e0b;
}

.listing-row.critical-risk {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #dc2626;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { border-left-color: #dc2626; }
    50% { border-left-color: #ef4444; }
}

.item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-image {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 127, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff7f;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.item-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 3px;
}

.item-brand {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.violation-code {
    font-size: 0.7rem;
    color: #dc2626;
    font-weight: 600;
    margin-top: 2px;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.item-id {
    font-family: 'Courier New', monospace;
    color: #94a3b8;
    font-size: 0.85rem;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-safe {
    background: rgba(0, 255, 127, 0.2);
    color: #00ff7f;
}

.status-warning {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.status-robot {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-critical {
    background: rgba(255, 68, 68, 0.3);
    color: #ff4444;
    font-weight: 700;
    animation: pulse-text 1.5s infinite;
}

.status-defect {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    font-weight: 700;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.agent-info {
    font-size: 0.85rem;
    color: #94a3b8;
}

.agent-name {
    font-weight: 600;
    color: #e2e8f0;
}

.deletion-time {
    font-size: 0.7rem;
    color: #ff4444;
    font-weight: 600;
    margin-top: 4px;
}

.action-btn {
    padding: 6px 12px;
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 6px;
    background: rgba(15, 15, 35, 0.8);
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: #00ff7f;
    color: #00ff7f;
    background: rgba(0, 255, 127, 0.1);
}

.action-btn.delete {
    border-color: #ff4444;
    color: #ff4444;
}

.action-btn.delete:hover {
    background: #ff4444;
    color: white;
}

.action-btn.urgent {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    font-weight: 700;
    animation: pulse-button 1s infinite;
    border: none;
}

.action-btn.urgent:hover {
    background: linear-gradient(135deg, #ff6666, #dd0000);
    transform: scale(1.05);
}

@keyframes pulse-button {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.2); }
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 255, 127, 0.2);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
}

.modal-header i {
    color: #00ff7f;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.modal-body {
    padding: 25px 30px;
}

.permission-list {
    list-style: none;
    margin: 20px 0;
}

.permission-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #e2e8f0;
}

.permission-list i {
    color: #00ff7f;
    text-shadow: 0 0 5px rgba(0, 255, 127, 0.5);
}

.permission-note {
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
    margin-top: 15px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 25px 30px;
    border-top: 1px solid rgba(0, 255, 127, 0.2);
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    flex: 1;
    margin: 0;
    
    .table-header,
    .listing-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .table-header {
        display: none;
    }
    
    .listing-row {
        display: flex;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(0, 255, 127, 0.1);
        border-radius: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        gap: 15px;
        background: rgba(26, 26, 46, 0.8);
        border: 1px solid rgba(0, 255, 127, 0.1);
    }
    
    .listing-row .item-info {
        justify-content: flex-start;
        width: 100%;
    }
    
    .listing-row .item-details {
        flex: 1;
    }
    
    .listing-row .item-id {
        font-size: 0.8rem;
        padding: 8px 12px;
        background: rgba(0, 255, 127, 0.1);
        border-radius: 8px;
        text-align: center;
        color: #94a3b8;
        border: 1px solid rgba(0, 255, 127, 0.2);
    }
    
    .listing-row .status-badge {
        align-self: flex-start;
        margin: 0;
    }
    
    .listing-row .agent-info {
        text-align: left;
        padding: 12px;
        background: rgba(15, 15, 35, 0.6);
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 127, 0.1);
    }
    
    .listing-row .action-btn {
        align-self: stretch;
        padding: 12px;
        font-size: 0.9rem;
        font-weight: 600;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .auth-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .listings-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .summary-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-indicator {
        gap: 10px;
    }
    
    .step {
        width: 35px;
        height: 35px;
    }
    
    /* Mobile Listings Table */
    .listings-table {
        overflow: visible;
    }
    
    .table-header {
        display: none;
    }
    
    .table-body {
        max-height: none;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .listing-row {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 15px;
        padding: 20px;
        border-radius: 12px;
        background: rgba(26, 26, 46, 0.8);
        border: 1px solid rgba(0, 255, 127, 0.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .listing-row.risk {
        background: rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.4);
    }
    
    .listing-row.robot-risk {
        background: rgba(245, 158, 11, 0.1);
        border-color: rgba(245, 158, 11, 0.4);
    }
    
    .listing-row.critical-risk {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(220, 38, 38, 0.6);
    }
    
    .listing-row .item-info {
        width: 100%;
        justify-content: flex-start;
    }
    
    .listing-row .item-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .listing-row .item-details {
        flex: 1;
    }
    
    .listing-row .item-details h4 {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .listing-row .item-id {
        font-size: 0.9rem;
        padding: 10px 15px;
        background: rgba(15, 15, 35, 0.8);
        border-radius: 8px;
        text-align: center;
        color: #00ff7f;
        border: 1px solid rgba(0, 255, 127, 0.3);
        font-family: 'Courier New', monospace;
        font-weight: 600;
    }
    
    .listing-row .status-badge {
        align-self: flex-start;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .listing-row .agent-info {
        padding: 15px;
        background: rgba(15, 15, 35, 0.6);
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 127, 0.2);
        text-align: left;
    }
    
    .listing-row .agent-name {
        font-size: 0.9rem;
        display: block;
        margin-bottom: 5px;
    }
    
    .listing-row .deletion-time {
        font-size: 0.75rem;
        margin-top: 8px;
        padding: 5px 8px;
        background: rgba(239, 68, 68, 0.2);
        border-radius: 4px;
        border-left: 3px solid #dc2626;
    }
    
    .listing-row .action-btn {
        padding: 15px;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 8px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .listing-row .action-btn.urgent {
        padding: 18px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 15px 10px;
    }
    
    .logo i {
        font-size: 2rem;
        padding: 12px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 25px 15px;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .verification-card {
        padding: 25px 15px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px 15px;
    }
    
    .table-body {
        padding: 15px;
        gap: 12px;
    }
    
    .listing-row {
        padding: 15px;
        gap: 12px;
    }
    
    .listing-row .item-details h4 {
        font-size: 0.9rem;
    }
    
    .listing-row .item-image {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .listing-row .agent-info {
        padding: 12px;
    }
    
    .listing-row .action-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .listing-row .action-btn.urgent {
        padding: 15px;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.hidden { display: none; }
.visible { display: block; }