/**
 * 3 Walls Dashboard CSS
 *
 * @package ThreeWalls_Access
 */

/* CSS Variables */
:root {
    --twa-primary: #2b64cc;
    --twa-dark: #0f182b;
    --twa-stat-total: #2b64cc;
    --twa-stat-available: #f97316;
    --twa-stat-completed: #10b981;
    --twa-stat-expired: #ef4444;
    --twa-border-radius: 16px;
    --twa-border-radius-sm: 8px;
    --twa-shadow: 0 6px 16px rgba(0,0,0,.06);
    --twa-shadow-lg: 0 10px 25px rgba(0,0,0,.1);
    --twa-gap: 20px;
    --twa-gap-sm: 10px;
}

/* Dashboard Container */
.twa-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Welcome Banner */
.twa-welcome-banner {
    background: linear-gradient(135deg, var(--twa-primary) 0%, var(--twa-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--twa-border-radius);
    margin-bottom: var(--twa-gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.twa-welcome-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.twa-logo {
    max-width: 80px;
    height: auto;
}

.twa-welcome-text h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
}

.twa-welcome-text p {
    margin: 0;
    opacity: 0.9;
}

/* Stats Grid */
.twa-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--twa-gap);
    margin-bottom: var(--twa-gap);
}

.twa-stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--twa-border-radius-sm);
    box-shadow: var(--twa-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid;
}

.twa-stat-blue { border-color: var(--twa-stat-total); }
.twa-stat-orange { border-color: var(--twa-stat-available); }
.twa-stat-green { border-color: var(--twa-stat-completed); }
.twa-stat-red { border-color: var(--twa-stat-expired); }

.twa-stat-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f6fc;
}

.twa-stat-blue .twa-stat-icon { background: #eff6ff; color: var(--twa-stat-total); }
.twa-stat-orange .twa-stat-icon { background: #fff7ed; color: var(--twa-stat-available); }
.twa-stat-green .twa-stat-icon { background: #ecfdf5; color: var(--twa-stat-completed); }
.twa-stat-red .twa-stat-icon { background: #fef2f2; color: var(--twa-stat-expired); }

.twa-stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.twa-stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 5px 0;
}

.twa-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

/* Tabs Navigation */
.twa-dashboard-tabs {
    background: white;
    border-radius: var(--twa-border-radius-sm);
    padding: 15px 20px;
    margin-bottom: var(--twa-gap);
    box-shadow: var(--twa-shadow);
    overflow-x: auto;
    position: sticky;
    top: 32px;
    z-index: 100;
}

.twa-tabs-inner {
    display: flex;
    gap: 10px;
}

.twa-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--twa-border-radius-sm);
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.twa-tab:hover {
    background: #f3f4f6;
    color: var(--twa-primary);
}

.twa-tab-active {
    background: var(--twa-primary);
    color: white;
}

.twa-tab .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Tab Content */
.twa-tab-content {
    min-height: 400px;
}

.twa-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--twa-gap);
}

.twa-tab-header h2 {
    margin: 0;
}

/* Filter Pills */
.twa-filter-pills {
    display: flex;
    gap: 10px;
}

.twa-filter-pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s;
}

.twa-filter-pill:hover {
    border-color: var(--twa-primary);
    color: var(--twa-primary);
}

.twa-filter-pill.active {
    background: var(--twa-primary);
    border-color: var(--twa-primary);
    color: white;
}

/* Continue Watching Section */
.twa-continue-watching {
    margin-bottom: 40px;
}

.twa-continue-watching h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--twa-dark);
}

.twa-continue-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--twa-gap);
}

.twa-continue-card {
    background: white;
    border-radius: var(--twa-border-radius);
    box-shadow: var(--twa-shadow);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.twa-continue-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    transform: translateY(-6px);
}

.twa-continue-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Iframe wrapper for Continue Watching cards */
.twa-continue-cover .twa-iframe-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.twa-continue-cover .twa-iframe-wrap.device-desktop {
    aspect-ratio: 16/9;
}

.twa-continue-cover .twa-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Cover image fallback */
.twa-continue-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.twa-continue-cover .twa-completed-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 2;
    animation: twa-pulse-badge 2s ease-in-out infinite;
}

@keyframes twa-pulse-badge {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
    }
}

.twa-continue-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.twa-continue-info h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--twa-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px;
}

.twa-continue-meta {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.twa-continue-meta::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #d1d5db;
    border-radius: 50%;
}

.twa-continue-info .twa-btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.twa-continue-info .twa-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.twa-continue-info .twa-btn:hover::before {
    width: 300px;
    height: 300px;
}

.twa-continue-card.completed .twa-continue-info {
    background: linear-gradient(to bottom, #ecfdf5 0%, white 100%);
}

.twa-continue-card.completed .twa-continue-info h3 {
    color: #059669;
}

/* Quick Actions Grid */
.twa-quick-actions {
    margin-bottom: 40px;
}

.twa-quick-actions h2 {
    margin-bottom: 20px;
}

.twa-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--twa-gap);
}

.twa-quick-action-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--twa-border-radius-sm);
    box-shadow: var(--twa-shadow);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.twa-quick-action-card:hover {
    box-shadow: var(--twa-shadow-lg);
    transform: translateY(-2px);
}

.twa-quick-action-card .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--twa-primary);
    margin-bottom: 10px;
}

.twa-quick-action-card h3 {
    margin: 0;
    font-size: 16px;
    color: var(--twa-dark);
}

/* Tours Grid */
.twa-tours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--twa-gap);
}

.twa-tour-card {
    background: white;
    border-radius: var(--twa-border-radius);
    box-shadow: var(--twa-shadow);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.twa-tour-card:hover {
    box-shadow: var(--twa-shadow-lg);
    transform: translateY(-4px);
}

.twa-tour-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}

.twa-tour-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.twa-completed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.twa-completed-badge .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.twa-tour-info {
    padding: 20px;
}

.twa-tour-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.twa-tour-meta {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #6b7280;
}

.twa-tour-highlights {
    margin: 15px 0;
    font-size: 14px;
}

.twa-tour-highlights strong {
    display: block;
    margin-bottom: 5px;
}

.twa-tour-highlights ul {
    margin: 0;
    padding-left: 20px;
}

.twa-tour-highlights li {
    margin-bottom: 3px;
}

.twa-tour-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.twa-tour-completion {
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

/* Buttons */
.twa-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: var(--twa-border-radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.twa-btn-primary {
    background: var(--twa-primary);
    color: white;
}

.twa-btn-primary:hover {
    filter: brightness(0.9);
    color: white;
}

.twa-btn-outline {
    background: white;
    border: 2px solid var(--twa-primary);
    color: var(--twa-primary);
}

.twa-btn-outline:hover {
    background: var(--twa-primary);
    color: white;
}

.twa-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.twa-btn-block {
    width: 100%;
    justify-content: center;
}

.twa-complete-toggle {
    width: 100%;
    padding: 10px;
    background: white;
    border: 2px solid var(--twa-primary);
    color: var(--twa-primary);
    border-radius: var(--twa-border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.twa-complete-toggle:hover {
    background: var(--twa-primary);
    color: white;
}

.twa-complete-toggle.completed {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.twa-complete-toggle.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Documents Grid */
.twa-documents-grid {
    display: grid;
    gap: var(--twa-gap);
}

.twa-document-card {
    background: white;
    padding: 20px;
    border-radius: var(--twa-border-radius-sm);
    box-shadow: var(--twa-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.twa-document-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #fee2e2;
    border-radius: var(--twa-border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.twa-document-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #dc2626;
}

.twa-document-info {
    flex: 1;
}

.twa-document-info h4 {
    margin: 0 0 5px 0;
}

.twa-document-meta {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Empty State */
.twa-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.twa-empty-state .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.twa-empty-state h3 {
    margin: 0 0 10px 0;
    color: var(--twa-dark);
}

.twa-empty-state p {
    margin: 0 0 20px 0;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 1199px) {
    .twa-continue-cards,
    .twa-tours-grid,
    .twa-quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .twa-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .twa-continue-cards,
    .twa-tours-grid,
    .twa-quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .twa-continue-info h3 {
        font-size: 16px;
        min-height: auto;
    }

    .twa-continue-info {
        padding: 20px;
    }

    .twa-play-overlay {
        width: 70px;
        height: 70px;
    }

    .twa-play-overlay svg {
        width: 36px;
        height: 36px;
    }

    .twa-play-text {
        font-size: 12px;
        bottom: -30px;
    }

    .twa-continue-card:hover .twa-play-text {
        bottom: -26px;
    }

    .twa-welcome-banner {
        flex-direction: column;
        text-align: center;
    }

    .twa-tab-label {
        display: none;
    }

    .twa-document-card {
        flex-direction: column;
        text-align: center;
    }

    .twa-profile-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .twa-progress-circle {
        width: 150px;
        height: 150px;
        font-size: 32px;
    }

    .twa-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .twa-modal-header,
    .twa-modal-body {
        padding: 20px;
    }

    .twa-modal-footer {
        flex-direction: column-reverse;
    }

    .twa-modal-footer .twa-btn {
        width: 100%;
    }
}

/* Profile Tab Styles */
.twa-tab-profile h2 {
    margin-bottom: 30px;
}

.twa-profile-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.twa-profile-card,
.twa-profile-stats {
    background: white;
    padding: 30px;
    border-radius: var(--twa-border-radius);
    box-shadow: var(--twa-shadow);
}

.twa-profile-card h3,
.twa-profile-stats h3 {
    margin: 0 0 25px 0;
    font-size: 20px;
    color: var(--twa-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.twa-profile-field {
    margin-bottom: 20px;
}

.twa-profile-field:last-of-type {
    margin-bottom: 0;
}

.twa-profile-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 8px;
}

.twa-profile-field p {
    margin: 0;
    font-size: 16px;
    color: var(--twa-dark);
    font-weight: 500;
}

.twa-profile-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.twa-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.twa-badge-primary {
    background: #eff6ff;
    color: var(--twa-primary);
}

/* Profile Progress Circle */
.twa-progress-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--twa-primary) 0%, var(--twa-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    box-shadow: var(--twa-shadow-lg);
    position: relative;
}

.twa-progress-value {
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.twa-progress-circle p {
    margin: 0;
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.twa-profile-stat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.twa-profile-stat-item {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: var(--twa-border-radius-sm);
}

.twa-profile-stat-item .twa-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--twa-primary);
    margin-bottom: 5px;
}

.twa-profile-stat-item .twa-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modals */
.twa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.twa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 24, 43, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.twa-modal-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 500px;
    width: 90%;
    background: white !important;
    border-radius: var(--twa-border-radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: twa-modal-slide-in 0.3s ease-out;
    z-index: 10000 !important;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes twa-modal-slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, -55%) !important;
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) !important;
    }
}

.twa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e5e7eb;
}

.twa-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--twa-dark);
}

.twa-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    color: #6b7280;
}

.twa-modal-close:hover {
    background: #f3f4f6;
    color: var(--twa-dark);
}

.twa-modal-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.twa-modal-body {
    padding: 30px;
}

.twa-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Profile Form Styles */
.twa-profile-form {
    width: 100%;
}

.twa-form-group {
    margin-bottom: 20px;
}

.twa-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--twa-dark);
    margin-bottom: 8px;
}

.twa-form-group label .required {
    color: #ef4444;
}

.twa-form-group input[type="text"],
.twa-form-group input[type="email"],
.twa-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--twa-border-radius-sm);
    font-size: 15px;
    transition: all 0.3s;
}

.twa-form-group input:focus {
    outline: none;
    border-color: var(--twa-primary);
    box-shadow: 0 0 0 3px rgba(43, 100, 204, 0.1);
}

.twa-form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.twa-form-message {
    margin-top: 15px;
    margin-bottom: 0;
}

.twa-form-message p {
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--twa-border-radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.twa-form-message p.success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #10b981;
}

.twa-form-message p.error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Prevent body scroll when modal is open */
body.twa-modal-open {
    overflow: hidden;
}

/* Inline Edit Sections */
.twa-edit-section {
    margin-top: 30px;
    background: white;
    border-radius: var(--twa-border-radius);
    box-shadow: var(--twa-shadow-lg);
    border: 2px solid var(--twa-primary);
    overflow: hidden;
    animation: twa-slide-down 0.3s ease-out;
}

@keyframes twa-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.twa-edit-section-header {
    background: linear-gradient(135deg, var(--twa-primary) 0%, var(--twa-dark) 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.twa-edit-section-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.twa-edit-section-header .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.twa-close-section {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.twa-close-section:hover {
    background: rgba(255, 255, 255, 0.3);
}

.twa-close-section .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.twa-edit-section-body {
    padding: 30px;
}

/* Form Rows */
.twa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.twa-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.twa-profile-actions .twa-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsive for edit sections */
@media (max-width: 767px) {
    .twa-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .twa-edit-section-header {
        padding: 15px 20px;
    }

    .twa-edit-section-body {
        padding: 20px;
    }

    .twa-form-actions {
        flex-direction: column-reverse;
    }

    .twa-form-actions .twa-btn {
        width: 100%;
    }
}


/* Extra Custom CSS */
.twa-continue-watching {
    padding: 30px 0;
}
.twa-tab-content.twa-tab-overview {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0px 30px;
}
/* ========================================
   Notifications Tab Styles
   ======================================== */

/* Notifications Header */
.twa-notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.twa-notifications-header h2 {
    margin: 0;
}

.twa-notifications-actions {
    display: flex;
    gap: 10px;
}

/* Notifications List */
.twa-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Notification Card */
.twa-notification-card {
    background: white;
    border-radius: var(--twa-border-radius);
    box-shadow: var(--twa-shadow);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
}

.twa-notification-card:hover {
    box-shadow: var(--twa-shadow-lg);
}

.twa-notification-unread {
    border-left: 4px solid var(--twa-primary);
    background: linear-gradient(to right, #eff6ff 0%, white 100%);
}

.twa-notification-read {
    opacity: 0.7;
}

/* Notification Icon */
.twa-notification-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.twa-notification-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.twa-notification-icon.order {
    background: #fef3c7;
}

.twa-notification-icon.order .dashicons {
    color: #f59e0b;
}

.twa-notification-icon.success {
    background: #d1fae5;
}

.twa-notification-icon.success .dashicons {
    color: #10b981;
}

.twa-notification-icon.warning {
    background: #fee2e2;
}

.twa-notification-icon.warning .dashicons {
    color: #ef4444;
}

.twa-notification-icon.info {
    background: #dbeafe;
}

.twa-notification-icon.info .dashicons {
    color: #3b82f6;
}

/* Notification Content */
.twa-notification-content {
    flex: 1;
}

.twa-notification-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 15px;
}

.twa-notification-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--twa-dark);
    line-height: 1.4;
}

.twa-notification-time {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
}

.twa-notification-message {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.twa-notification-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.twa-notification-tag {
    display: inline-flex;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

/* Notification Actions */
.twa-notification-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.twa-notification-mark-read,
.twa-notification-delete {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.twa-notification-mark-read:hover {
    background: #d1fae5;
    color: #10b981;
}

.twa-notification-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.twa-notification-mark-read .dashicons,
.twa-notification-delete .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Notification Badge */
.twa-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 767px) {
    .twa-notifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .twa-notification-card {
        padding: 15px;
        gap: 15px;
    }

    .twa-notification-icon {
        width: 40px;
        height: 40px;
    }

    .twa-notification-icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .twa-notification-header-row {
        flex-direction: column;
        gap: 5px;
    }

    .twa-notification-actions {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

/* Pill and XL button variants for checkout CTA */
.twa-btn-pill {
    border-radius: 9999px;
}

.twa-btn-xl {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Icon spacing inside CTA */
.twa-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Disabled-like style for owned state */
.twa-btn-disabled {
    background: #4338ca; /* similar to design screenshot */
    color: #fff;
    opacity: 0.95;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.twa-btn-disabled .dashicons {
    margin-right: 8px;
}

/* Ensure icons have spacing on links as well */
.twa-btn-pill .dashicons {
    margin-right: 8px;
}
