@font-face {
    font-family: 'RayanetFont';
    src: url('fonts/sahel.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    direction: rtl;
    background: #f5f7fa;
    color: #17202a;
    font-family: RayanetFont, Tahoma, Arial, sans-serif;
}

.page {
    min-height: 100vh;
    padding: 34px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    padding: 34px 30px 24px;
    box-shadow: 0 10px 35px rgba(25, 45, 70, 0.07);
}

.brand {
    text-align: center;
    min-height: 64px;
    margin-bottom: 8px;
}

.logo {
    max-width: 190px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-fallback {
    font-size: 18px;
    color: #1473c9;
    font-weight: bold;
}

.logo + .brand-fallback { display: none; }
.logo[style*="display: none"] + .brand-fallback { display: block; }

h1 {
    margin: 10px 0 7px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #152536;
}

.subtitle {
    margin: 0 auto 26px;
    text-align: center;
    color: #748091;
    font-size: 14px;
    line-height: 1.9;
}

.links { margin-top: 8px; }

.link-card {
    display: flex;
    align-items: center;
    min-height: 70px;
    margin-bottom: 11px;
    padding: 11px 13px;
    text-decoration: none;
    color: inherit;
    background: #fbfcfe;
    border: 1px solid #e5eaf0;
    border-radius: 13px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.link-card:hover {
    background: #f3f8fc;
    border-color: #cbddea;
    transform: translateY(-1px);
}

.icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    flex: 0 0 40px;
    border-radius: 11px;
    background: #eaf4fb;
    color: #1473c9;
    font-size: 20px;
    font-weight: bold;
}

.link-content {
    display: block;
    min-width: 0;
    flex: 1;
    padding: 0 13px;
}

.link-content strong {
    display: block;
    font-size: 15px;
    line-height: 1.7;
    color: #1d2c3d;
}

.link-content small {
    display: block;
    margin-top: 1px;
    color: #7a8795;
    font-size: 11px;
    line-height: 1.6;
}

.arrow {
    color: #9ba8b5;
    font-size: 24px;
    line-height: 1;
    padding-left: 2px;
}

.notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
}

.notice-expired {
    background: #fff3f3;
    border: 1px solid #f2caca;
}

.notice-title {
    color: #c62828;
    font-size: 15px;
    font-weight: bold;
}

.notice-text {
    margin-top: 5px;
    color: #8e3b3b;
    font-size: 12px;
}

.ip-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 20px 0 26px;
    padding: 12px;
    border-radius: 11px;
    background: #f5f8fb;
    border: 1px solid #e3e9ef;
}

.ip-label {
    color: #758394;
    font-size: 12px;
}

.ip-address {
    direction: ltr;
    unicode-bidi: bidi-override;
    color: #1769aa;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
}

.ip-expired {
    background: #fff0f0;
    border-color: #efc1c1;
}

.ip-expired .ip-address {
    color: #c62828;
    font-size: 16px;
    font-weight: bold;
}

.contact {
    padding-top: 21px;
    border-top: 1px solid #edf0f3;
}

.contact h2 {
    margin: 0 0 15px;
    text-align: center;
    font-size: 16px;
    color: #334456;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-item {
    padding: 12px;
    background: #fafbfc;
    border: 1px solid #edf0f3;
    border-radius: 11px;
    text-align: center;
}

.contact-item:first-child { grid-column: 1 / -1; }

.contact-title {
    display: block;
    margin-bottom: 7px;
    color: #7a8795;
    font-size: 11px;
    line-height: 1.6;
}

.contact-item a {
    display: inline-block;
    margin: 0 5px;
    direction: ltr;
    color: #1473c9;
    text-decoration: none;
    font-size: 14px;
    font-family: Tahoma, Arial, sans-serif;
    font-weight: bold;
}

.contact-item a:hover { text-decoration: underline; }

footer {
    margin-top: 24px;
    text-align: center;
    color: #a0aab4;
    font-size: 10px;
}

@media (max-width: 520px) {
    .page { padding: 15px 10px; }
    .card { padding: 25px 15px 20px; border-radius: 15px; }
    h1 { font-size: 24px; }
    .subtitle { font-size: 13px; margin-bottom: 21px; }
    .link-card { min-height: 65px; }
    .link-content strong { font-size: 14px; }
    .link-content small { font-size: 10px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-item:first-child { grid-column: auto; }
}
