/**
 * TVStartup OTT Platform - Profile Dashboard Styles
 *
 * Styles for the user profile dashboard page.
 * Displays profile info, subscriptions, and payment methods.
 *
 * @package Tvstartup_OTT_Platform
 * @since   1.0.9
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

.ts-ott-profile-wrapper {
    --ts-ott-primary: #2271b1;
    --ts-ott-primary-hover: #135e96;
    --ts-ott-primary-light: rgba(34, 113, 177, 0.08);
    --ts-ott-success: #00a32a;
    --ts-ott-success-bg: rgba(0, 163, 42, 0.08);
    --ts-ott-error: #d63638;
    --ts-ott-error-bg: rgba(214, 54, 56, 0.08);
    --ts-ott-error-hover: #b32d2e;
    --ts-ott-warning: #dba617;
    --ts-ott-warning-bg: rgba(219, 166, 23, 0.08);
    --ts-ott-text: #1d2327;
    --ts-ott-text-light: #646970;
    --ts-ott-text-muted: #8c8f94;
    --ts-ott-border: #c3c4c7;
    --ts-ott-border-light: #dcdcde;
    --ts-ott-bg: #f0f0f1;
    --ts-ott-bg-white: #ffffff;
    --ts-ott-radius: 6px;
    --ts-ott-radius-lg: 12px;
    --ts-ott-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --ts-ott-accent: #8c67ef;
    --ts-ott-accent-light: rgba(140, 103, 239, 0.08);
    --ts-ott-avatar-bg: var(--ts-ott-accent);
    --ts-ott-avatar-color: #ffffff;
    --ts-ott-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --ts-ott-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ts-ott-transition: 0.2s ease;
}

/* ==========================================================================
   Wrapper & Container
   ========================================================================== */

.ts-ott-profile-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    font-family: var(--ts-ott-font-family);
    line-height: 1.5;
    box-sizing: border-box;
    color: var(--ts-ott-text);
}

.ts-ott-profile-wrapper *,
.ts-ott-profile-wrapper *::before,
.ts-ott-profile-wrapper *::after {
    box-sizing: border-box;
}

.ts-ott-profile-container {
    width: 100%;
    max-width: 900px;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.ts-ott-profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.ts-ott-profile-loading .ts-ott-profile-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ts-ott-border-light);
    border-top-color: var(--ts-ott-primary);
    border-radius: 50%;
    animation: ts-ott-profile-spin 0.8s linear infinite;
}

@keyframes ts-ott-profile-spin {
    to {
        transform: rotate(360deg);
    }
}

.ts-ott-profile-loading p {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--ts-ott-text-light);
}

/* ==========================================================================
   Error State
   ========================================================================== */

.ts-ott-profile-error {
    padding: 20px 24px;
    background: var(--ts-ott-error-bg);
    border: 1px solid var(--ts-ott-error);
    border-radius: var(--ts-ott-radius);
    color: var(--ts-ott-error);
    font-size: 14px;
    text-align: center;
}

/* ==========================================================================
   Not Logged In State
   ========================================================================== */

.ts-ott-profile-not-logged-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--ts-ott-bg-white);
    border: 1px solid var(--ts-ott-border-light);
    border-radius: var(--ts-ott-radius-lg);
    box-shadow: var(--ts-ott-card-shadow);
}

.ts-ott-profile-not-logged-in .ts-ott-profile-lock-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--ts-ott-text-muted);
}

.ts-ott-profile-not-logged-in h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ts-ott-text);
}

.ts-ott-profile-not-logged-in p {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--ts-ott-text-light);
    max-width: 360px;
}

.ts-ott-profile-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--ts-ott-font-family);
    color: #ffffff;
    background: var(--ts-ott-primary);
    border: none;
    border-radius: var(--ts-ott-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--ts-ott-transition), transform 0.1s ease;
    line-height: 1.4;
}

.ts-ott-profile-login-btn:hover {
    background: var(--ts-ott-primary-hover);
    color: #ffffff;
    text-decoration: none;
}

.ts-ott-profile-login-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Profile Content
   ========================================================================== */

.ts-ott-profile-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ==========================================================================
   Profile Card
   ========================================================================== */

.ts-ott-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--ts-ott-bg-white);
    border: 1px solid var(--ts-ott-border-light);
    border-radius: var(--ts-ott-radius-lg);
    box-shadow: var(--ts-ott-card-shadow);
    position: relative;
}

.ts-ott-profile-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ts-ott-avatar-bg);
    color: var(--ts-ott-avatar-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    user-select: none;
}

.ts-ott-profile-details {
    flex: 1;
    min-width: 0;
}

.ts-ott-profile-details h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: var(--ts-ott-text);
    line-height: 1.3;
    word-break: break-word;
}

.ts-ott-profile-email {
    margin: 0;
    font-size: 14px;
    color: var(--ts-ott-text-light);
    word-break: break-all;
}

.ts-ott-profile-logout-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--ts-ott-font-family);
    color: var(--ts-ott-text-light);
    background: transparent;
    border: 1px solid var(--ts-ott-border);
    border-radius: var(--ts-ott-radius);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--ts-ott-transition), border-color var(--ts-ott-transition), background-color var(--ts-ott-transition);
    line-height: 1.4;
}

.ts-ott-profile-logout-btn:hover {
    color: var(--ts-ott-error);
    border-color: var(--ts-ott-error);
    background: var(--ts-ott-error-bg);
    text-decoration: none;
}

.ts-ott-profile-logout-btn:active {
    transform: scale(0.98);
}

.ts-ott-profile-logout-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.ts-ott-profile-section {
    background: var(--ts-ott-bg-white);
    border: 1px solid var(--ts-ott-border-light);
    border-radius: var(--ts-ott-radius-lg);
    box-shadow: var(--ts-ott-card-shadow);
    padding: 24px;
}

.ts-ott-profile-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ts-ott-text);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ts-ott-border-light);
}

.ts-ott-profile-section-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--ts-ott-primary);
}

/* ==========================================================================
   Subscriptions Section
   ========================================================================== */

.ts-ott-subscription-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ts-ott-subscription-card {
    padding: 20px;
    background: var(--ts-ott-bg);
    border: 1px solid var(--ts-ott-border-light);
    border-radius: var(--ts-ott-radius);
    transition: box-shadow var(--ts-ott-transition);
}

.ts-ott-subscription-card:hover {
    box-shadow: var(--ts-ott-card-shadow-hover);
}

.ts-ott-subscription-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ts-ott-subscription-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ts-ott-text);
    line-height: 1.3;
}

/* Status Badges */
.ts-ott-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 20px;
    line-height: 1.3;
    white-space: nowrap;
}

.ts-ott-badge--active {
    background: var(--ts-ott-success-bg);
    color: var(--ts-ott-success);
}

.ts-ott-badge--cancelled {
    background: var(--ts-ott-error-bg);
    color: var(--ts-ott-error);
}

.ts-ott-badge--expired {
    background: var(--ts-ott-bg);
    color: var(--ts-ott-text-muted);
    border: 1px solid var(--ts-ott-border-light);
}

.ts-ott-badge--pending {
    background: var(--ts-ott-warning-bg);
    color: #8b6914;
}

/* Subscription Info Grid */
.ts-ott-subscription-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-bottom: 16px;
}

.ts-ott-subscription-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ts-ott-subscription-info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--ts-ott-text-muted);
}

.ts-ott-subscription-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--ts-ott-text);
}

/* Unsubscribe Button */
.ts-ott-subscription-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--ts-ott-border-light);
}

.ts-ott-btn-unsubscribe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--ts-ott-font-family);
    color: var(--ts-ott-error);
    background: transparent;
    border: 1px solid var(--ts-ott-error);
    border-radius: var(--ts-ott-radius);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--ts-ott-transition), background-color var(--ts-ott-transition);
    line-height: 1.4;
}

.ts-ott-btn-unsubscribe:hover {
    color: #ffffff;
    background: var(--ts-ott-error);
    text-decoration: none;
}

.ts-ott-btn-unsubscribe:active {
    transform: scale(0.98);
}

.ts-ott-btn-unsubscribe:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ts-ott-btn-unsubscribe svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ==========================================================================
   Payment Methods Section
   ========================================================================== */

.ts-ott-payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ts-ott-payment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--ts-ott-bg);
    border: 1px solid var(--ts-ott-border-light);
    border-radius: var(--ts-ott-radius);
    transition: box-shadow var(--ts-ott-transition);
}

.ts-ott-payment-card:hover {
    box-shadow: var(--ts-ott-card-shadow-hover);
}

.ts-ott-payment-brand {
    flex-shrink: 0;
    width: 48px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ts-ott-bg-white);
    border: 1px solid var(--ts-ott-border-light);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ts-ott-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    overflow: hidden;
}

.ts-ott-payment-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ts-ott-payment-info {
    flex: 1;
    min-width: 0;
}

.ts-ott-payment-number {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ts-ott-text);
    letter-spacing: 1px;
    line-height: 1.3;
}

.ts-ott-payment-billing-name {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--ts-ott-text);
    font-weight: 500;
}

.ts-ott-payment-expiry {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ts-ott-text-light);
}

.ts-ott-btn-delete-payment {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0;
    color: var(--ts-ott-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--ts-ott-radius);
    cursor: pointer;
    transition: color var(--ts-ott-transition), background-color var(--ts-ott-transition), border-color var(--ts-ott-transition);
}

.ts-ott-btn-delete-payment:hover {
    color: var(--ts-ott-error);
    background: var(--ts-ott-error-bg);
    border-color: var(--ts-ott-error);
}

.ts-ott-btn-delete-payment:active {
    transform: scale(0.95);
}

.ts-ott-btn-delete-payment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ts-ott-btn-delete-payment svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.ts-ott-profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
}

.ts-ott-profile-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: var(--ts-ott-text-muted);
}

.ts-ott-profile-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--ts-ott-text-muted);
}

/* ==========================================================================
   Confirmation Modal
   ========================================================================== */

.ts-ott-profile-modal-overlay {
    --ts-ott-primary: #2271b1;
    --ts-ott-primary-hover: #135e96;
    --ts-ott-success: #00a32a;
    --ts-ott-error: #d63638;
    --ts-ott-error-hover: #b32d2e;
    --ts-ott-text: #1d2327;
    --ts-ott-text-light: #646970;
    --ts-ott-text-muted: #8c8f94;
    --ts-ott-border: #c3c4c7;
    --ts-ott-border-light: #dcdcde;
    --ts-ott-bg: #f0f0f1;
    --ts-ott-bg-white: #ffffff;
    --ts-ott-radius: 6px;
    --ts-ott-radius-lg: 12px;
    --ts-ott-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --ts-ott-transition: 0.2s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ts-ott-profile-modal-overlay.ts-ott-profile-modal--active {
    opacity: 1;
    visibility: visible;
}

.ts-ott-profile-modal {
    width: 100%;
    max-width: 420px;
    background: var(--ts-ott-bg-white);
    border-radius: var(--ts-ott-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.2s ease;
}

.ts-ott-profile-modal-overlay.ts-ott-profile-modal--active .ts-ott-profile-modal {
    transform: translateY(0) scale(1);
}

.ts-ott-profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ts-ott-border-light);
}

.ts-ott-profile-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--ts-ott-text);
}

.ts-ott-profile-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--ts-ott-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--ts-ott-radius);
    cursor: pointer;
    transition: color var(--ts-ott-transition), background-color var(--ts-ott-transition);
}

.ts-ott-profile-modal-close:hover {
    color: var(--ts-ott-text);
    background: var(--ts-ott-bg);
}

.ts-ott-profile-modal-close svg {
    width: 18px;
    height: 18px;
}

.ts-ott-profile-modal-body {
    padding: 24px;
}

.ts-ott-profile-modal-body p {
    margin: 0;
    font-size: 14px;
    color: var(--ts-ott-text-light);
    line-height: 1.6;
}

.ts-ott-profile-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--ts-ott-border-light);
    background: var(--ts-ott-bg);
}

.ts-ott-profile-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--ts-ott-font-family);
    border-radius: var(--ts-ott-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--ts-ott-transition), color var(--ts-ott-transition), border-color var(--ts-ott-transition), transform 0.1s ease;
    line-height: 1.4;
    border: none;
}

.ts-ott-profile-modal-btn:active {
    transform: scale(0.98);
}

.ts-ott-profile-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ts-ott-profile-modal-btn--cancel {
    color: var(--ts-ott-text-light);
    background: var(--ts-ott-bg-white);
    border: 1px solid var(--ts-ott-border);
}

.ts-ott-profile-modal-btn--cancel:hover {
    color: var(--ts-ott-text);
    border-color: var(--ts-ott-text-light);
    text-decoration: none;
}

.ts-ott-profile-modal-btn--danger {
    color: #ffffff;
    background: var(--ts-ott-error);
    border: 1px solid var(--ts-ott-error);
}

.ts-ott-profile-modal-btn--danger:hover {
    background: var(--ts-ott-error-hover);
    border-color: var(--ts-ott-error-hover);
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.ts-ott-profile-toast-container {
    --ts-ott-success: #00a32a;
    --ts-ott-error: #d63638;
    --ts-ott-text: #1d2327;
    --ts-ott-text-muted: #8c8f94;
    --ts-ott-bg-white: #ffffff;
    --ts-ott-radius: 6px;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.ts-ott-profile-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    min-width: 280px;
    max-width: 400px;
    background: var(--ts-ott-bg-white);
    border-radius: var(--ts-ott-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 500;
    color: var(--ts-ott-text);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    animation: ts-ott-profile-toast-in 0.35s ease forwards;
    border-left: 4px solid var(--ts-ott-border);
}

.ts-ott-profile-toast.ts-ott-profile-toast--dismissing {
    animation: ts-ott-profile-toast-out 0.3s ease forwards;
}

.ts-ott-profile-toast--success {
    border-left-color: var(--ts-ott-success);
}

.ts-ott-profile-toast--success .ts-ott-profile-toast-icon {
    color: var(--ts-ott-success);
}

.ts-ott-profile-toast--error {
    border-left-color: var(--ts-ott-error);
}

.ts-ott-profile-toast--error .ts-ott-profile-toast-icon {
    color: var(--ts-ott-error);
}

.ts-ott-profile-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.ts-ott-profile-toast-message {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.ts-ott-profile-toast-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--ts-ott-text-muted);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: color var(--ts-ott-transition), background-color var(--ts-ott-transition);
}

.ts-ott-profile-toast-close:hover {
    color: var(--ts-ott-text);
    background: var(--ts-ott-bg);
}

.ts-ott-profile-toast-close svg {
    width: 14px;
    height: 14px;
}

@keyframes ts-ott-profile-toast-in {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes ts-ott-profile-toast-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ==========================================================================
   Skeleton Loaders
   ========================================================================== */

.ts-ott-skeleton {
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
    border-radius: 4px;
}

.ts-ott-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    animation: ts-ott-skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes ts-ott-skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Skeleton - Profile Card */
.ts-ott-skeleton-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--ts-ott-bg-white);
    border: 1px solid var(--ts-ott-border-light);
    border-radius: var(--ts-ott-radius-lg);
}

.ts-ott-skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ts-ott-skeleton-text-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-ott-skeleton-text {
    height: 14px;
    border-radius: 4px;
}

.ts-ott-skeleton-text--name {
    width: 160px;
    height: 20px;
}

.ts-ott-skeleton-text--email {
    width: 220px;
}

.ts-ott-skeleton-btn {
    width: 90px;
    height: 36px;
    border-radius: var(--ts-ott-radius);
    flex-shrink: 0;
}

/* Skeleton - Section Card */
.ts-ott-skeleton-section {
    padding: 24px;
    background: var(--ts-ott-bg-white);
    border: 1px solid var(--ts-ott-border-light);
    border-radius: var(--ts-ott-radius-lg);
}

.ts-ott-skeleton-section-title {
    width: 180px;
    height: 18px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.ts-ott-skeleton-card {
    padding: 20px;
    background: var(--ts-ott-bg);
    border: 1px solid var(--ts-ott-border-light);
    border-radius: var(--ts-ott-radius);
    margin-bottom: 14px;
}

.ts-ott-skeleton-card:last-child {
    margin-bottom: 0;
}

.ts-ott-skeleton-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ts-ott-skeleton-card-title {
    width: 140px;
    height: 16px;
}

.ts-ott-skeleton-card-badge {
    width: 60px;
    height: 22px;
    border-radius: 20px;
}

.ts-ott-skeleton-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.ts-ott-skeleton-card-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ts-ott-skeleton-card-label {
    width: 80px;
    height: 10px;
}

.ts-ott-skeleton-card-value {
    width: 120px;
    height: 14px;
}

/* ==========================================================================
   Responsive - Tablet (768px)
   ========================================================================== */

@media (max-width: 768px) {
    .ts-ott-profile-container {
        max-width: 100%;
        padding: 0 12px;
    }

    /* Profile card: stack vertically */
    .ts-ott-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }

    .ts-ott-profile-details h2 {
        font-size: 18px;
    }

    .ts-ott-profile-logout-btn {
        width: 100%;
        justify-content: center;
    }

    /* Section padding */
    .ts-ott-profile-section {
        padding: 20px;
    }

    /* Subscription info grid: keep 2 columns but tighter */
    .ts-ott-subscription-info {
        gap: 8px 16px;
    }

    .ts-ott-subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Payment card */
    .ts-ott-payment-card {
        padding: 14px 16px;
    }

    /* Skeleton profile */
    .ts-ott-skeleton-profile {
        flex-direction: column;
        align-items: center;
    }

    .ts-ott-skeleton-text-group {
        align-items: center;
    }

    /* Toast */
    .ts-ott-profile-toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .ts-ott-profile-toast {
        min-width: 0;
        max-width: 100%;
    }
}

/* ==========================================================================
   Responsive - Mobile (480px)
   ========================================================================== */

@media (max-width: 480px) {
    .ts-ott-profile-wrapper {
        padding: 12px 0;
    }

    .ts-ott-profile-content {
        gap: 20px;
    }

    .ts-ott-profile-card {
        padding: 16px;
    }

    .ts-ott-profile-avatar {
        width: 52px;
        height: 52px;
        font-size: 19px;
    }

    .ts-ott-profile-details h2 {
        font-size: 16px;
    }

    .ts-ott-profile-email {
        font-size: 13px;
    }

    .ts-ott-profile-section {
        padding: 16px;
    }

    .ts-ott-profile-section-title {
        font-size: 15px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .ts-ott-subscription-card {
        padding: 16px;
    }

    .ts-ott-subscription-title {
        font-size: 15px;
    }

    /* Stack subscription info to single column */
    .ts-ott-subscription-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ts-ott-subscription-actions {
        justify-content: stretch;
    }

    .ts-ott-btn-unsubscribe {
        width: 100%;
        justify-content: center;
    }

    .ts-ott-payment-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .ts-ott-payment-number {
        font-size: 13px;
    }

    /* Modal */
    .ts-ott-profile-modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .ts-ott-profile-modal {
        max-width: 100%;
        border-radius: var(--ts-ott-radius-lg) var(--ts-ott-radius-lg) 0 0;
    }

    .ts-ott-profile-modal-footer {
        flex-direction: column-reverse;
    }

    .ts-ott-profile-modal-btn {
        width: 100%;
    }

    /* Not logged in */
    .ts-ott-profile-not-logged-in {
        padding: 40px 16px;
    }

    .ts-ott-profile-login-btn {
        width: 100%;
        justify-content: center;
    }
}
