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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 1400px) {
    .main-content {
        grid-template-columns: 250px 1fr 250px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Panels */
.left-panel,
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.stat-name {
    font-size: 13px;
    opacity: 0.8;
}

.stat-value-small {
    font-size: 13px;
    font-weight: bold;
}

/* Vitals */
.vitals-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vital-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vital-name {
    font-size: 13px;
    opacity: 0.8;
}

.vital-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.vital-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.vital-value {
    font-size: 13px;
    font-weight: bold;
}

.horniness-indicator {
    display: flex;
    gap: 5px;
}

.horn-dot {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.horn-dot.active {
    transform: scale(1.2);
}

/* Debug Section */
.debug-section {
    background: rgba(0, 0, 0, 0.3);
}

.debug-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.debug-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.debug-status {
    color: #4ade80;
    font-weight: bold;
}

.debug-status.error {
    color: #ef4444;
}

/* Center Panel - 3D Canvas */
.center-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

#canvas-container {
    width: 100%;
    height: 600px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#pepe-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-controls {
    margin-top: 15px;
}

.control-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.info-label {
    font-size: 13px;
    opacity: 0.8;
    flex-shrink: 0;
    min-width: 80px;
}

.info-value {
    font-size: 13px;
    font-weight: bold;
    text-align: right;
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-all;
}

.info-item-ca {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.info-item-ca .info-label {
    min-width: auto;
}

.info-item-ca .info-value {
    text-align: left;
    width: 100%;
}

#contractAddress {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    overflow-wrap: anywhere;
    text-align: left;
    line-height: 1.6;
    max-width: 100%;
    display: block;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
    color: #fff;
    font-weight: normal;
}

.community-link {
    color: #4ade80;
    text-decoration: none;
    transition: color 0.3s ease;
}

.community-link:hover {
    color: #22c55e;
}

.token-address-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.token-input-group {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
}

.token-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 6px 10px;
    font-size: 11px;
    flex: 1;
    font-family: 'Courier New', monospace;
}

.token-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.token-input:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255, 255, 255, 0.15);
}

.small-btn {
    background: rgba(74, 222, 128, 0.3);
    border: 1px solid #4ade80;
    color: #fff;
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.small-btn:hover {
    background: rgba(74, 222, 128, 0.5);
    transform: scale(1.05);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.buy-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    font-size: 16px;
    padding: 18px 20px;
}

.buy-btn:hover {
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.5);
}

/* Milestones */
.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.milestone-item {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    border-left: 3px solid #4ade80;
}

.milestone-item.unlocked {
    background: rgba(74, 222, 128, 0.2);
    border-left-color: #4ade80;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
}

.modal-content strong {
    color: #ffd93d;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-link span {
    font-size: 18px;
}

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

.pulsing {
    animation: pulse 2s infinite;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .panel-section {
        padding: 15px;
    }
    
    .panel-section h3 {
        font-size: 14px;
    }
    
    #canvas-container {
        height: 400px;
        min-height: 400px;
    }
    
    .control-hint {
        font-size: 11px;
        padding: 0 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .footer-link {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .info-value {
        font-size: 11px;
    }
    
    .info-item-ca {
        padding: 8px 0;
    }
    
    #contractAddress {
        font-size: 9px;
        line-height: 1.5;
        padding: 5px 6px;
    }
    
    .info-label {
        min-width: 60px;
    }
    
    .vital-value {
        font-size: 12px;
    }
    
    .stat-value-small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .header-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    #canvas-container {
        height: 300px;
        min-height: 300px;
    }
    
    .panel-section {
        padding: 12px;
    }
    
    .panel-section h3 {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .modal-content {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .modal-content p {
        font-size: 14px;
    }
}

