/* Steady OAuth Plugin Styles */
.oauth-styled-login-wrapper {
  transition: opacity 180ms ease-in;
}

.oauth-styled-login-wrapper.oauth-initializing {
  opacity: 0;
}

.oauth-styled-login-wrapper.oauth-ready {
  opacity: 1;
}

/* ==================================
   Cache-compatible button system
   =================================== */

/* OAuth Button - Exact Steady Widget Design Copy */
.oauth-steady-btn {
    all: initial;
    box-sizing: border-box;
    font-family: "CircularStd", Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    border: 1px solid #291e38;
    border-radius: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: border 0.2s ease 0s, color 0.2s ease 0s, background-color 0.2s ease 0s, box-shadow 0.2s ease 0s, opacity 0.2s ease 0s;
    max-width: 100%;
    color: #fff;
    background-color: #291e38;
    /* Default size - will be overridden inline */
    min-width: 188px;
    height: 40px;
    padding: 10px 14px;
    font-size: 12px;
}

.oauth-steady-btn:hover {
    opacity: 0.8;
    text-decoration: none;
    color: #fff;
}

.oauth-steady-btn:focus-visible {
    outline: 2px solid rgba(252, 85, 68, 0.7);
    outline-offset: -2px;
}

.oauth-steady-btn .steady-icon {
    width: 12px;
    height: auto;
    flex-shrink: 0;
}

.oauth-steady-btn .steady-separator {
    flex-shrink: 0;
    width: 1px;
    height: 100%;
    background-color: #9a95a6;
    border-radius: 1px;
    margin: 0 10px;
}

/* OAuth User Display Container */
.oauth-user-display {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    font-size: 14px;
    color: #333;
    gap: 8px;
}

.oauth-user-display .oauth-username {
    font-weight: 600;
    color: #333;
}

.oauth-user-display .oauth-subscription-badge {
    /* Base badge styles; color variants via modifier classes */
    color: #ffffff;
    border-radius: 3px;
    font-weight: bold;
    font-size: 13px;
    transition: all 300ms ease 0ms;
    padding: 2px 5px;
    line-height: 1em;
}

/* Subscriber (green f+) */
.oauth-user-display .oauth-subscription-badge.badge-subscriber {
    background-color: #28a745;
    border: 1px solid #28a745;
}

/* No subscription (orange) */
.oauth-user-display .oauth-subscription-badge.badge-none {
    background-color: #ff9800;
    border: 1px solid #ff9800;
}

/* OAuth Button Wrapper */
.oauth-styled-login-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

/* Hide Steady Widget buttons completely */
steady-login-button {
    display: none !important;
}

/* Notification Styles */
.steady-notification {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    padding: 16px 20px !important;
    border-radius: 4px !important;
    color: white !important;
    z-index: 2147483646 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif!important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    min-width: 250px !important;
    max-width: 350px !important;
    word-wrap: break-word !important;
    animation: steadySlideIn 0.3s ease-out !important;
    display: block !important;
}

.steady-notification-success,
.steady-notification-info {
    background-color: #291e38 !important;
    border-left: 4px solid #432869 !important;
}

.steady-notification-error {
    background-color: #dc3545 !important;
    border-left: 4px solid #bd2130 !important;
}

.steady-notification span {
    margin: 0 !important;
    padding: 0 !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    display: block !important;
    width: 100% !important;
}

/* Animation keyframes */
@keyframes steadySlideIn {
    from {
        transform: translateX(100%) !important;
        opacity: 0 !important;
    }
    to {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}

@keyframes steadySlideOut {
    from {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
    to {
        transform: translateX(100%) !important;
        opacity: 0 !important;
    }
}

/* User info components */
.steady-user-info {
    display: inline-block;
    margin: 5px 0;
}

.steady-user-name {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}

.steady-user-email {
    color: #666;
    font-size: 0.9em;
}

.steady-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.steady-status.steady-subscriber {
    background-color: #28a745;
    color: white;
}

.steady-status.steady-no-subscription {
    background-color: #6c757d;
    color: white;
}

.steady-not-logged-in {
    color: #dc3545;
    font-style: italic;
}

/* Subscription details */
.steady-subscription-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.steady-subscription-details > div {
    margin: 5px 0;
}

.steady-plan-name {
    font-weight: 600;
    color: #495057;
}

.steady-status-active {
    color: #28a745;
    font-weight: 600;
}

.steady-status-in_trial {
    color: #17a2b8;
    font-weight: 600;
}

.steady-status-not_renewing {
    color: #ffc107;
    font-weight: 600;
}

.steady-expires {
    color: #6c757d;
}

.steady-period,
.steady-amount {
    color: #495057;
}

/* Call-to-action styles */
.steady-cta {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 15px 0;
}

.steady-cta-button {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

.steady-cta-button:hover {
    background: #005a87;
    color: white;
}

.steady-subscriber-thanks {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

/* Greeting styles */
.steady-greeting {
    font-size: 1.1em;
    margin: 10px 0;
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .oauth-styled-login-wrapper {
        gap: 10px;
        line-height: 1.3em;
    }
    
    .oauth-user-display {
        margin-right: 0;
        line-height: 1.1em;
    }
    
    .oauth-steady-btn {
        min-width: 200px !important;
    }
    
    .steady-notification {
        top: 20px !important;
        right: 15px !important;
        left: 15px !important;
        width: auto !important;
        max-width: none !important;
        min-width: auto !important;
        padding: 14px 18px !important;
        font-size: 15px !important;
    }
}

/* ===================================
   MEMBERSHIP ACCOUNT PAGE STYLES
   =================================== */

.steady-account-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.steady-account-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.steady-account-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.steady-account-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

/* User Profile Section */
.steady-user-profile {
    display: flex;
    align-items: center;
    background: linear-gradient(347deg, #a9a9a9 0%, #ededed 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.steady-user-avatar, .et_pb_post_content_0_tb_body img.steady-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%!important;
    margin-right: 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.steady-user-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.steady-user-email {
    opacity: 0.9;
    font-size: 1rem;
    margin: 0;
}

.steady-user-status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 500;
}

.steady-user-status-badge.subscriber {
    background: #27ae60;
}

.steady-user-status-badge.guest {
    background: #652397;
}

.steady-user-status-badge.trial {
    background: #3498db;
}

.steady-user-status-badge.not-renewing {
    background: #e74c3c;
}

/* Grid Layout for Info Cards */
.steady-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Info Cards */
.steady-info-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.steady-info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.steady-info-card h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steady-info-card .card-icon {
    font-size: 1.3rem;
}

.steady-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.steady-data-row:last-child {
    border-bottom: none;
}

.steady-data-label {
    font-weight: 500;
    color: #5a6c7d;
    font-size: 0.9rem;
}

.steady-data-value {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
}

/* Status indicators */
.steady-status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steady-status-indicator.active {
    background: #d4edda;
    color: #155724;
}

.steady-status-indicator.trial {
    background: #cce5ff;
    color: #004085;
}

.steady-status-indicator.guest {
    background: #65239736;
    color: #430485;
}

.steady-status-indicator.not-renewing {
    background: #f8d7da;
    color: #721c24;
}

.steady-status-indicator.cancelled {
    background: #f5c6cb;
    color: #721c24;
}

/* Plan Benefits */
.steady-plan-benefits {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #667eea;
}

.steady-plan-benefits p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

/* RSS Feed Link */
.steady-rss-link {
    display: inline-flex;
    align-items: center;
    background: #ff6b35;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.steady-rss-link:hover {
    background: #e55a2b;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

/* Gift Subscription Badge */
.steady-gift-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

/* Action Buttons */
.steady-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.steady-action-button {
    display: inline-flex;
    align-items: center;
    margin: 0 auto;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 8px;
}

.steady-action-button.primary {
    background: #667eea;
    color: white;
}

.steady-action-button.primary:hover {
    background: #5a6fd8;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.steady-action-button.secondary {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
}

.steady-action-button.secondary:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

.steady-action-button.danger {
    background: #e74c3c;
    color: white;
}

.steady-action-button.danger:hover {
    background: #c0392b;
    text-decoration: none;
    color: white;
}

.steady-action-button.steady-account-button {
    background: #ffffff;
    color: #291e38;
    border: 2px solid #291e38;
}

.steady-action-button.steady-account-button:hover {
    background: #291e38;
    color: white;
    text-decoration: none;
}

/* Not Logged In State */
.steady-not-logged-in {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.steady-not-logged-in h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.steady-not-logged-in p {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* No Subscription State */
.steady-no-subscription {
    text-align: center;
    padding: 40px 20px;
    background: #fff8e1;
    border: 2px dashed #ffb74d;
    border-radius: 12px;
    margin: 20px 0;
}

.steady-no-subscription h3 {
    color: #e65100;
    margin-bottom: 15px;
}

.steady-no-subscription p {
    color: #ef6c00;
    margin-bottom: 20px;
}

/* Currency formatting */
.steady-currency {
    font-weight: 700;
    color: #38a169;
}

/* Date formatting */
.steady-date {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Highlight important information */
.steady-highlight {
    background: linear-gradient(120deg, #ffeaa7 0%, #fab1a0 100%);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #fdcb6e;
}

.steady-highlight strong {
    color: #2d3436;
}

/* Responsive Design for Account Page */
@media (max-width: 768px) {
    .steady-account-page {
        padding: 15px;
        margin: 10px;
    }
    
    .steady-account-title {
        font-size: 2rem;
    }
    
    .steady-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .steady-user-profile {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .steady-user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .steady-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .steady-action-button {
        justify-content: center;
        width: 100%;
    }
    
    .steady-data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .steady-data-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .steady-account-page {
        padding: 10px;
        margin: 5px;
    }
    
    .steady-info-card {
        padding: 15px;
    }
    
    .steady-account-title {
        font-size: 1.8rem;
    }
}