.toplevel_page_rankyak #wpcontent {
    padding-left: 0;
}

#rankyak-page {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

#rankyak-container {
    margin: 0 auto;
    padding-top: 48px;
    width: 100%;
    max-width: 1152px;
}

#rankyak-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

#rankyak-logo img {
    width: auto;
    height: 20px;
}

#rankyak-header {
    margin-bottom: 32px;
    text-align: center;
}

#rankyak-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 32px;
    font-weight: bold;
}

@media (min-width: 768px) {
    #rankyak-title {
        font-size: 36px;
        line-height: 40px;
    }
}

#rankyak-notices {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 32px;
}

#rankyak-notices .notice {
    margin: 0;
}

#rankyak-description {
    margin-top: 0;
    font-size: 16px;
    color: #475569;
}

#rankyak-connect {
    margin-bottom: 48px;
    text-align: center;
}

#rankyak-preview {
    position: relative;
    padding: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    #rankyak-preview {
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    #rankyak-preview {
        padding: 48px;
    }
}

#rankyak-preview-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#rankyak-preview-image {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

#rankyak-connected-holder {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

#rankyak-connected-mesh {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    min-width: 110%;
    min-height: 110%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    animation: rankyak-connected-mesh-spin 5s infinite linear;
}

@keyframes rankyak-connected-mesh-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#rankyak-connected {
    position: relative;
    padding: 32px;
    background-color: rgba(255, 255, 255, 0.95);
}

#rankyak-connected-site {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

#rankyak-connected-message {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #16a34a;
}

#rankyak-connected-indicator {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 99px;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
    animation: rankyak-connected-indicator-blink 2s infinite;
}

@keyframes rankyak-connected-indicator-blink {
    0% {
        box-shadow: 0 0 0 0px rgba(52, 211, 153, 1);
    }
    50%, 100% {
        box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
    }
}

#rankyak-connected-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.rankyak-button {
    position: relative;
    display: inline-flex;
    gap: 8px;
    cursor: pointer;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    outline: none;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.rankyak-button svg {
    width: 16px;
    height: 16px;
}

.rankyak-button-primary {
    color: #ffffff;
    background-color: #111827;
    border: 1px solid #111827;
    border-bottom-color: #000000;
}

.rankyak-button-primary:hover {
    color: #ffffff;
    background-color: #000000;
}

.rankyak-button-primary:focus {
    color: #ffffff;
}

.rankyak-button-plain {
    padding: 0;
    background-color: transparent;
    color: #111827;
    border: 0;
    font-weight: 500;
}

.rankyak-button-plain:hover {
    color: #000000;
    text-decoration: underline;
}

.rankyak-link {
    color: #0063f7;
    text-decoration: none;
}

.rankyak-link:hover {
    text-decoration: underline;
}

.rankyak-button-loading {
    pointer-events: none;
    opacity: 0.5;
    color: transparent !important;
}

.rankyak-button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    color: #ffffff;
    animation: rankyak-loader-spin 0.8s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rankyak-button-loading .rankyak-button-loader {
    opacity: 1;
}

@keyframes rankyak-loader-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
