/**
 * TipTree Booking - Artist Dashboard Styles
 * 
 * @package TipTree_Booking
 * @since 1.2.0
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --ttbk-gold: #FBB03B;
    --ttbk-gold-dark: #E09A2F;
    --ttbk-gold-light: #FFC966;
    --ttbk-dark: #1a1a2e;
    --ttbk-darker: #0f0f1a;
    --ttbk-gray-100: #f8f9fa;
    --ttbk-gray-200: #e9ecef;
    --ttbk-gray-300: #dee2e6;
    --ttbk-gray-400: #ced4da;
    --ttbk-gray-500: #adb5bd;
    --ttbk-gray-600: #6c757d;
    --ttbk-gray-700: #495057;
    --ttbk-gray-800: #343a40;
    --ttbk-gray-900: #212529;
    --ttbk-green: #28a745;
    --ttbk-green-light: #d4edda;
    --ttbk-yellow: #ffc107;
    --ttbk-yellow-light: #fff3cd;
    --ttbk-red: #dc3545;
    --ttbk-red-light: #f8d7da;
    --ttbk-blue: #007bff;
    --ttbk-blue-light: #cce5ff;
    --ttbk-radius: 12px;
    --ttbk-radius-sm: 8px;
    --ttbk-radius-lg: 16px;
    --ttbk-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --ttbk-shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --ttbk-transition: 0.2s ease;
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */
.ttbk-artist-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--ttbk-gray-900);
    background: var(--ttbk-gray-100);
    min-height: 100vh;
    padding-bottom: 80px; /* Space for bottom nav */
}

.ttbk-artist-dashboard * {
    box-sizing: border-box;
}

.ttbk-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.ttbk-artist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--ttbk-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ttbk-artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ttbk-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ttbk-artist-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ttbk-artist-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.ttbk-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ttbk-tier-free { background: var(--ttbk-gray-200); color: var(--ttbk-gray-700); }
.ttbk-tier-starter { background: var(--ttbk-blue-light); color: var(--ttbk-blue); }
.ttbk-tier-growth { background: var(--ttbk-gold-light); color: var(--ttbk-gold-dark); }
.ttbk-tier-unlimited { background: var(--ttbk-gold); color: white; }

/* Usage Meter */
.ttbk-usage-meter {
    text-align: right;
}

.ttbk-usage-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ttbk-usage-count {
    font-size: 14px;
    font-weight: 600;
}

.ttbk-usage-label {
    font-size: 11px;
    color: var(--ttbk-gray-600);
}

.ttbk-usage-bar {
    width: 80px;
    height: 6px;
    background: var(--ttbk-gray-200);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.ttbk-usage-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ttbk-usage-green { background: var(--ttbk-green); }
.ttbk-usage-yellow { background: var(--ttbk-yellow); }
.ttbk-usage-red { background: var(--ttbk-red); }

.ttbk-upgrade-link {
    font-size: 11px;
    color: var(--ttbk-gold);
    text-decoration: none;
    display: block;
    margin-top: 4px;
}

.ttbk-upgrade-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Tab Navigation
   ========================================================================== */
.ttbk-tabs {
    display: none; /* Hidden on mobile, shown on desktop */
    background: white;
    border-bottom: 1px solid var(--ttbk-gray-200);
    padding: 0 20px;
}

@media (min-width: 768px) {
    .ttbk-tabs {
        display: flex;
        gap: 8px;
    }
}

.ttbk-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: var(--ttbk-gray-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--ttbk-transition);
}

.ttbk-tab:hover {
    color: var(--ttbk-gray-900);
}

.ttbk-tab.active {
    color: var(--ttbk-gold);
    border-bottom-color: var(--ttbk-gold);
}

/* Mobile Bottom Navigation */
.ttbk-bottom-nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--ttbk-gray-200);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 100;
}

@media (min-width: 768px) {
    .ttbk-bottom-nav {
        display: none;
    }
    
    .ttbk-artist-dashboard {
        padding-bottom: 0;
    }
}

.ttbk-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--ttbk-gray-500);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: var(--ttbk-transition);
}

.ttbk-bottom-nav-item .ttbk-icon {
    width: 24px;
    height: 24px;
}

.ttbk-bottom-nav-item.active {
    color: var(--ttbk-gold);
}

/* ==========================================================================
   Tab Content
   ========================================================================== */
.ttbk-tab-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   Swipe Cards - Discover View
   ========================================================================== */
.ttbk-discover-view {
    padding: 0;
}

.ttbk-discover-filters {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ttbk-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--ttbk-gray-300);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ttbk-gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ttbk-transition);
}

.ttbk-filter-btn:hover,
.ttbk-filter-btn.active {
    background: var(--ttbk-gold);
    border-color: var(--ttbk-gold);
    color: white;
}

.ttbk-filter-btn .ttbk-icon {
    width: 16px;
    height: 16px;
}

/* Swipe Container */
.ttbk-swipe-container {
    position: relative;
    height: calc(100vh - 280px);
    min-height: 400px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .ttbk-swipe-container {
        height: calc(100vh - 320px);
    }
}

/* Card Stack */
.ttbk-card-stack {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 100%;
    max-height: 500px;
}

/* Individual Card */
.ttbk-swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: var(--ttbk-radius-lg);
    box-shadow: var(--ttbk-shadow-lg);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transform-origin: center bottom;
    transition: box-shadow 0.2s ease;
}

.ttbk-swipe-card:active {
    cursor: grabbing;
}

.ttbk-swipe-card:not(.active) {
    pointer-events: none;
}

/* Stack effect - cards behind */
.ttbk-swipe-card:nth-last-child(2) {
    transform: scale(0.95) translateY(10px);
}

.ttbk-swipe-card:nth-last-child(3) {
    transform: scale(0.9) translateY(20px);
}

.ttbk-swipe-card:nth-last-child(n+4) {
    display: none;
}

/* Card Image */
.ttbk-card-image {
    position: relative;
    height: 55%;
    background-size: cover;
    background-position: center;
}

.ttbk-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}

/* Swipe Indicators */
.ttbk-swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.ttbk-swipe-apply {
    right: 20px;
    background: var(--ttbk-green);
    color: white;
    border: 3px solid white;
}

.ttbk-swipe-dismiss {
    left: 20px;
    background: var(--ttbk-red);
    color: white;
    border: 3px solid white;
}

.ttbk-swipe-save {
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background: var(--ttbk-blue);
    color: white;
    border: 3px solid white;
}

.ttbk-swipe-card.swiping-right .ttbk-swipe-apply,
.ttbk-swipe-card.swiping-left .ttbk-swipe-dismiss,
.ttbk-swipe-card.swiping-up .ttbk-swipe-save {
    opacity: 1;
}

/* Card Content */
.ttbk-card-content {
    padding: 16px 20px;
}

.ttbk-card-venue {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--ttbk-gray-900);
}

.ttbk-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ttbk-card-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ttbk-gray-700);
}

.ttbk-card-detail .ttbk-icon {
    width: 16px;
    height: 16px;
    color: var(--ttbk-gray-500);
}

.ttbk-card-rate {
    font-weight: 600;
    color: var(--ttbk-green);
}

.ttbk-negotiable-badge {
    background: var(--ttbk-green-light);
    color: var(--ttbk-green);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.ttbk-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.ttbk-tag {
    background: var(--ttbk-gray-200);
    color: var(--ttbk-gray-700);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* Card Expand Button */
.ttbk-card-expand {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ttbk-gray-100);
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
}

.ttbk-card-expand .ttbk-icon {
    transition: transform 0.2s ease;
}

.ttbk-swipe-card.expanded .ttbk-card-expand .ttbk-icon {
    transform: rotate(180deg);
}

/* Expanded Details */
.ttbk-card-expanded {
    display: none;
    padding: 16px 20px;
    border-top: 1px solid var(--ttbk-gray-200);
    background: var(--ttbk-gray-50);
}

.ttbk-swipe-card.expanded .ttbk-card-expanded {
    display: block;
}

.ttbk-expanded-section {
    margin-bottom: 16px;
}

.ttbk-expanded-section:last-child {
    margin-bottom: 0;
}

.ttbk-expanded-section h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ttbk-gray-500);
    margin: 0 0 8px;
}

.ttbk-expanded-section p {
    font-size: 14px;
    color: var(--ttbk-gray-700);
    margin: 0;
    line-height: 1.5;
}

/* Action Buttons */
.ttbk-swipe-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.ttbk-action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ttbk-action-btn:hover {
    transform: scale(1.1);
}

.ttbk-action-btn:active {
    transform: scale(0.95);
}

.ttbk-action-btn .ttbk-icon {
    width: 28px;
    height: 28px;
}

.ttbk-action-dismiss {
    background: white;
    box-shadow: 0 2px 10px rgba(220,53,69,0.3);
    color: var(--ttbk-red);
}

.ttbk-action-save {
    background: white;
    box-shadow: 0 2px 10px rgba(0,123,255,0.3);
    color: var(--ttbk-blue);
    width: 50px;
    height: 50px;
}

.ttbk-action-save .ttbk-icon {
    width: 22px;
    height: 22px;
}

.ttbk-action-apply {
    background: var(--ttbk-green);
    box-shadow: 0 2px 10px rgba(40,167,69,0.4);
    color: white;
}

/* Keyboard Shortcuts Hint */
.ttbk-shortcuts-hint {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--ttbk-gray-500);
}

@media (min-width: 768px) {
    .ttbk-shortcuts-hint {
        display: flex;
    }
}

.ttbk-shortcuts-hint kbd {
    background: var(--ttbk-gray-200);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
}

/* Events Counter */
.ttbk-events-counter {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--ttbk-gray-500);
}

.ttbk-counter-value {
    font-weight: 600;
    color: var(--ttbk-gold);
}

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

.ttbk-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.ttbk-empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ttbk-gray-900);
}

.ttbk-empty-state p {
    font-size: 14px;
    color: var(--ttbk-gray-600);
    margin: 0 0 20px;
}

/* ==========================================================================
   Applications View
   ========================================================================== */
.ttbk-status-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.ttbk-status-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--ttbk-gray-300);
    border-radius: var(--ttbk-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--ttbk-gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ttbk-transition);
}

.ttbk-status-tab:hover,
.ttbk-status-tab.active {
    background: var(--ttbk-gold);
    border-color: var(--ttbk-gold);
    color: white;
}

.ttbk-count {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    background: var(--ttbk-gray-200);
    color: var(--ttbk-gray-700);
}

.ttbk-status-tab.active .ttbk-count {
    background: rgba(255,255,255,0.3);
    color: white;
}

.ttbk-count-green { background: var(--ttbk-green-light); color: var(--ttbk-green); }
.ttbk-count-yellow { background: var(--ttbk-yellow-light); color: var(--ttbk-gray-800); }

/* Status Groups */
.ttbk-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ttbk-gray-700);
    margin: 24px 0 12px;
}

.ttbk-group-header:first-child {
    margin-top: 0;
}

.ttbk-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ttbk-status-green { background: var(--ttbk-green); }
.ttbk-status-yellow { background: var(--ttbk-yellow); }
.ttbk-status-blue { background: var(--ttbk-blue); }
.ttbk-status-gray { background: var(--ttbk-gray-400); }

.ttbk-group-count {
    font-weight: 400;
    color: var(--ttbk-gray-500);
}

/* Application Cards */
.ttbk-application-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ttbk-application-card {
    background: white;
    border-radius: var(--ttbk-radius);
    box-shadow: var(--ttbk-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    padding: 12px;
    align-items: start;
}

.ttbk-app-image img {
    width: 60px;
    height: 60px;
    border-radius: var(--ttbk-radius-sm);
    object-fit: cover;
}

.ttbk-app-content {
    min-width: 0;
}

.ttbk-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ttbk-app-venue {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.ttbk-status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.ttbk-status-badge.ttbk-status-green { background: var(--ttbk-green-light); color: var(--ttbk-green); }
.ttbk-status-badge.ttbk-status-yellow { background: var(--ttbk-yellow-light); color: var(--ttbk-gray-800); }
.ttbk-status-badge.ttbk-status-blue { background: var(--ttbk-blue-light); color: var(--ttbk-blue); }
.ttbk-status-badge.ttbk-status-gray { background: var(--ttbk-gray-200); color: var(--ttbk-gray-600); }

.ttbk-app-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--ttbk-gray-600);
}

.ttbk-app-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ttbk-app-details .ttbk-icon {
    width: 14px;
    height: 14px;
}

.ttbk-original-rate {
    text-decoration: line-through;
    color: var(--ttbk-gray-500);
}

.ttbk-counter-rate {
    color: var(--ttbk-green);
    font-weight: 600;
}

.ttbk-counter-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px;
    background: var(--ttbk-green-light);
    border-radius: var(--ttbk-radius-sm);
    font-size: 12px;
    color: var(--ttbk-green);
}

.ttbk-counter-note {
    color: var(--ttbk-gray-600);
    font-style: italic;
}

/* App Actions */
.ttbk-app-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .ttbk-app-actions {
        flex-direction: row;
        align-items: center;
    }
}

/* Expanded App Details */
.ttbk-app-expanded {
    display: none;
    grid-column: 1 / -1;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--ttbk-gray-200);
}

.ttbk-application-card.expanded .ttbk-app-expanded {
    display: block;
}

.ttbk-expanded-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ttbk-expanded-col h5 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ttbk-gray-500);
    margin: 0 0 8px;
}

.ttbk-expanded-col p {
    font-size: 13px;
    margin: 4px 0;
}

.ttbk-muted {
    color: var(--ttbk-gray-500);
    font-style: italic;
}

/* Timeline */
.ttbk-app-timeline {
    margin-top: 16px;
}

.ttbk-app-timeline h5 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ttbk-gray-500);
    margin: 0 0 12px;
}

.ttbk-app-timeline ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ttbk-app-timeline li {
    position: relative;
    padding-left: 24px;
    padding-bottom: 12px;
    font-size: 13px;
    display: flex;
    gap: 8px;
}

.ttbk-app-timeline li:last-child {
    padding-bottom: 0;
}

.ttbk-app-timeline li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    bottom: 0;
    width: 1px;
    background: var(--ttbk-gray-300);
}

.ttbk-app-timeline li:last-child::before {
    display: none;
}

.ttbk-timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ttbk-gray-400);
    border: 2px solid white;
}

.ttbk-timeline-success {
    background: var(--ttbk-green);
}

.ttbk-timeline-text {
    flex: 1;
}

.ttbk-timeline-date {
    color: var(--ttbk-gray-500);
}

/* ==========================================================================
   Gigs View
   ========================================================================== */
.ttbk-view-toggle {
    display: flex;
    gap: 4px;
    background: var(--ttbk-gray-200);
    padding: 4px;
    border-radius: var(--ttbk-radius-sm);
    width: fit-content;
    margin-bottom: 20px;
}

.ttbk-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ttbk-gray-600);
    cursor: pointer;
    transition: var(--ttbk-transition);
}

.ttbk-toggle-btn.active {
    background: white;
    color: var(--ttbk-gray-900);
    box-shadow: var(--ttbk-shadow);
}

/* Next Gig Banner */
.ttbk-next-gig-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--ttbk-gold) 0%, var(--ttbk-gold-dark) 100%);
    border-radius: var(--ttbk-radius);
    color: white;
    margin-bottom: 20px;
}

.ttbk-next-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.ttbk-next-gig-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}

.ttbk-next-gig-info p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.ttbk-next-gig-actions {
    display: flex;
    gap: 8px;
}

.ttbk-next-gig-actions .ttbk-btn {
    white-space: nowrap;
}

/* Gigs Stats */
.ttbk-gigs-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ttbk-stat-card {
    background: white;
    padding: 16px;
    border-radius: var(--ttbk-radius-sm);
    text-align: center;
    box-shadow: var(--ttbk-shadow);
}

.ttbk-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--ttbk-gold);
}

.ttbk-stat-label {
    font-size: 12px;
    color: var(--ttbk-gray-600);
}

/* Calendar */
.ttbk-gigs-calendar-wrapper {
    background: white;
    border-radius: var(--ttbk-radius);
    padding: 16px;
    box-shadow: var(--ttbk-shadow);
}

#ttbk-gigs-calendar .fc-event {
    background: var(--ttbk-gold);
    border-color: var(--ttbk-gold);
    cursor: pointer;
}

/* Gigs List */
.ttbk-gigs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ttbk-month-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--ttbk-gray-600);
    margin: 16px 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ttbk-gray-200);
}

.ttbk-month-header:first-child {
    margin-top: 0;
}

.ttbk-gig-card {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 12px 16px;
    border-radius: var(--ttbk-radius-sm);
    box-shadow: var(--ttbk-shadow);
}

.ttbk-gig-date {
    text-align: center;
}

.ttbk-gig-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--ttbk-gold);
    line-height: 1;
}

.ttbk-gig-weekday {
    font-size: 11px;
    color: var(--ttbk-gray-500);
    text-transform: uppercase;
}

.ttbk-gig-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.ttbk-gig-time,
.ttbk-gig-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ttbk-gray-600);
    margin: 0;
}

.ttbk-gig-time .ttbk-icon,
.ttbk-gig-location .ttbk-icon {
    width: 14px;
    height: 14px;
}

.ttbk-gig-rate {
    font-size: 16px;
    font-weight: 600;
    color: var(--ttbk-green);
}

.ttbk-gig-actions {
    display: flex;
    gap: 8px;
}

/* ==========================================================================
   Profile View
   ========================================================================== */
.ttbk-profile-completion {
    background: var(--ttbk-gold-light);
    padding: 16px;
    border-radius: var(--ttbk-radius);
    margin-bottom: 20px;
}

.ttbk-completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ttbk-completion-header h4 {
    margin: 0;
    font-size: 14px;
}

.ttbk-completion-percent {
    font-weight: 700;
    color: var(--ttbk-gold-dark);
}

.ttbk-completion-bar {
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    overflow: hidden;
}

.ttbk-completion-fill {
    height: 100%;
    background: var(--ttbk-gold);
    border-radius: 4px;
}

.ttbk-completion-hint {
    font-size: 13px;
    color: var(--ttbk-gray-700);
    margin: 8px 0 0;
}

/* Profile Card */
.ttbk-profile-card {
    background: white;
    border-radius: var(--ttbk-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--ttbk-shadow);
    margin-bottom: 20px;
}

.ttbk-profile-header {
    margin-bottom: 16px;
}

.ttbk-profile-photo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.ttbk-profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.ttbk-edit-photo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--ttbk-gold);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.ttbk-edit-photo .ttbk-icon {
    width: 16px;
    height: 16px;
}

.ttbk-profile-name-section h2 {
    font-size: 22px;
    margin: 0 0 8px;
}

.ttbk-profile-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ttbk-profile-bio {
    font-size: 14px;
    color: var(--ttbk-gray-600);
    line-height: 1.5;
    margin: 0 0 16px;
}

/* Profile Stats */
.ttbk-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* Profile Sections */
.ttbk-profile-section {
    background: white;
    border-radius: var(--ttbk-radius);
    padding: 20px;
    box-shadow: var(--ttbk-shadow);
    margin-bottom: 16px;
}

.ttbk-profile-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
}

/* Subscription Card */
.ttbk-subscription-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ttbk-sub-tier {
    font-size: 18px;
    font-weight: 600;
}

.ttbk-sub-price {
    font-size: 14px;
    color: var(--ttbk-gray-600);
    margin-left: 8px;
}

.ttbk-sub-limits p {
    font-size: 14px;
    color: var(--ttbk-gray-600);
    margin: 4px 0;
}

/* Locked Feature */
.ttbk-locked-feature {
    text-align: center;
    padding: 20px;
    background: var(--ttbk-gray-100);
    border-radius: var(--ttbk-radius-sm);
}

.ttbk-locked-feature .ttbk-icon {
    width: 32px;
    height: 32px;
    color: var(--ttbk-gray-400);
    margin-bottom: 8px;
}

.ttbk-locked-feature p {
    font-size: 14px;
    color: var(--ttbk-gray-600);
    margin: 0 0 12px;
}

/* Account Links */
.ttbk-account-links {
    display: flex;
    flex-direction: column;
}

.ttbk-account-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ttbk-gray-200);
    color: var(--ttbk-gray-700);
    text-decoration: none;
    font-size: 15px;
    transition: var(--ttbk-transition);
}

.ttbk-account-link:last-child {
    border-bottom: none;
}

.ttbk-account-link:hover {
    color: var(--ttbk-gold);
}

.ttbk-icon-chevron {
    margin-left: auto;
    width: 16px;
    height: 16px;
}

.ttbk-account-link-danger {
    color: var(--ttbk-red);
}

.ttbk-account-link-danger:hover {
    color: var(--ttbk-red);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ttbk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--ttbk-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ttbk-transition);
    border: none;
}

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

.ttbk-btn-primary:hover {
    background: var(--ttbk-gold-dark);
}

.ttbk-btn-outline {
    background: white;
    color: var(--ttbk-gray-700);
    border: 1px solid var(--ttbk-gray-300);
}

.ttbk-btn-outline:hover {
    border-color: var(--ttbk-gold);
    color: var(--ttbk-gold);
}

.ttbk-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.ttbk-btn-block {
    width: 100%;
}

.ttbk-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.ttbk-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.6) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow: auto !important;
}

.ttbk-modal.active {
    display: flex !important;
}

.ttbk-modal-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    max-width: 500px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    margin: auto !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
}

.ttbk-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    color: #6c757d !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background 0.2s !important;
}

.ttbk-modal-close:hover {
    background: rgba(0,0,0,0.1) !important;
    color: #333 !important;
}

.ttbk-modal h3 {
    font-size: 20px !important;
    margin: 0 0 8px !important;
    color: #212529 !important;
}

.ttbk-modal-subtitle {
    font-size: 14px !important;
    color: #6c757d !important;
    margin: 0 0 20px !important;
}

.ttbk-modal-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 24px !important;
    justify-content: flex-end !important;
}

/* Upgrade Modal */
.ttbk-upgrade-modal-content {
    max-width: 700px !important;
}

.ttbk-tier-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 16px !important;
}

.ttbk-tier-card {
    position: relative !important;
    padding: 20px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    text-align: center !important;
}

.ttbk-tier-card.current {
    border-color: #FBB03B !important;
    background: #fafafa !important;
}

.ttbk-popular-badge {
    position: absolute !important;
    top: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #FBB03B !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.ttbk-tier-card h4 {
    font-size: 16px;
    margin: 0 0 8px;
}

.ttbk-tier-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--ttbk-gold);
    margin-bottom: 16px;
}

.ttbk-tier-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--ttbk-gray-600);
}

.ttbk-tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.ttbk-tier-features li {
    font-size: 14px;
    color: var(--ttbk-gray-600);
    margin: 8px 0;
}

.ttbk-current-plan {
    font-size: 13px;
    color: var(--ttbk-gray-500);
    font-style: italic;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.ttbk-form-group {
    margin-bottom: 16px;
}

.ttbk-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.ttbk-form-group input,
.ttbk-form-group select,
.ttbk-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ttbk-gray-300);
    border-radius: var(--ttbk-radius-sm);
    font-size: 14px;
    transition: var(--ttbk-transition);
}

.ttbk-form-group input:focus,
.ttbk-form-group select:focus,
.ttbk-form-group textarea:focus {
    outline: none;
    border-color: var(--ttbk-gold);
    box-shadow: 0 0 0 3px rgba(251,176,59,0.2);
}

.ttbk-rate-input {
    position: relative;
}

.ttbk-currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ttbk-gray-500);
}

.ttbk-rate-input input {
    padding-left: 28px;
}

.ttbk-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ttbk-date-range input {
    flex: 1;
}

.ttbk-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ttbk-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ttbk-checkbox input {
    width: auto;
}

.ttbk-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--ttbk-gray-500);
    margin-top: 4px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes ttbk-slide-out-right {
    to {
        transform: translateX(150%) rotate(15deg);
        opacity: 0;
    }
}

@keyframes ttbk-slide-out-left {
    to {
        transform: translateX(-150%) rotate(-15deg);
        opacity: 0;
    }
}

@keyframes ttbk-slide-out-up {
    to {
        transform: translateY(-150%);
        opacity: 0;
    }
}

.ttbk-swipe-card.swiping-out-right {
    animation: ttbk-slide-out-right 0.3s ease-out forwards;
}

.ttbk-swipe-card.swiping-out-left {
    animation: ttbk-slide-out-left 0.3s ease-out forwards;
}

.ttbk-swipe-card.swiping-out-up {
    animation: ttbk-slide-out-up 0.3s ease-out forwards;
}

@keyframes ttbk-success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ttbk-action-btn.pulse {
    animation: ttbk-success-pulse 0.3s ease;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
    .ttbk-application-card {
        grid-template-columns: 50px 1fr;
    }
    
    .ttbk-app-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
        padding-top: 12px;
        border-top: 1px solid var(--ttbk-gray-200);
    }
    
    .ttbk-gig-card {
        grid-template-columns: 50px 1fr;
    }
    
    .ttbk-gig-rate,
    .ttbk-gig-actions {
        grid-column: 2;
    }
    
    .ttbk-expanded-grid {
        grid-template-columns: 1fr;
    }
    
    .ttbk-tier-cards {
        grid-template-columns: 1fr;
    }
}
