:root {
    --bg-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73; 
    --border-line: #e5e5e7;
    --apple-blue: #0066cc;
    --btn-hover: #f5f5f7;
    --success-green: #24b47e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.4142;
    letter-spacing: -0.016em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 50px 24px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 960px; 
}

h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.022em;
    margin-bottom: 45px;
    color: var(--text-primary);
    text-align: center;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    width: 100%;
}

.grid-column {
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 10px;
    letter-spacing: -0.015em;
}

.table-container {
    margin-bottom: 35px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-line);
    letter-spacing: 0.04em;
}

td {
    padding: 13px 0;
    border-bottom: 1px solid var(--border-line);
    font-size: 13.5px;
    vertical-align: middle;
}

.label {
    color: var(--text-secondary);
    width: 130px;
    font-weight: 400;
}

.value {
    font-family: ui-monospace, SFMono-Regular, "SF Pro Text", Menlo, Monaco, Consolas, monospace;
    color: var(--text-primary);
}

.wrapper-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap; 
}

a {
    color: var(--apple-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: none; 
    opacity: 0.85; 
}

.ip-link {
    font-weight: 500;
    white-space: nowrap; 
}

.loading {
    color: var(--text-secondary);
    font-style: italic;
}

.flag-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%; 
    border: 1px solid var(--border-line);
    flex-shrink: 0;
}

.btn-icon-copy {
    background: none;
    border: 1px solid #d2d2d7;
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;      
}

.btn-icon-copy:hover {
    background: var(--btn-hover);
    border-color: #86868b;
    color: var(--text-primary);
}

.btn-icon-copy:active {
    background: #e8e8ed;
}

@media (max-width: 820px) {
    body {
        padding: 30px 16px;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .column-title {
        margin-bottom: 18px;
    }

    table, tbody, tr, td {
        display: block; 
        width: 100%;
    }
    
    thead {
        display: block;
    }

    th {
        display: block;
        padding-bottom: 10px;
    }

    thead tr {
        border: none !important;
        padding: 0 !important;
    }

    tbody tr {
        padding: 11px 0;
        border-bottom: 1px solid var(--border-line);
    }

    td {
        padding: 0;
        border-bottom: none;
    }

    .label {
        font-size: 11px;
        color: var(--text-secondary);
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .value {
        font-size: 13px; 
    }

    .ip-wrapper {
        width: 100%;
        justify-content: space-between; 
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-primary: #f5f5f7;
        --text-secondary: #86868b;
        --border-line: #333336;
        --btn-hover: #1c1c1e;
        --apple-blue: #2997ff;
    }
}