/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.bbb-panel-active {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

body.bbb-panel-active #main,
body.bbb-panel-active #content,
body.bbb-panel-active .site-header,
body.bbb-panel-active .site-footer,
body.bbb-panel-active .site-main,
body.bbb-panel-active aside,
body.bbb-panel-active nav:not(.bbb-nav) {
    display: none !important;
}

/* Main Panel Container */
.bbb-panel-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 999999;
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bbb-user-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f7fa;
    direction: rtl;
}

/* Header */
.bbb-panel-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.bbb-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.bbb-logo {
    font-size: 0.9375rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bbb-logo::before {
    content: "📚";
    font-size: 1.3rem;
}

.bbb-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bbb-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.bbb-logout-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.bbb-logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Main Content Area */
.bbb-panel-main {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 1.25rem;
    gap: 1.25rem;
}

/* Sidebar */
.bbb-sidebar {
    width: 280px;
    background: white;
    border-radius: 15px;
    padding: 0.9375rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.bbb-sidebar h2 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #e0e7ff;
}

.bbb-menu {
    list-style: none;
}

.bbb-menu li {
    margin-bottom: 0.5rem;
}

.bbb-menu a {
    display: flex;
    align-items: center;
    padding: 0.625rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
    gap: 0.75rem;
}

.bbb-menu a::before {
    content: "▸";
    color: #667eea;
    font-size: 1.2rem;
}

.bbb-menu a:hover,
.bbb-menu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(-5px);
}

.bbb-menu a:hover::before,
.bbb-menu a.active::before {
    color: white;
}

/* Content Area */
.bbb-content {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.bbb-content h1 {
    color: #1e3c72;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 1rem;
    line-height: 1.75;
}

/* Login/Register Form */
.bbb-auth-container {
    max-width: 600px;
    margin: 3rem auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.bbb-user-type-selection {
    margin-bottom: 2.5rem;
}

.bbb-user-type-selection h2 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.bbb-user-type-selection > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bbb-user-type-btn {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bbb-user-type-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.bbb-user-type-btn:active {
    transform: translateY(-2px);
}

.bbb-user-type-btn[data-type="attendee"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.bbb-user-type-btn[data-type="attendee"]:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.bbb-user-type-btn > div:first-child {
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
    line-height: 1 !important;
}

.bbb-user-type-btn > div:last-child {
    font-size: 1.1rem;
    text-align: center;
}

.bbb-auth-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bbb-auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.bbb-auth-section h3 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.bbb-auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.bbb-auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.bbb-auth-form {
    display: none;
}

.bbb-auth-form.active {
    display: block;
}

.bbb-form-group {
    margin-bottom: 1rem;
}

.bbb-form-group:last-of-type {
    margin-bottom: 0;
}

.bbb-form-group label {
    display: block;
    margin-bottom: 0.375rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

.bbb-form-group input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.bbb-form-group small {
    margin-top: 0.375rem;
}

.bbb-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bbb-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.75rem;
    box-sizing: border-box;
    line-height: normal !important;
}

.bbb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.bbb-btn:active {
    transform: translateY(0);
}

.bbb-btn-secondary {
    width: 100%;
    padding: 0.875rem !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.75rem;
    box-sizing: border-box;
    line-height: normal !important;
}

.bbb-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.bbb-btn-secondary:active {
    transform: translateY(0);
}

/* OTP Send Button - Blue */
#send-otp-btn,
#attendee-send-otp-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    width: 100% !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    margin-top: 0.5rem !important;
}

#send-otp-btn:hover,
#attendee-send-otp-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3) !important;
}

#send-otp-btn:active,
#attendee-send-otp-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
}

#send-otp-btn:disabled,
#attendee-send-otp-btn:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* OTP Toggle Button - Same size as login button, single line */
#toggle-otp-login,
#attendee-toggle-otp-login {
    font-size: 1rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 0.875rem !important;
    height: auto !important;
    min-height: auto !important;
    line-height: normal !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
    font-weight: 600 !important;
    width: auto !important; /* Override width: 100% when in flex container */
}

/* When buttons are in flex container, ensure same size */
div[style*="display: flex"] > .bbb-btn,
div[style*="display: flex"] > .bbb-btn-secondary,
div[style*="display: flex"] > #toggle-otp-login,
div[style*="display: flex"] > #attendee-toggle-otp-login {
    margin-top: 0 !important;
    padding: 0.875rem !important;
    font-size: 1rem !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    font-weight: 600 !important;
}

/* Mobile: Smaller text for buttons in flex container */
@media (max-width: 768px) {
    div[style*="display: flex"] > .bbb-btn,
    div[style*="display: flex"] > .bbb-btn-secondary,
    div[style*="display: flex"] > #toggle-otp-login,
    div[style*="display: flex"] > #attendee-toggle-otp-login {
        padding: 0.65rem 0.4rem !important;
        font-size: 0.7rem !important;
    }
}

/* Auth Messages */
#bbb-auth-message {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bbb-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.bbb-notice-error a {
    color: #991b1b;
    text-decoration: underline;
    font-weight: 600;
}

.bbb-notice-error a:hover {
    text-decoration: none;
}

.bbb-notice-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Plans Grid */
.bbb-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .bbb-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bbb-plans-grid {
        grid-template-columns: 1fr;
    }
}

.bbb-plan-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bbb-plan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.bbb-plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.bbb-plan-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 3rem;
    color: #1e3c72;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .bbb-plan-card h3 {
    font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .bbb-plan-card h3 {
        font-size: 2rem;
    }
}

.bbb-plan-price {
    font-size: 2.4rem;
    font-weight: bold;
    color: #667eea;
    margin: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

@media (max-width: 1600px) {
    .bbb-plan-price {
        font-size: 2.2rem;
    }
}

@media (max-width: 1400px) {
    .bbb-plan-price {
        font-size: 2rem;
    }
}

@media (max-width: 1200px) {
    .bbb-plan-price {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .bbb-plan-price {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .bbb-plan-price {
        font-size: 1.4rem;
    }
}

.bbb-plan-features {
    list-style: none;
    text-align: right;
    margin: 2rem 0;
    padding: 0;
}

.bbb-plan-features li {
    padding: 0.75rem 0;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bbb-plan-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.bbb-plan-actions {
    margin-top: 2rem;
}

.bbb-purchase-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    text-align: center;
}

.bbb-purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white !important;
}

/* Classes Grid */
.bbb-classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.bbb-class-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
}

.bbb-class-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
}

.bbb-class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bbb-class-card.expired {
    opacity: 0.6;
    border-color: #ef4444;
}

.bbb-class-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.bbb-class-info {
    margin: 1rem 0;
    color: #6b7280;
    font-size: 1.15rem;
    line-height: 1.8;
}

.bbb-class-info strong {
    color: #374151;
    font-size: 1.2rem;
    font-weight: 600;
}

.bbb-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.bbb-status-active {
    background: #d1fae5;
    color: #065f46;
}

.bbb-status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.bbb-status-suspended {
    background: #fef3c7;
    color: #92400e;
}

.bbb-class-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.bbb-btn-small {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bbb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bbb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.bbb-btn-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.bbb-btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Toggle Button */
.bbb-toggle-btn {
    background: #e5e7eb;
    color: #6b7280;
}

.bbb-toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bbb-toggle-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.bbb-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Submenu */
.bbb-submenu {
    list-style: none;
    padding-right: 1.5rem;
    margin-top: 0.5rem;
}

.bbb-submenu li {
    margin-bottom: 0.25rem;
}

.bbb-submenu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1.05rem;
    font-weight: 500;
}

.bbb-submenu a:hover,
.bbb-submenu a.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.bbb-menu-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bbb-menu-arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.bbb-menu-arrow.rotated {
    transform: rotate(180deg);
}

/* Notifications */
.bbb-notifications-dropdown {
    position: relative;
}

.bbb-notifications-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.bbb-notifications-btn:hover {
    background: rgba(255,255,255,0.3);
}

.bbb-notification-badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.bbb-notifications-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

.bbb-notifications-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bbb-notifications-header h3 {
    margin: 0;
    color: #1e3c72;
    font-size: 1.1rem;
}

.bbb-notifications-header button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.bbb-notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.bbb-notification-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s;
}

.bbb-notification-item:hover {
    background: #f9fafb;
}

.bbb-notification-title {
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.bbb-notification-message {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.bbb-notification-time {
    color: #9ca3af;
    font-size: 0.8rem;
}

.bbb-notification-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
}

.bbb-notification-empty {
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
}

.bbb-menu-badge {
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Service Tabs */
/* Desktop: Show tabs, hide dropdown */
.bbb-service-tabs-mobile {
    display: none !important;
}

.bbb-service-tabs {
    display: flex !important;
}

.bbb-service-tab {
    transition: all 0.3s;
}

.bbb-service-tab:hover {
    color: #667eea !important;
}

.bbb-service-tab.active {
    color: #667eea !important;
    border-bottom-color: #667eea !important;
}

/* Modal */
.bbb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbb-modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bbb-btn-secondary {
    width: 100%;
    padding: 1rem !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.bbb-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.bbb-btn-secondary:active {
    transform: translateY(0);
}

/* Recordings Table */
.bbb-recordings-table {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    table-layout: auto;
}

/* Make name and description columns equal width on desktop */
@media (min-width: 769px) {
    .bbb-recordings-table {
        table-layout: fixed;
    }
    
    /* Equal width for name and description columns - slightly larger */
    .bbb-recordings-table thead th:nth-child(2),
    .bbb-recordings-table thead th:nth-child(3),
    .bbb-recordings-table tbody td:nth-child(2),
    .bbb-recordings-table tbody td:nth-child(3) {
        width: 13%;
    }
    
    /* Class name column */
    .bbb-recordings-table thead th:nth-child(1),
    .bbb-recordings-table tbody td:nth-child(1) {
        width: 18%;
    }
    
    /* Date column */
    .bbb-recordings-table thead th:nth-child(4),
    .bbb-recordings-table tbody td:nth-child(4) {
        width: 12%;
    }
    
    /* Link column - keep same size */
    .bbb-recordings-table thead th:nth-child(5),
    .bbb-recordings-table tbody td:nth-child(5) {
        width: 20%;
    }
    
    /* Management column - reduced */
    .bbb-recordings-table thead th:nth-child(6),
    .bbb-recordings-table tbody td:nth-child(6) {
        width: 24%;
    }
}

.bbb-recordings-table tbody tr:hover {
    background: #f1f5f9 !important;
}

.bbb-recordings-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.bbb-recordings-table tbody tr:nth-child(odd) {
    background: #f8fafc;
}

.bbb-recordings-table input[type="text"] {
    transition: all 0.3s;
}

.bbb-recordings-table input[type="text"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bbb-recordings-table button {
    transition: all 0.3s;
}

.bbb-recordings-table button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.bbb-recordings-table button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Modal */
.bbb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.bbb-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.bbb-close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ef4444;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.bbb-close-modal:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

.bbb-modal-content h2 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.bbb-payment-methods {
    margin: 1.5rem 0;
}

.bbb-payment-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.bbb-payment-method:hover {
    border-color: #667eea;
    background: #f8fafc;
}

.bbb-payment-method input[type="radio"] {
    margin-left: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.bbb-payment-method label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #374151;
}

/* Notices */
.bbb-notice {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bbb-notice-success {
    background: #d1fae5;
    color: #065f46;
    border-right: 4px solid #10b981;
    border: 1px solid #a7f3d0;
}

.bbb-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border-right: 4px solid #ef4444;
    border: 1px solid #fecaca;
}

.bbb-notice-error a {
    color: #991b1b;
    text-decoration: underline;
    font-weight: 600;
}

.bbb-notice-error a:hover {
    text-decoration: none;
}

/* Forms */
.bbb-form-inline {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.bbb-form-inline input,
.bbb-form-inline select {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
}

.bbb-form-inline input:focus,
.bbb-form-inline select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tables */
.bbb-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.bbb-table th,
.bbb-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.bbb-table th {
    background: #f8fafc;
    color: #1e3c72;
    font-weight: 600;
}

.bbb-table tr:hover {
    background: #f8fafc;
}

/* Recordings */
.bbb-recordings {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.bbb-recording-item {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.bbb-recording-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bbb-recording-item h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.bbb-recording-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Loading */
.bbb-loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.bbb-spinner {
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bottom Navigation for Mobile - Digikala Style */
.bbb-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 0.3125rem 0;
    border-top: 1px solid #e5e7eb;
}

/* Show on mobile by default (will be overridden by media query) */
@media (max-width: 768px) {
    .bbb-bottom-nav {
        display: block !important;
    }
}

.bbb-bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.bbb-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.3125rem 0.25rem;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.3s;
    position: relative;
    gap: 0.15rem;
}

.bbb-bottom-nav-item .nav-icon {
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.bbb-bottom-nav-item .nav-label {
    font-size: 0.4375rem;
    font-weight: 500;
    transition: all 0.3s;
}

.bbb-bottom-nav-item.active {
    color: #667eea;
}

.bbb-bottom-nav-item.active .nav-icon {
    transform: scale(1.1);
}

.bbb-bottom-nav-item:active {
    transform: scale(0.95);
}

.bbb-bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Mobile Menu Overlay */
.bbb-mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1002;
    backdrop-filter: blur(2px);
}

.bbb-mobile-menu-overlay.active {
    display: block;
}

.bbb-mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 1003;
    padding: 1.5rem;
}

.bbb-mobile-menu.active {
    transform: translateY(0);
}

.bbb-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.bbb-mobile-menu-header h3 {
    margin: 0;
    color: #1e3c72;
    font-size: 1.2rem;
}

.bbb-mobile-menu-close {
    background: #ef4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.bbb-mobile-menu .bbb-menu {
    list-style: none;
    padding: 0;
}

.bbb-mobile-menu .bbb-menu li {
    margin-bottom: 0.5rem;
}

.bbb-mobile-menu .bbb-menu a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
    gap: 0.75rem;
    font-size: 1rem;
}

.bbb-mobile-menu .bbb-menu a:active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bbb-mobile-menu .bbb-submenu {
    padding-right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Adjust panel wrapper for bottom nav */
    body.bbb-panel-active {
        padding-bottom: 70px;
    }
    
    .bbb-panel-wrapper {
        padding-bottom: 70px;
    }
    
    /* Simplify header for mobile */
    .bbb-panel-header {
        padding: 0.75rem 1rem;
    }
    
    .bbb-header-content {
        gap: 0.5rem;
    }
    
    .bbb-logo {
        font-size: 1rem;
        gap: 0.25rem;
    }
    
    .bbb-logo::before {
        font-size: 1.3rem;
    }
    
    .bbb-user-info {
        gap: 0.5rem;
    }
    
    .bbb-user-info > span {
        display: none; /* Hide username text on mobile */
    }
    
    .bbb-user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .bbb-logout-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .bbb-notifications-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .bbb-notifications-panel {
        width: calc(100vw - 2rem);
        left: 50%;
        transform: translateX(-50%);
        max-height: 400px;
    }
    
    /* Hide desktop sidebar */
    .bbb-sidebar {
        display: none !important;
    }
    
    /* Make content full width */
    .bbb-panel-main {
        flex-direction: column;
        padding: 1rem;
        padding-bottom: 80px; /* Space for bottom nav */
        gap: 1rem;
    }
    
    .bbb-content {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 1rem;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .bbb-content h1 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    /* Plans grid mobile */
    .bbb-plans-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .bbb-plan-card {
        padding: 1.25rem;
    }
    
    .bbb-plan-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .bbb-plan-price {
        font-size: 1.3rem !important;
        margin: 1rem 0;
    }
    
    .bbb-plan-features {
        margin: 1rem 0;
    }
    
    .bbb-plan-features li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    /* Classes grid mobile - Card Style */
    .bbb-classes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bbb-class-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .bbb-class-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .bbb-class-info {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .bbb-class-info strong {
        font-size: 0.9rem;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .bbb-class-actions {
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .bbb-class-actions .bbb-btn-small {
        flex: 1;
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Dashboard Table Mobile - Convert to Cards (Same as Plan Cards) */
    .bbb-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .bbb-content tbody {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .bbb-content tbody tr {
        display: flex;
        flex-direction: column;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 2px solid #e5e7eb;
        border-radius: 15px;
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        margin-left: 0;
        margin-right: 0;
        position: relative;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .bbb-content tbody tr::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 15px 15px 0 0;
    }
    
    .bbb-content tbody tr:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }
    
    .bbb-content thead {
        display: none;
    }
    
    .bbb-content tbody td {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.65rem 0;
        border-bottom: 1px solid #f3f4f6;
        gap: 0.5rem;
    }
    
    .bbb-content tbody td:last-child {
        border-bottom: none;
        padding-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bbb-content tbody td:last-child > div {
        width: 100%;
    }
    
    .bbb-content tbody td:last-child a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
    }
    
    .bbb-content tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 0.85rem;
        display: inline;
        white-space: nowrap;
        flex-shrink: 0;
        text-align: right;
        direction: rtl;
    }
    
    /* Content in cells - RTL for Persian text */
    .bbb-content tbody td > *:not(::before) {
        direction: rtl;
        text-align: right;
        flex: 1;
    }
    
    .bbb-content tbody td strong,
    .bbb-content tbody td span:not(.bbb-status-badge),
    .bbb-content tbody td a {
        direction: rtl;
        text-align: right;
    }
    
    .bbb-content tbody td strong {
        font-weight: 600;
        color: #1e3c72;
        font-size: 1.05rem;
    }
    
    /* Service details grid to single column */
    .bbb-content > div > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    /* Auth container mobile */
    .bbb-auth-container {
        margin: 1.5rem 1rem;
        padding: 2rem 1.5rem;
        border-radius: 15px;
        max-width: 100%;
    }
    
    .bbb-user-type-selection h2 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .bbb-user-type-selection > div {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .bbb-user-type-btn {
        padding: 1.5rem 1rem;
        min-height: 140px;
        font-size: 1rem;
    }
    
    .bbb-user-type-btn > div:first-child {
        font-size: 3.5rem !important;
        margin-bottom: 1rem !important;
        line-height: 1 !important;
    }
    
    .bbb-user-type-btn > div:last-child {
        font-size: 1rem;
    }
    
    .bbb-auth-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .bbb-auth-tab {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .bbb-form-group {
        margin-bottom: 0.875rem;
    }
    
    .bbb-form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    .bbb-form-group input {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .bbb-form-group small {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    /* Buttons mobile */
    .bbb-btn {
        padding: 0.875rem !important;
        font-size: 1rem !important;
        margin-top: 0.75rem;
        line-height: normal !important;
    }
    
    /* Buttons in flex container on mobile - smaller text */
    div[style*="display: flex"] > .bbb-btn {
        padding: 0.65rem 0.4rem !important;
        font-size: 0.7rem !important;
        margin-top: 0 !important;
    }
    
    .bbb-btn-secondary {
        padding: 0.875rem !important;
        font-size: 1rem !important;
        margin-top: 0.75rem;
        line-height: normal !important;
        box-sizing: border-box !important;
        font-weight: 600 !important;
    }
    
    /* OTP Toggle Button mobile - Same size as login button */
    #toggle-otp-login,
    #attendee-toggle-otp-login {
        padding: 0.65rem 0.4rem !important;
        font-size: 0.7rem !important;
        height: auto !important;
        min-height: auto !important;
        line-height: normal !important;
        margin-top: 0 !important;
        box-sizing: border-box !important;
        font-weight: 600 !important;
        width: auto !important;
    }
    
    /* When buttons are in flex container on mobile, ensure same size and smaller text */
    div[style*="display: flex"] > .bbb-btn,
    div[style*="display: flex"] > .bbb-btn-secondary,
    div[style*="display: flex"] > #toggle-otp-login,
    div[style*="display: flex"] > #attendee-toggle-otp-login {
        margin-top: 0 !important;
        padding: 0.65rem 0.4rem !important;
        font-size: 0.7rem !important;
        line-height: normal !important;
        box-sizing: border-box !important;
        font-weight: 600 !important;
    }
    
    /* Support Tickets Header - Mobile */
    .bbb-content > div[style*="margin-bottom: 2rem"] a {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Auth messages mobile */
    #bbb-auth-message {
        margin-top: 1rem;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .bbb-auth-section h3 {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }
    
    /* Forms mobile */
    .bbb-form-inline {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .bbb-form-inline input,
    .bbb-form-inline select {
        width: 100%;
        min-width: 100%;
    }
    
    /* Addon page mobile - fix recording addon section layout */
    /* Target the div with background #f8fafc that contains the recording addon */
    .bbb-content > div[style*="max-width"] > div[style*="background: white"] > div[style*="background: #f8fafc"],
    .bbb-content > div[style*="max-width"] > div[style*="background: white"] > div[style*="background: rgb(248, 250, 252)"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    /* Style the checkbox */
    .bbb-content #recording-addon {
        order: 1 !important;
        margin-bottom: 0.5rem !important;
        flex-shrink: 0;
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Style the label */
    .bbb-content label[for="recording-addon"] {
        width: 100% !important;
        margin-right: 0 !important;
        order: 2 !important;
        flex: 1;
        font-size: 1rem !important;
    }
    
    .bbb-content label[for="recording-addon"] strong {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .bbb-content label[for="recording-addon"] p {
        margin-top: 0.5rem;
        line-height: 1.6;
        font-size: 0.9rem;
    }
    
    /* Style the price display container */
    .bbb-content > div[style*="max-width"] > div[style*="background: white"] > div[style*="background: #f8fafc"] > div[style*="text-align: left"],
    .bbb-content > div[style*="max-width"] > div[style*="background: white"] > div[style*="background: rgb(248, 250, 252)"] > div[style*="text-align: left"] {
        width: 100% !important;
        text-align: right !important;
        margin-top: 0.5rem !important;
        order: 3 !important;
    }
    
    /* Style the price display */
    .bbb-content #addon-price-display {
        width: 100% !important;
        text-align: right !important;
        font-size: 1.1rem !important;
    }
    
    .bbb-content #addon-price-display span {
        display: block;
        text-align: right;
    }
    
    /* Modal mobile */
    .bbb-modal-content {
        width: 95%;
        padding: 1.5rem;
        border-radius: 15px;
        max-height: 85vh;
    }
    
    /* Table mobile - make scrollable */
    .bbb-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bbb-table {
        min-width: 600px;
    }
    
    .bbb-table th,
    .bbb-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Recordings mobile - Table Style */
    .bbb-recordings-table {
        display: block;
        overflow: visible;
        width: 100%;
        margin: 0;
    }
    
    .bbb-recordings-table tbody {
        display: block;
        width: 100%;
    }
    
    .bbb-recordings-table thead {
        display: none;
    }
    
    .bbb-recordings-table tbody tr {
        display: flex;
        flex-direction: column;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 2px solid #e5e7eb;
        border-radius: 15px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        position: relative;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s;
    }
    
    .bbb-recordings-table tbody tr::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 15px 15px 0 0;
    }
    
    .bbb-recordings-table tbody tr:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }
    
    .bbb-recordings-table tbody td {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.375rem 0;
        border-bottom: 1px solid #e5e7eb;
        border-left: none !important;
        gap: 0.375rem;
    }
    
    /* On mobile, combine name and description in one column for service-recordings */
    @media (max-width: 768px) {
        /* Show separate labels for each field - inline like other fields */
        .bbb-recordings-table tbody td[data-label="نام ضبط شده:"]::before {
            content: attr(data-label) !important;
            font-weight: 600;
            color: #6b7280;
            display: inline !important;
            margin: 0;
            font-size: 0.75rem;
            flex-shrink: 0;
        }
        
        /* Show description label - inline like other fields */
        .bbb-recordings-table tbody td[data-label="توضیح:"]::before {
            content: attr(data-label) !important;
            font-weight: 600;
            color: #6b7280;
            display: inline !important;
            margin: 0;
            font-size: 0.75rem;
            flex-shrink: 0;
        }
        
        /* Display name and description like other fields - label on left, value on right */
        .bbb-recordings-table tbody td[data-label="نام ضبط شده:"] {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 0.375rem 0 !important;
            border-bottom: 1px solid #e5e7eb !important;
        }
        
        .bbb-recordings-table tbody td[data-label="توضیح:"] {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 0.375rem 0 !important;
            border-top: none !important;
            border-bottom: 1px solid #e5e7eb !important;
        }
        
        /* Display name content in the value column (right side) - like other fields */
        .bbb-recordings-table tbody td[data-label="نام ضبط شده:"] > div {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: flex-end !important;
            gap: 0.375rem !important;
            flex: 1;
            margin: 0;
            direction: ltr !important;
            text-align: right !important;
        }
        
        .bbb-recordings-table tbody td[data-label="نام ضبط شده:"] .bbb-recording-name-display {
            font-weight: 400 !important;
            font-size: 0.8125rem !important;
            color: #374151 !important;
            display: inline-block;
            text-align: right !important;
            margin: 0;
            direction: rtl;
            line-height: 1.4;
        }
        
        /* Display description content in the value column (right side) - like other fields */
        .bbb-recordings-table tbody td[data-label="توضیح:"] > div {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: flex-end !important;
            gap: 0.375rem !important;
            flex: 1;
            margin: 0;
            direction: ltr !important;
            text-align: right !important;
        }
        
        .bbb-recordings-table tbody td[data-label="توضیح:"] .bbb-recording-description-display {
            color: #374151 !important;
            font-size: 0.8125rem !important;
            font-weight: 400 !important;
            line-height: 1.4;
            display: inline-block;
            text-align: right !important;
            margin: 0;
            direction: rtl;
        }
        
        /* Position edit buttons on the right side (next to the value) */
        .bbb-recordings-table tbody td[data-label="نام ضبط شده:"] .bbb-edit-name-btn {
            order: 2;
            margin: 0;
            flex-shrink: 0;
        }
        
        .bbb-recordings-table tbody td[data-label="توضیح:"] .bbb-edit-description-btn {
            order: 2;
            margin: 0;
            flex-shrink: 0;
        }
    }
    
    .bbb-recordings-table tbody td:last-child {
        border-bottom: none;
    }
    
    .bbb-recordings-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 0.75rem;
        display: inline;
        white-space: nowrap;
        flex-shrink: 0;
        text-align: right;
        direction: rtl;
    }
    
    /* Content in recordings table cells - RTL */
    .bbb-recordings-table tbody td > *:not(::before) {
        direction: rtl;
        text-align: right;
        flex: 1;
    }
    
    /* Override for name and description cells to align values properly */
    @media (max-width: 768px) {
        .bbb-recordings-table tbody td[data-label="نام ضبط شده:"] > *:not(::before),
        .bbb-recordings-table tbody td[data-label="توضیح:"] > *:not(::before) {
            flex: 1;
            text-align: right !important;
        }
    }
    
    .bbb-recordings-table input[type="text"] {
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .bbb-recordings-table button {
        width: auto;
        margin-top: 0;
        flex-shrink: 0;
    }
    
    /* Recording actions buttons in one line - centered on mobile */
    .bbb-recordings-table tbody td[data-label="مدیریت:"] > div {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .bbb-recordings-table tbody td[data-label="مدیریت:"] button {
        width: auto !important;
        margin: 0 !important;
        padding: 0.5rem !important;
        font-size: 1.3rem !important;
    }
    
    /* Recording item cards */
    .bbb-recording-item {
        padding: 1rem;
    }
    
    .bbb-recording-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bbb-recording-actions .bbb-btn-small,
    .bbb-recording-actions button,
    .bbb-recording-actions a {
        width: 100%;
        text-align: center;
    }
    
    /* Service tabs mobile - sticky at top */
    /* Mobile: Show dropdown, hide tabs */
    .bbb-service-tabs-mobile {
        display: block !important;
    }
    
    .bbb-service-tabs {
        display: none !important;
    }
    
    .bbb-service-tabs-select {
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e3c72' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: left 1rem center !important;
        padding-right: 1rem !important;
        padding-left: 3rem !important;
    }
    
    .bbb-service-tabs-select:focus {
        outline: none !important;
        border-color: #667eea !important;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    }
    
    /* Adjust parent container for sticky tabs */
    .bbb-content > div:first-child {
        padding-top: 0 !important;
        overflow: visible !important;
    }
    
    /* Service details mobile improvements */
    .bbb-content > div[style*="grid-template-columns: 2fr 1fr"],
    .bbb-content > div[style*="grid-template-columns: 1fr 1fr"],
    .bbb-content > div > div[style*="grid-template-columns"] {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    .bbb-content > div[style*="grid-template-columns"] > div,
    .bbb-content > div > div[style*="grid-template-columns"] > div {
        margin-bottom: 0.75rem;
    }
    
    .bbb-content > div[style*="grid-template-columns"] > div p,
    .bbb-content > div > div[style*="grid-template-columns"] > div p {
        margin-bottom: 0.5rem !important;
        font-size: 0.9rem;
    }
    
    .bbb-content > div[style*="grid-template-columns"] > div p strong {
        display: inline-block;
        min-width: 100px;
        font-size: 0.85rem;
    }
    
    /* Better spacing for service buttons */
    .bbb-content a[href*="join"],
    .bbb-content button[id*="guest"],
    .bbb-content button[id*="bbb-show"],
    .bbb-content button[id*="edit"] {
        width: 100% !important;
        margin: 0 0 0.5rem 0 !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Service details container */
    .bbb-content > div[style*="background: white"] {
        padding: 1rem !important;
    }
    
    .bbb-content > div[style*="background: white"] h2,
    .bbb-content > div[style*="background: white"] h3 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Class name display */
    .bbb-content #class-name-display {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .bbb-content #class-name-display h3 {
        font-size: 1rem !important;
    }
    
    .bbb-content #class-name-display p {
        font-size: 0.8rem !important;
    }
    
    /* Edit form */
    .bbb-content #edit-class-name-form {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .bbb-content #edit-class-name-form input {
        font-size: 0.95rem !important;
    }
    
    .bbb-content #edit-class-name-form button {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Cancel button in edit class name form - red color, same style as save button */
    .bbb-content #cancel-edit-class-name-btn {
        width: 100% !important;
        padding: 0.875rem !important;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .bbb-content #cancel-edit-class-name-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    }
    
    .bbb-content #cancel-edit-class-name-btn:active {
        transform: translateY(0);
    }
    
    /* Compact info display */
    .bbb-content div[style*="display: flex; flex-direction: column"] {
        gap: 0.5rem !important;
    }
    
    /* Cancel button in edit class name form - red color (desktop), same style as save button */
    #cancel-edit-class-name-btn {
        width: 100% !important;
        padding: 0.875rem !important;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    #cancel-edit-class-name-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    }
    
    #cancel-edit-class-name-btn:active {
        transform: translateY(0);
    }
    
    /* Hide elements on very small screens */
    @media (max-width: 360px) {
        .bbb-logo {
            font-size: 0.85rem;
        }
        
        .bbb-bottom-nav-item .nav-label {
            font-size: 0.4rem;
        }
        
        .bbb-bottom-nav-item .nav-icon {
            font-size: 0.875rem;
        }
    }
}

/* Hide WordPress default elements when panel is active */
body.bbb-panel-active .site-header,
body.bbb-panel-active .site-footer,
body.bbb-panel-active .site-main > *:not(.bbb-panel-wrapper) {
    display: none !important;
}

/* Mobile Number Registration Modal */
#bbb-mobile-modal {
    z-index: 10000 !important;
}

#bbb-mobile-modal .bbb-modal-content {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#bbb-mobile-input:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

#bbb-mobile-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#bbb-mobile-submit:active {
    transform: translateY(0);
}

#bbb-mobile-skip:hover {
    background: #e5e7eb !important;
}

/* Mobile responsive styles for mobile modal */
@media (max-width: 768px) {
    #bbb-mobile-modal .bbb-modal-content {
        padding: 1.5rem !important;
        margin: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    #bbb-mobile-modal h2 {
        font-size: 1.25rem !important;
    }
    
    #bbb-mobile-modal p {
        font-size: 0.9rem !important;
    }
    
    #bbb-mobile-modal .bbb-modal-content > div:first-child > div:first-child {
        font-size: 2.5rem !important;
    }
    
    #bbb-mobile-submit,
    #bbb-mobile-skip {
        font-size: 0.9rem !important;
        padding: 0.65rem 1rem !important;
    }
}
