:root {
    --primary: #5865F2;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --text: #ffffff;
    --accent: #00d2ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

iframe {
    border: none;
    border-radius: 8px;
    margin-bottom: 2rem;
    background: transparent;
}

.ip-box {
    background: #2c2c2c;
    padding: 15px;
    border-radius: 8px;
    border: 2px dashed var(--primary);
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 20px 0;
    position: relative;
}

.ip-box:hover {
    background: #383838;
    transform: scale(1.05);
}

.ip-box strong {
    color: var(--accent);
    font-size: 1.2rem;
}

.copy-hint {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.instructions {
    margin-top: 30px;
    text-align: left;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    line-height: 1.6;
}

.npc-info {
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.tooltip {
    visibility: hidden;
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.ip-box.copied .tooltip {
    visibility: visible;
    opacity: 1;
}

.discord-section {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.discord-section p {
    margin: 0;
    font-size: 1.1rem;
}

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

.discord-text-link:hover {
    color: #00d2ff;
}

.discord-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #2f3570 !important;
    padding: 10px !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    min-width: 55px;
    min-height: 55px;
    text-decoration: none !important;
}

.icon-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-btn img {
    height: 38px !important;
    width: 38px !important;
    display: block;
    object-fit: contain;
}

.discord-btn:hover {
    background-color: #3b428a !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.map-section {
    margin: 20px 0;
    padding: 15px;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
    filter: brightness(1.1);
}

.map-icon {
    margin-right: 10px;
    font-size: 1.3rem;
}

.admin-link {
    position: absolute;
    top: 20px;
    right: 20px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    font-family: sans-serif;
    transition: background 0.3s ease;
    z-index: 1000;
}

.admin-link:hover {
    background: rgba(255, 0, 0, 0.6);
}

.admin-link span {
    margin-right: 5px;
}

.iframe-wrapper {
    width: 100%;
    max-width: 728px;
    margin: 20px auto;
    overflow: hidden;
}

.responsive-iframe {
    width: 100%;
    height: 90px;
    border: none;
    display: block;
}

@media (max-width: 400px) {
    .responsive-iframe {
        transform: scale(0.8);
        transform-origin: center;
    }
}
