/**
 * Memberships Frontend Styles
 *
 * @package Memberships
 */

/* ==========================================================================
   Global Styles
   ========================================================================== */

.memberships-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #0073aa;
    color: #ffffff;
}

.memberships-button:hover {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    text-decoration: none;
}

.memberships-button:active {
    transform: translateY(0);
}

.memberships-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.memberships-button-full {
    width: 100%;
}

.memberships-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Profile Button (Top Right) */
.memberships-profile-button {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 9999;
}

@media screen and (max-width: 782px) {
    .memberships-profile-button {
        top: 46px;
    }
}

.memberships-profile-button .memberships-button {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Messages */
.memberships-message {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.memberships-message .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.memberships-message p:first-child {
    margin-top: 0;
}

.memberships-message p:last-child {
    margin-bottom: 0;
}

.memberships-message-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.memberships-message-success .dashicons {
    color: #28a745;
}

.memberships-message-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.memberships-message-error .dashicons {
    color: #dc3545;
}

.memberships-message-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.memberships-message-warning .dashicons {
    color: #ffc107;
}

.memberships-message-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.memberships-message-info .dashicons {
    color: #17a2b8;
}

/* Forms */
.memberships-form {
    max-width: 100%;
}

.memberships-form .form-group {
    margin-bottom: 20px;
}

.memberships-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.memberships-form .required {
    color: #dc3545;
    margin-left: 3px;
}

.memberships-form input[type="text"],
.memberships-form input[type="email"],
.memberships-form input[type="password"],
.memberships-form input[type="url"],
.memberships-form input[type="tel"],
.memberships-form select,
.memberships-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 2px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.memberships-form input:focus,
.memberships-form select:focus,
.memberships-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.memberships-form .field-description {
    margin-top: 5px;
    font-size: 13px;
    color: #6c757d;
}

.memberships-form .form-row {
    display: flex;
    gap: 20px;
}

.memberships-form .form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media screen and (max-width: 768px) {
    .memberships-form .form-row,
    .memberships-form .form-row-half {
        grid-template-columns: 1fr;
    }
}

.memberships-form .form-group-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
}

.memberships-form .form-group-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.memberships-form .password-field {
    position: relative;
}

.memberships-form .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #6c757d;
}

.memberships-form .toggle-password:hover {
    color: #0073aa;
}

.memberships-form .password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.memberships-form .password-strength-bar {
    height: 100%;
    width: 0;
    background: #dc3545;
    transition: width 0.3s, background 0.3s;
}

.memberships-form .password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.memberships-form .password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.memberships-form .password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

.memberships-form .form-messages {
    margin-bottom: 20px;
}

.memberships-form .form-actions {
    margin-top: 30px;
}

.button-loader {
    display: none;
}

.button-loader .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Signup Form
   ========================================================================== */

.memberships-signup-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.memberships-signup-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.signup-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.signup-header .plan-name {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: bold;
}

.signup-header .plan-description {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.95;
}

.signup-header .plan-price {
    font-size: 36px;
    font-weight: bold;
}

.signup-content {
    padding: 30px;
}

.signup-actions {
    margin-top: 25px;
}

.signup-footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

.signup-footer a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.signup-footer a:hover {
    text-decoration: underline;
}

/* Form Styles */
.memberships-form-style-modern .memberships-signup-form {
    border: 2px solid #e9ecef;
}

.memberships-form-style-classic .signup-header {
    background: #0073aa;
}

.memberships-form-style-minimal .memberships-signup-form {
    box-shadow: none;
    border: 1px solid #e9ecef;
}

/* ==========================================================================
   Content Page
   ========================================================================== */

.memberships-content-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.welcome-message h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #1a1a1a;
}

.member-since {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

.header-actions {
    flex-shrink: 0;
    margin-left: 20px;
}

@media screen and (max-width: 768px) {
    .content-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .header-actions .memberships-button {
        width: 100%;
    }
}

/* Membership Stats */
.membership-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.stat-card .stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.stat-card .stat-content {
    flex: 1;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Active Memberships */
.active-memberships {
    margin-bottom: 40px;
}

.active-memberships h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
}

.memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

@media screen and (max-width: 768px) {
    .memberships-grid {
        grid-template-columns: 1fr;
    }
}

.membership-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.membership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.membership-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.membership-title h3 {
    margin: 0;
    font-size: 20px;
}

.membership-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(255, 255, 255, 0.3);
}

.membership-body {
    padding: 20px;
}

.membership-description {
    margin-bottom: 20px;
    color: #6c757d;
    line-height: 1.6;
}

.membership-details {
    display: grid;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6c757d;
    font-weight: 600;
}

.detail-value {
    color: #1a1a1a;
}

.membership-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.button-manage {
    display: inline-block;
    padding: 10px 20px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
}

.button-manage:hover {
    background: rgba(0, 115, 170, 0.1);
}

/* Available Content */
.available-content {
    margin-bottom: 40px;
}

.available-content h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
}

.content-info {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.access-granted,
.access-limited {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.access-granted {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.access-limited {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.access-granted .dashicons,
.access-limited .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.access-granted .dashicons {
    color: #28a745;
}

.access-limited .dashicons {
    color: #ffc107;
}

.access-granted h3,
.access-limited h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.access-granted p,
.access-limited p {
    margin: 0;
    color: #6c757d;
}

.accessible-urls h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.url-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.url-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.url-list li:last-child {
    border-bottom: none;
}

.url-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

.url-list a:hover {
    color: #005177;
}

.url-list .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* No Memberships */
.no-memberships {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.empty-state {
    padding: 40px 20px;
}

.empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #6c757d;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h2,
.empty-state h3 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.empty-state p {
    margin: 0 0 25px 0;
    color: #6c757d;
    font-size: 16px;
}

.available-plans {
    margin-top: 40px;
}

.available-plans h3 {
    margin-bottom: 20px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.plan-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    text-align: center;
}

.plan-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.plan-price-display {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 15px;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 40px;
}

.quick-actions h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    display: block;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.action-card .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #0073aa;
    margin-bottom: 15px;
}

.action-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1a1a1a;
}

.action-card p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* ==========================================================================
   Profile Page
   ========================================================================== */

.memberships-profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
}

.profile-avatar img {
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-info h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
}

.profile-email {
    margin: 0;
    opacity: 0.9;
}

/* Profile Navigation */
.profile-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.profile-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.profile-nav .nav-item:hover {
    background: #f8f9fa;
    color: #0073aa;
}

.profile-nav .nav-item.active {
    background: #0073aa;
    color: #fff;
}

.profile-nav .nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Profile Content */
.profile-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-section {
    padding: 30px;
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    margin: 0;
    font-size: 24px;
}

/* Subscriptions List */
.subscriptions-list {
    display: grid;
    gap: 25px;
}

.subscription-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.subscription-item:hover {
    border-color: #0073aa;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.subscription-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.subscription-title h3 {
    margin: 0;
    font-size: 20px;
}

.subscription-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background: #28a745;
    color: #fff;
}

.subscription-price {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
}

.subscription-body {
    padding: 20px;
}

.subscription-description {
    margin-bottom: 20px;
    color: #6c757d;
    line-height: 1.6;
}

.subscription-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-box {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    flex-shrink: 0;
}

.detail-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.subscription-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.subscription-footer .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Payment History Table */
.payment-history-table {
    overflow-x: auto;
}

.payment-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.payment-history-table thead {
    background: #f8f9fa;
}

.payment-history-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.payment-history-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.payment-history-table tbody tr:hover {
    background: #f8f9fa;
}

.payment-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-status.status-completed {
    background: #28a745;
    color: #fff;
}

.payment-status.status-pending {
    background: #ffc107;
    color: #fff;
}

.payment-status.status-failed {
    background: #dc3545;
    color: #fff;
}

.transaction-code {
    font-size: 12px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-family: monospace;
}

@media screen and (max-width: 768px) {
    .payment-history-table table,
    .payment-history-table thead,
    .payment-history-table tbody,
    .payment-history-table th,
    .payment-history-table td,
    .payment-history-table tr {
        display: block;
    }
    
    .payment-history-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .payment-history-table tr {
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
    }
    
    .payment-history-table td {
        border: none;
        position: relative;
        padding-left: 50%;
    }
    
    .payment-history-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
        color: #6c757d;
    }
}

.payment-summary {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 18px;
    color: #1a1a1a;
}

/* Security Section */
.security-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.security-section:last-child {
    border-bottom: none;
}

.security-section h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.section-description {
    margin: 0 0 25px 0;
    color: #6c757d;
}

.account-info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.info-label {
    font-weight: 600;
    color: #495057;
}

.info-value code {
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.danger-zone {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px !important;
    background: #fff5f5;
}

.danger-zone h3 {
    color: #dc3545;
}

.danger-zone .section-description {
    color: #721c24;
}

/* Modals */
.memberships-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.memberships-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.memberships-modal-content h3 {
    margin: 0;
    padding: 20px 30px;
    font-size: 22px;
    border-bottom: 1px solid #e9ecef;
}

.memberships-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.memberships-modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
}

.warning-message,
.error-message {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.warning-message {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.error-message {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.warning-message .dashicons {
    color: #ffc107;
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.error-message .dashicons {
    color: #dc3545;
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.warning-message p,
.error-message p {
    margin: 0 0 10px 0;
}

.warning-message p:last-child,
.error-message p:last-child {
    margin-bottom: 0;
}

.warning-message ul,
.error-message ul {
    margin: 10px 0 0 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Restricted Content */
.memberships-restricted-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.memberships-restricted-content {
    max-width: 600px;
    text-align: center;
    background: #fff;
    padding: 60px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.memberships-restricted-content h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    color: #1a1a1a;
}

.memberships-restricted-content p {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .memberships-content-page,
    .memberships-profile-page {
        padding: 20px 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-nav {
        flex-direction: column;
    }
    
    .profile-nav .nav-item {
        width: 100%;
    }
    
    .subscription-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .subscription-details-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .memberships-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .memberships-profile-button,
    .profile-nav,
    .header-actions,
    .subscription-footer,
    .modal-actions,
    .form-actions {
        display: none !important;
    }
}