/* css/utility.css */

/* ---------------------------------------------------------------- */
/* STYLING KHUSUS UNTUK SECTION UTILITY (#utility) */
/* ---------------------------------------------------------------- */

#utility .tokenomics-content-wrapper {
    display: flex;
    justify-content: center; 
    align-items: center;
    max-width: 1000px; 
    margin: 0.5rem auto;
    gap: 0; 
    flex-direction: column;
}

#utility .utility-card {
    width: 100%;
    max-width: 800px; 
    margin: 0;
    text-align: center;
}

.allocation-card h3, .utility-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 2.5rem; 
    font-size: 1.2rem;
    display: block; 
    text-align: center; 
}

.allocation-card h3 i, .utility-card h3 i {
    display: block;
    font-size: 1.5em; 
    margin: 0 auto 0.25rem auto; 
    color: var(--secondary-color);
}

/* --- Utility List (Interaktif & Modern) --- */
.utility-list {
    list-style: none;
    padding: 0;
    max-width: 700px; 
    margin: 0 auto; 
}

.utility-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left; /* Text rata kiri agar lebih profesional */
    margin-bottom: 1rem; 
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.utility-list li:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.05), transparent);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(10px); /* Geser ke kanan sedikit */
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3);
}

.utility-list i {
    font-size: 2.2rem; 
    color: var(--secondary-color);
    min-width: 60px;
    text-align: center;
    transition: transform 0.3s ease;
}

.utility-list li:hover i {
    transform: scale(1.1) rotate(-5deg);
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

.utility-text-content {
    flex-grow: 1;
}

.utility-list strong {
    display: block;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.utility-list p {
    font-size: 0.95rem;
    color: #aaa;
    margin: 0;
    line-height: 1.4;
}

.click-instruction {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    font-weight: 600;
}

.utility-list li:hover .click-instruction {
    opacity: 1;
}

/* ---------------------------------------------------------------- */
/* MODAL SYSTEM - PROFESSIONAL FORMATTING */
/* ---------------------------------------------------------------- */

/* Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.9); /* Lebih gelap */
    backdrop-filter: blur(12px); /* Blur lebih kuat */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Box */
.modal-content {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(15, 15, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    padding: 0; /* Reset padding, gunakan internal containers */
    width: 95%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #0a0a0f;
}

.modal-content.large-modal {
    max-width: 1100px;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0,0,0,0.2);
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    text-align: left;
    border: none;
    padding: 0;
}

.modal-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.close-modal {
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

/* Layout Containers */
.modal-body-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Visual lebih lebar dari teks */
    gap: 3rem;
    padding: 2.5rem;
    align-items: start;
}

.modal-body-flex {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    padding: 2.5rem;
    align-items: center;
    justify-content: center;
}

/* Visuals (iPhone) */
.visual-column-triplet {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    perspective: 1000px;
}

.iphone-frame {
    width: 170px;
    height: auto;
    border: 6px solid #2a2a2a;
    outline: 2px solid #000;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #000;
    transition: transform 0.4s ease;
}

.iphone-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -10px rgba(0, 212, 255, 0.15);
    border-color: #333;
}

.iphone-frame.large-frame {
    width: 260px;
}

.dynamic-island {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 18px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.iphone-frame img {
    width: 100%;
    display: block;
    height: auto;
}

/* --- PROFESSIONAL TEXT FORMATTING --- */

/* Info Cards */
.info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.info-heading {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Specs List (Table-like look) */
.spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: #888;
    font-weight: 500;
}

.spec-value {
    color: #e0e0e0;
    text-align: right;
    font-weight: 600;
}

.text-accent {
    color: var(--primary-color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-neon {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.badge-gold {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid #ffd700;
}

/* Task Grid */
.task-grid {
    display: grid;
    gap: 0.8rem;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
    border-left: 4px solid #555;
}

.task-item.mandatory { border-left-color: #ff0055; background: linear-gradient(90deg, rgba(255,0,85,0.05), transparent); }
.task-item.special { border-left-color: #9d00ff; }
.task-item.daily { border-left-color: #00d4ff; }

.task-type {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
}

.task-reward {
    font-size: 0.9rem;
    color: #ccc;
}

/* Professional List (VIP) */
.professional-list {
    list-style: none;
    padding: 0;
}

.professional-list li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.list-icon {
    width: 40px;
    height: 40px;
    background: rgba(157, 0, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.list-content strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.list-content p {
    margin: 0;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* VIP Pass Container (Marketplace) */
.vip-pass-container {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.pass-header {
    background: linear-gradient(90deg, var(--secondary-color), #5e0099);
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pass-header h3 {
    color: #fff !important;
    margin: 0 !important;
    border: none !important;
    font-size: 1.2rem !important;
}

.pass-status {
    background: #000;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.pass-body {
    padding: 1.5rem;
}

.pass-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pass-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pass-row .icon {
    color: #888;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.pass-row .desc {
    color: #ddd;
    font-size: 1.05rem;
}

.pass-row.highlight .icon {
    color: #ffd700;
}

.pass-row.highlight .desc {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .modal-body-grid, .modal-body-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .visual-column-triplet {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1rem;
        width: 100%;
        /* Snap scroll effect */
        scroll-snap-type: x mandatory;
    }

    .iphone-frame {
        width: 150px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
    
    .iphone-frame.large-frame {
        width: 200px;
    }

    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .info-heading {
        font-size: 1rem;
    }
}