/* Reset & base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    width: 100%;
    font-family: "Noto Sans", sans-serif;
    background-color: #3B5998;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 360px;
}

/* Top bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    width: 100%;
    flex-shrink: 0;
}

.codebtn {
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.codebtn:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.donate {
    padding: 8px 20px;
    background-color: #D9534F;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.donate:hover {
    background-color: #C9302C;
    transform: translateY(-1px);
}

/* Main card */
.crbox {
    background-color: #ffffff;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    width: 90%;
    max-width: 420px;
    gap: 16px;
    margin: 0 auto;
    flex-shrink: 0;
}

.crbox h2 {
    font-family: "Noto Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2C3E6B;
    margin-bottom: 4px;
}

.crbox p {
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    color: #7a8aa8;
    margin-bottom: 8px;
}

.crbox form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.crbox input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dde2ec;
    border-radius: 10px;
    font-size: 15px;
    font-family: "Noto Sans", sans-serif;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

.crbox input[type="text"]:focus {
    border-color: #3B5998;
}

.crbox input[type="text"]::placeholder {
    color: #aab4c8;
}

.crbox button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #3B5998;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Noto Sans", sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.3px;
}

.crbox button[type="submit"]:hover {
    background-color: #2D4373;
    transform: translateY(-1px);
}

.crbox img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
}

/* Copyright */
.copyright {
    font-family: "Noto Sans", sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
    width: 100%;
    padding: 12px 0;
    margin-top: auto;
    flex-shrink: 0;
}

.favicon {
    height: 32px;
    width: 32px;
    border-radius: 50%;
}
