:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #ef4444;
    --secondary-hover: #dc2626;
    --border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --tp-green: #00b67a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.1), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo i {
    color: #f59e0b;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* Trustpilot Badge */
.trustpilot-mini {
    position: absolute;
    top: 15px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(30, 41, 59, 0.6);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s, background 0.2s;
    cursor: default;
}

.trustpilot-mini:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-1px);
}

.tp-star-icon {
    color: #00b67a;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(0, 182, 122, 0.4));
}

.tp-text-light {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

@media (max-width: 600px) {
    .trustpilot-mini {
        top: 12px;
        left: 12px;
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.card {
    background-color: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

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

.header-text h1, .header-text h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.header-text p {
    color: var(--text-muted);
    line-height: 1.5;
}

.highlight {
    color: var(--success);
    font-weight: 600;
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.action-card {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.icon-wrapper.accelerate {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.icon-wrapper.cancel {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--secondary);
}

.action-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.action-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #475569, #334155);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.full-width {
    width: 100%;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    color: var(--text-main);
}

/* Inputs */
.input-group input, textarea, .input-with-icon input {
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-group input:focus, textarea:focus, .input-with-icon input:focus {
    border-color: var(--primary);
    background-color: rgba(15, 23, 42, 0.9);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-group input::placeholder, textarea::placeholder, .input-with-icon input::placeholder {
    color: #475569;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Utilities */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.hidden { display: none !important; }

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

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

/* Loader */
.loader-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(245, 158, 11, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
}

/* Details */
.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.danger-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.text-danger {
    color: var(--secondary);
}

.text-danger-light {
    color: #fca5a5;
}

.panic-border {
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

.panic-details {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.column-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.break-word {
    word-break: break-all;
}

.font-mono {
    font-family: monospace;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.ai-badge {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-danger {
    background-color: var(--secondary);
    color: white;
}

.btn-danger:hover {
    background-color: var(--secondary-hover);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.pulse-btn {
    animation: pulse-btn-anim 2s infinite;
}

/* Fake Explorer */
.fake-explorer-card {
    background-color: #ffffff;
    color: #1a1a1a;
}

.explorer-header {
    background-color: #121d33;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.exp-logo {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-logo i {
    color: #3b82f6;
}

.exp-search {
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #cbd5e1;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.explorer-body {
    padding: 30px;
    text-align: left;
}

.exp-title {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.exp-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.exp-row {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

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

.exp-label {
    width: 120px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.exp-value {
    flex: 1;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
}

.status-pending {
    color: #f59e0b;
}

.badge-invalid {
    display: inline-block;
    background-color: #fef2f2;
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #fca5a5;
}

.exp-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px 15px;
    color: #b45309;
    font-size: 0.9rem;
    border-radius: 0 4px 4px 0;
}

/* Network Status */
.network-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Blockchain Table */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.blockchain-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.blockchain-table th {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.blockchain-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* FAQ */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

/* Autocomplete & Inputs */
.autocomplete-wrapper {
    position: relative;
}

.suggestions-box {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: #1e293b;
    border: 1px solid var(--primary);
    border-radius: 6px 6px 0 0;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

.suggestion-item {
    padding: 8px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e2e8f0;
    text-align: left;
}

.suggestion-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    padding-right: 45px;
    width: 100%;
    box-sizing: border-box;
}

.input-with-icon i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.input-with-icon i:hover {
    color: var(--text-main);
}

.type-animation {
    position: relative;
    display: inline-block;
}

.terminal-log {
    background: #000;
    border-radius: 6px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #10b981;
    height: 120px;
    overflow-y: hidden;
    border: 1px solid #333;
    position: relative;
}

.terminal-log::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, #000);
}

.log-line {
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeInLog 0.2s forwards;
}

.log-error {
    color: #ef4444;
}

.log-warn {
    color: #f59e0b;
}

@keyframes fadeInLog {
    to { opacity: 1; }
}

.char-diff {
    background-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border: 1px solid #ef4444;
    border-radius: 3px;
    padding: 0 2px;
    font-weight: bold;
    animation: blink-diff 1s infinite;
}

@keyframes blink-diff {
    0%, 100% { background-color: rgba(239, 68, 68, 0.3); }
    50% { background-color: rgba(239, 68, 68, 0.6); }
}

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

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

@keyframes pulse-btn-anim {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.tx-details {
    background-color: #0f172a;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.status-unconfirmed {
    color: var(--secondary);
    font-weight: 600;
}

.info-text {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.shield-icon {
    color: var(--success);
    margin-right: 8px;
}

.trust-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.trust-box-icon {
    color: var(--success);
    font-size: 1.5rem;
    margin-top: 2px;
}

.trust-box-content h4 {
    color: var(--success);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.trust-box-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.secure-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.error-msg {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}