* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #0a0a12 0%, #0f0f1a 50%, #0a0a12 100%);
    min-height: 100vh;
}

.header-gradient {
    background: linear-gradient(90deg, rgba(151, 151, 255, 0.08) 0%, rgba(0, 193, 222, 0.08) 100%);
    backdrop-filter: blur(8px);
}

.card {
    background: #16162a;
    border: 1px solid #2a2a4e;
    border-radius: 16px;
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .card {
        padding: 1.5rem;
    }
}

.label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.input-field {
    width: 100%;
    background: #0f0f1a;
    border: 1px solid #2a2a4e;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #00C1DE;
    box-shadow: 0 0 0 3px rgba(0, 193, 222, 0.15);
}

.input-field::placeholder {
    color: #4a4a6e;
}

.code-block {
    width: 100%;
    background: #0a0a12;
    border: 1px solid #2a2a4e;
    border-radius: 10px;
    padding: 1rem;
    color: #00C1DE;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, #9797FF 0%, #00C1DE 100%);
    color: #0a0a12;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(151, 151, 255, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: #9797FF;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #2a2a4e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #9797FF;
    background: rgba(151, 151, 255, 0.1);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    color: #9ca3af;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(151, 151, 255, 0.05);
}

.tab-active {
    color: #00C1DE;
    border-bottom-color: #00C1DE;
}

.template-card {
    background: #0f0f1a;
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.template-card:hover {
    border-color: #9797FF;
    transform: translateY(-2px);
}

.member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f0f1a;
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.role-select {
    background: #16162a;
    border: 1px solid #2a2a4e;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    color: #9797FF;
    font-size: 0.75rem;
}

.permission-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #00C1DE;
    cursor: pointer;
}

.token-chip {
    padding: 0.5rem 1rem;
    border: 1px solid #2a2a4e;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.token-chip:hover {
    border-color: #00C1DE;
}

.token-active {
    background: rgba(0, 193, 222, 0.2);
    border-color: #00C1DE;
    color: #00C1DE;
}

.token-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(151, 151, 255, 0.15);
    border: 1px solid #9797FF;
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: #9797FF;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
}

.proposal-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #0f0f1a;
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.proposal-type-card:hover {
    border-color: #9797FF;
}

.proposal-type-active {
    border-color: #00C1DE;
    background: rgba(0, 193, 222, 0.1);
}

.proposal-card {
    background: #0f0f1a;
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(0, 193, 222, 0.2);
    color: #00C1DE;
}

.status-passed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.vote-bar {
    display: flex;
    height: 8px;
    background: #2a2a4e;
    border-radius: 4px;
    overflow: hidden;
}

.vote-for {
    background: #22c55e;
    transition: width 0.3s ease;
}

.vote-against {
    background: #ef4444;
    transition: width 0.3s ease;
}

.vote-abstain {
    background: #6b7280;
    transition: width 0.3s ease;
}

.vote-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.vote-btn-for {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.vote-btn-for:hover {
    background: rgba(34, 197, 94, 0.25);
}

.vote-btn-against {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.vote-btn-against:hover {
    background: rgba(239, 68, 68, 0.25);
}

.vote-btn-abstain {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border-color: rgba(107, 114, 128, 0.3);
}

.vote-btn-abstain:hover {
    background: rgba(107, 114, 128, 0.25);
}

.network-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
}

.network-mainnet {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.network-testnet {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.input-with-unit {
    position: relative;
}

.input-with-unit .input-field {
    padding-right: 4rem;
}

.unit-label {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.8125rem;
    font-family: 'IBM Plex Mono', monospace;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #2a2a4e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a6e;
}

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

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}