* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a2e;
    color: #fff;
    padding: 20px;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding: 10px 20px;
    background-color: #16213e;
    border-radius: 15px;
    border: 1px solid #1e293b;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

.site-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e94560;
}

header h1 {
    color: #e94560;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.header-center {
    flex: 1.5;
    display: flex;
    justify-content: center;
    width: 100%;
}

#searchBar {
    width: 100%;
    max-width: 450px;
    padding: 10px 20px;
    font-size: 15px;
    border: 2px solid #e94560;
    border-radius: 20px;
    background-color: #1a1a2e;
    color: white;
    outline: none;
    text-align: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.pet-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.pet-card {
    background-color: #16213e;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    cursor: pointer;
}

.pet-card:hover {
    transform: translateY(-5px);
}

.pet-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.pet-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.pet-value {
    color: #4eed53;
    font-size: 16px;
    font-weight: bold;
}

.full-page-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    overflow-y: auto;
}

.close-btn {
    position: fixed;
    right: 30px;
    top: 20px;
    font-size: 45px;
    cursor: pointer;
    color: #fff;
    z-index: 10000;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #e94560;
}

.modal-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-right: 2px solid #1e293b;
    padding-right: 40px;
}

.sticky-left {
    position: sticky;
    top: 60px;
    text-align: center;
    width: 100%;
}

#modalImage {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 25px;
    background-color: #16213e;
    padding: 10px;
    border: 2px solid #334155;
}

#modalName {
    font-size: 32px;
    color: #e94560;
    margin-bottom: 15px;
}

.rap-container {
    background-color: #1e293b;
    padding: 12px 25px;
    border-radius: 30px;
    display: inline-flex;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #475569;
}

.rap-title {
    color: #94a3b8;
}

#modalRap {
    color: #4eed53;
}

.right-section {
    flex: 1.3;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.variant-header-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 20px;
}

.section-title {
    font-size: 20px;
    color: #cbd5e1;
    border-left: 4px solid #e94560;
    padding-left: 10px;
}

.tabs-container {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background-color: #16213e;
    border: 2px solid #334155;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.normal {
    color: #cbd5e1;
}

.tab-btn.golden {
    color: #fbbf24;
}

.tab-btn.rainbow {
    background: linear-gradient(45deg, #ff0055, #00ffcc, #9900ff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tab-btn:hover {
    background-color: #1e293b;
    border-color: #475569;
}

.tab-btn.normal.active-tab {
    border-color: #cbd5e1;
    background-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 0 12px rgba(203, 213, 225, 0.4);
}

.tab-btn.golden.active-tab {
    border-color: #fbbf24;
    background-color: #fbbf24;
    color: #0f172a;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.tab-btn.rainbow.active-tab {
    border-color: #38bdf8;
    background: linear-gradient(45deg, #ff0055, #00ffcc, #9900ff, #ffcc00);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #0f172a;
    color: #0f172a;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.about-container {
    background-color: #16213e;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #334155;
}

#modalAbout {
    font-size: 16px;
    line-height: 1.6;
    color: #94a3b8;
}

@media (max-width: 992px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
    .header-left {
        justify-content: center;
        width: 100%;
    }
    .header-center {
        justify-content: center;
        width: 100%;
    }
    #searchBar {
        max-width: 100%;
    }
    .header-right {
        display: none;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 20px;
    }
    .modal-layout {
        flex-direction: column;
        padding: 60px 20px;
    }
    .left-section {
        border-right: none;
        border-bottom: 2px solid #1e293b;
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    .right-section {
        padding-left: 0;
    }
    .sticky-left {
        position: relative;
        top: 0;
    }
    .variant-header-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .tabs-container {
        width: 100%;
    }
    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 10px 10px;
        font-size: 14px;
    }
}
