/* Registration Modal Styles */
.glowply-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 24px;
}

.glowply-modal-container {
    background-color: transparent;
    width: 100%;
    max-width: 1040px;
    max-height: 95vh;
    overflow-y: auto;
}

.glowply-modal-header {
    padding: 12px 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f8fafc;
}

.glowply-modal-header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.glowply-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #f8fafc;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.glowply-modal-close:hover,
.glowply-modal-close:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    outline: none;
    transform: scale(1.05);
}

.glowply-modal-body {
    padding: 0;
}

.glowply-modal-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.glowply-modal-aside {
    flex: 1 1 320px;
    min-width: 280px;
    background: linear-gradient(135deg, #3b82f6 0%, #0f172a 100%);
    color: #e5edff;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glowply-aside-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.glowply-modal-aside h3 {
    font-size: 28px;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.glowply-aside-copy {
    margin: 0;
    color: rgba(239, 246, 255, 0.9);
    font-size: 16px;
    line-height: 1.55;
}

.glowply-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glowply-feature-list li {
    background: rgba(15, 23, 42, 0.35);
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glowply-feature-list span {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-bottom: 6px;
}

.glowply-feature-list p {
    margin: 0;
    color: rgba(239, 246, 255, 0.78);
    font-size: 14px;
}

.glowply-trust-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.glowply-social-row {
    margin-top: 24px;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    visibility: visible !important;
    opacity: 1 !important;
}

.glowply-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 56px;
    position: relative;
    z-index: 1;
}

.glowply-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glowply-social-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.glowply-social-icon svg[fill="none"] {
    fill: none;
}

.glowply-social-icon svg[fill="currentColor"] {
    fill: #ffffff !important;
}

.glowply-social-text {
    color: #ffffff !important;
    font-weight: 500;
    line-height: 1.4;
}

.glowply-social-link:hover,
.glowply-social-link:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

.glowply-social-link:hover .glowply-social-icon,
.glowply-social-link:focus .glowply-social-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.glowply-social-link:active {
    transform: translateY(0);
}

.glowply-stat-pill {
    flex: 1 1 120px;
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.glowply-stat-pill strong {
    display: block;
    font-size: 22px;
    color: #fff;
    letter-spacing: -0.02em;
}

.glowply-stat-pill span {
    color: rgba(239, 246, 255, 0.74);
    font-size: 13px;
}

.glowply-help-text {
    margin: 0;
    font-size: 14px;
    color: rgba(239, 246, 255, 0.7);
}

.glowply-modal-form {
    flex: 1 1 380px;
    min-width: 320px;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.glowply-form-intro {
    margin: 0;
    color: #475467;
    font-size: 15px;
    line-height: 1.5;
}
.glowply-inline-error {
    background: #fef3f2;
    border: 1px solid #fda29b;
    color: #b42318;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    display: none;
}

.glowply-inline-error[style*="display: block"] {
    display: block !important;
}

.glowply-validation-success,
.glowply-validation-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.glowply-validation-success {
    background: #ecfdf3;
    border: 1px solid #86efac;
    color: #166534;
}

.glowply-validation-success .domain-preview {
    font-weight: 600;
}

.glowply-validation-error {
    background: #fef3f2;
    border: 1px solid #fda29b;
    color: #b42318;
}

.glowply-field {
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glowply-validation-checking {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #3b82f6;
}

.glowply-domain-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #475467;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.glowply-domain-meta strong {
    font-weight: 600;
    color: #111827;
}

.glowply-domain-source {
    font-size: 12px;
    color: #475467;
}

.glowply-field label {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
}

.glowply-modal-form .woocommerce-Input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    padding: 12px 14px;
    font-size: 15px;
    color: #101828;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
}

.glowply-modal-form .woocommerce-Input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.glowply-field-hint {
    font-size: 13px;
    color: #475467;
}

.glowply-password-feedback {
    margin-top: 8px;
    font-size: 13px;
    border-radius: 12px;
    padding: 10px 14px;
    line-height: 1.5;
    display: none;
    border: 1px solid transparent;
}

.glowply-password-feedback.is-neutral {
    display: block;
    background: #f8fafc;
    border-color: #e4e7ec;
    color: #475467;
}

.glowply-password-feedback.is-invalid {
    display: block;
    background: #fef3f2;
    border-color: #fda29b;
    color: #b42318;
}

.glowply-password-feedback.is-valid {
    display: block;
    background: #ecfdf3;
    border-color: #86efac;
    color: #166534;
}

.subdomain-help-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #475467;
    line-height: 1.5;
}

.required {
    color: #e2401c;
}

/* Password Input Group */
.password-input-group {
    position: relative;
    display: block;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #475467;
    background: #f4f4f5;
    border-radius: 999px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #111827;
    outline: none;
}

/* Subdomain Input Group */
.subdomain-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    --gp-field-h: 52px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subdomain-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.subdomain-input {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--gp-field-h);
    line-height: calc(var(--gp-field-h) - 2px);
    box-sizing: border-box;
    font-size: 15px;
    border: none;
    padding: 0 16px;
    background: transparent;
}

.subdomain-input:focus {
    outline: none;
}

/* Select chip (defeat Woo width:100%; keep a tight chip) */
.subdomain-suffix {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 170px;
    height: var(--gp-field-h);
    line-height: calc(var(--gp-field-h) - 2px);
    box-sizing: border-box;
    font-size: 15px;
    margin-left: 0 !important;
    padding: 0 0 0 8px;
    background-color: #f8fafc;
    border-left: 1px solid #d0d5dd;
    color: #0f172a;
    position: relative;
    display: inline-flex;
    justify-content: center;
    font-weight: 600;
}

/* Style the select element inside */
.subdomain-suffix select.glowply-suffix-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: none;
    padding: 0 40px 0 6px;
    font-size: 15px;
    color: #0f172a;
    cursor: pointer;
    font-weight: 600;
    outline: none;
    background-image: none;
}

.subdomain-suffix::after {
    content: "";
    position: absolute;
    right: 14px;
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #475467;
    top: 50%;
    transform: translateY(-50%);
}

/* Consistent focus ring */
.subdomain-input:focus,
.subdomain-suffix:focus-within {
    outline: none;
    border-color: var(--wc-form-border-active, #2271b1) !important;
    box-shadow: 0 0 0 1px var(--wc-form-border-active, #2271b1);
}

.subdomain-suffix:hover {
    background-color: #fafafa;
}

.subdomain-suffix:hover::after {
    border-top-color: #495057;
}

.subdomain-suffix select.glowply-suffix-select:hover {
    color: #212529;
}

.suffix-dot {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-right: 4px;
}

/* Submit Button */
.glowply-submit-row {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-Button.button {
    width: 100%;
    border-radius: 999px;
    color: #ffffff;
    background-color: #2563eb;
    font-weight: 600;
    font-size: 15px;
    border: none;
    padding: 14px 18px;
    box-shadow: 0 20px 30px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce-Button.button:hover {
    background-color: #1d4ed8;
    box-shadow: 0 25px 35px rgba(29, 78, 216, 0.25);
    transform: translateY(-1px);
}

.woocommerce-Button.button:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.glowply-secure-text {
    font-size: 13px;
    color: #475467;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glowply-modal-overlay {
        padding: 16px;
    }

    .glowply-modal-grid {
        flex-direction: column;
    }

    .glowply-modal-aside,
    .glowply-modal-form {
        width: 100%;
    }

    .glowply-modal-aside {
        padding: 32px 28px;
    }

    .glowply-modal-header h2 {
        font-size: 26px;
    }

    .glowply-social-link {
        padding: 12px 16px;
        min-height: 52px;
        font-size: 14px;
    }

    .glowply-social-icon {
        width: 28px;
        height: 28px;
    }

    .glowply-social-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Site Info Message */
.site-info-message {
    margin-top: 12px;
    padding: 8px 12px;
    background-color: #f7f7f7;
    border-left: 3px solid #2271b1;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

.site-info-message strong {
    color: #2271b1;
}

/* Site Warning Message */
.site-warning-message {
    margin-top: 12px;
    padding: 8px 12px;
    background-color: #fff5f5;
    border-left: 3px solid #e2401c;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

.site-warning-message strong {
    color: #e2401c;
}

.site-warning-message a {
    color: #2271b1;
    text-decoration: underline;
}

.site-warning-message a:hover {
    text-decoration: none;
}

/******************************
 * RTL SUPPORT - MODAL & INLINE OTP
 ******************************/
[dir="rtl"] .glowply-modal-grid {
    flex-direction: row-reverse;
}

[dir="rtl"] .glowply-modal-aside {
    text-align: right;
}

[dir="rtl"] .glowply-feature-list li {
    text-align: right;
}

[dir="rtl"] .glowply-modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .glowply-modal-close {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .glowply-modal-form {
    text-align: right;
}

[dir="rtl"] .glowply-modal-form .glowply-field {
    align-items: flex-end;
}

[dir="rtl"] .glowply-modal-form label,
[dir="rtl"] .glowply-field-hint,
[dir="rtl"] .glowply-domain-meta,
[dir="rtl"] .glowply-domain-source,
[dir="rtl"] .glowply-validation-checking {
    text-align: right;
    width: 100%;
}

/* Force LTR for technical inputs (URLs, passwords) but maintain visual order */
[dir="rtl"] .subdomain-input-group,
[dir="rtl"] .password-input-group {
    direction: ltr !important;
    flex-direction: row !important; /* Ensure input comes first, then suffix/icon */
}

/* Password toggle must be on RIGHT side (passwords are LTR) */
[dir="rtl"] .password-input-group .password-toggle {
    right: 12px !important;
    left: auto !important;
}

/* Subdomain suffix: input first, then suffix on right */
[dir="rtl"] .subdomain-input-group {
    flex-direction: row !important; /* Input left, suffix right */
}

[dir="rtl"] .subdomain-suffix {
    border-left: 1px solid #d0d5dd !important;
    border-right: none !important;
    padding: 0 8px 0 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

[dir="rtl"] .subdomain-suffix::after {
    right: 14px !important;
    left: auto !important;
}

/* Fix suffix dot margin in RTL */
[dir="rtl"] .suffix-dot {
    margin-right: 4px;
    margin-left: 0;
}

[dir="rtl"] .domain-container {
    justify-content: flex-end;
}

[dir="rtl"] .website-domain {
    direction: ltr;
    text-align: right;
}

[dir="rtl"] .copy-button {
    margin-right: 0;
}

[dir="rtl"] .site-info-message,
[dir="rtl"] .site-warning-message,
[dir="rtl"] .dashboard-redirect-notice,
[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-message,
[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-info {
    border-left: none;
    border-right: 4px solid currentColor;
    text-align: right;
}

[dir="rtl"] .website-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .website-screenshot {
    border-right: none;
    border-left: 1px solid #e5e7eb;
}

[dir="rtl"] .refresh-icon {
    right: auto;
    left: 12px;
}

[dir="rtl"] .site-button svg,
[dir="rtl"] .woocommerce-Button.button svg {
    margin-left: 0;
    margin-right: 8px;
}

/* English text content should remain LTR for proper punctuation */
[dir="rtl"] .glowply-password-feedback,
[dir="rtl"] .subdomain-help-text,
[dir="rtl"] .glowply-field-hint {
    direction: ltr !important;
    text-align: left !important;
}

/* Validation messages: English text needs LTR, but container can be RTL */
[dir="rtl"] .glowply-validation-success,
[dir="rtl"] .glowply-validation-error,
[dir="rtl"] .glowply-inline-error {
    direction: ltr !important;
    text-align: left !important;
}

/* Social links: icons should be on the right in RTL */
[dir="rtl"] .glowply-social-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .glowply-social-icon {
    margin-left: 0;
    margin-right: 12px;
}

/* Dashboard Redirect Notice Styles */
.dashboard-redirect-notice {
    margin-top: 1.5em;
    padding: 15px 18px;
    background-color: #f7f7f7;
    border-left: 4px solid #2271b1;
    color: #50575e;
    line-height: 1.4;
}

.dashboard-redirect-notice em {
    font-style: normal;
}

.woocommerce-privacy-policy-text{
    display: none;
}

/* Website Card Styles */
.website-card {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.website-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.website-screenshot {
    position: relative;
    flex: 0 0 300px;
    min-width: 0;
    height: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.website-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    display: block;
    border-radius: 8px;
}

.website-screenshot:hover img {
    transform: scale(1.02);
}

.screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 0;
    background-color: #f7f7f8;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-placeholder span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2933;
    padding: 8px 10px;
}

.refresh-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.refresh-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: rotate(180deg);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.refresh-icon:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.refresh-icon:active {
    transform: rotate(180deg) scale(0.95);
}

.refresh-icon svg {
    width: 18px;
    height: 18px;
    color: #374151;
}

.website-info {
    flex: 1;
    min-width: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.domain-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    min-width: 0;
}

.website-domain {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.copy-button {
    position: relative;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 32px;
    min-height: 32px;
}

.copy-button:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.copy-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.copy-button:focus:not(:focus-visible) {
    outline: none;
}

.copy-button svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 4px;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #374151;
}

.copy-button:hover .copy-tooltip {
    opacity: 1;
}

.website-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.site-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    gap: 8px;
    min-height: 44px;
    box-sizing: border-box;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-button {
    background: #059669;
    color: white;
    border-color: #059669;
}

.admin-button:hover {
    background: #047857;
    border-color: #047857;
    color: white;
    text-decoration: none;
}

.sso-button {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    position: relative;
}

.sso-button:hover:not(.disabled) {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    text-decoration: none;
}

.sso-button.disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.sso-button.disabled:hover {
    background: #9ca3af;
    border-color: #9ca3af;
    transform: none;
}

.visit-button {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.visit-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    text-decoration: none;
}

.site-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

.site-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.site-button:focus:not(:focus-visible) {
    outline: none;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

.sso-button[data-loading="true"] .loading-spinner {
    display: block;
}

.sso-button[data-loading="true"] .button-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Additional loading and interactive states */
.refresh-icon.refreshing {
    animation: spin 2s linear infinite;
    background: rgba(59, 130, 246, 0.9);
}

.refresh-icon.refreshing svg {
    color: white;
}

.refresh-icon.error {
    background: rgba(239, 68, 68, 0.9);
}

.refresh-icon.error svg {
    color: white;
}

.copy-button.tooltip-active .copy-tooltip {
    opacity: 1;
}

/* Empty State Styles */
.website-card.empty-state {
    justify-content: center;
    align-items: center;
    min-height: 200px;
    text-align: center;
}

.empty-state-content {
    padding: 40px 20px;
}

.empty-state-icon {
    margin-bottom: 20px;
    color: #6b7280;
}

.empty-state-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.empty-state-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
    max-width: 400px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .website-screenshot {
        flex: 0 0 250px;
    }

    .website-info {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .website-card {
        flex-direction: column;
        margin: 15px 0;
        border-radius: 10px;
    }

    .website-screenshot {
        flex: none;
        width: 100%;
        height: 200px;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .website-info {
        padding: 20px;
        width: 100%;
    }

    .domain-container {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        width: 100%;
    }

    .website-domain {
        font-size: 18px;
        flex: 1;
        min-width: 0;
    }

    .copy-button {
        flex-shrink: 0;
    }

    .website-buttons {
        gap: 10px;
        width: 100%;
    }

    .site-button {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
        width: 100%;
    }

    .refresh-icon {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }

    .refresh-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .website-card {
        margin: 10px 0;
        border-radius: 8px;
    }

    .website-screenshot {
        height: 180px;
    }

    .website-info {
        padding: 16px;
    }

    .domain-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .website-domain {
        font-size: 16px;
        width: 100%;
    }

    .copy-button {
        align-self: flex-start;
    }

    .website-buttons {
        gap: 8px;
    }

    .site-button {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 42px;
    }

    .screenshot-placeholder {
        font-size: 13px;
        padding: 0 16px;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .website-card {
        margin: 8px 0;
        border-radius: 6px;
    }

    .website-screenshot {
        height: 160px;
    }

    .website-info {
        padding: 12px;
    }

    .website-domain {
        font-size: 15px;
    }

    .site-button {
        padding: 10px 12px;
        font-size: 12px;
        min-height: 40px;
    }
}


