.trial-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 20px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #FFF8F0 0%, #FDF2E9 100%);
    color: #8B4513;
    border-bottom: 1px solid #E6D3A3;
    animation: slideDown 0.3s ease-out;
    cursor: pointer;
}

.trial-banner.expired {
    background: linear-gradient(135deg, #FDF2F2 0%, #FED7D7 100%);
    color: #C53030;
    border-bottom: 1px solid #FC8181;
}

.trial-banner.active {
    background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
    color: #1E40AF;
    border-bottom: 1px solid #93C5FD;
}

body.has-trial-banner {
    padding-top: 65px;
}

body.has-trial-banner #app {
    margin-top: 0;
}

.trial-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 1024px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

#trial-banner-text {
    flex: 0 1 auto;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

/* Actions Container */
.actions-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    margin: 8px auto 0;
    padding: 0 20px;
    align-items: center;
}

.trial-banner .actions-container {
    cursor: default;
}

/* Action Separator */
.action-separator {
    color: #999;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px 0;
    opacity: 0.7;
    position: relative;
}

.action-separator::before,
.action-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.action-separator::before {
    left: -28px;
}

.action-separator::after {
    right: -28px;
}

/* Primary Action Button - Default (for expired) */
.primary-action {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(229, 62, 62, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.primary-action:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Primary Action for Active Trial - Orange theme */
.primary-action.active-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.25);
}

.primary-action.active-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-action:active {
    transform: translateY(0);
}

/* Secondary Action - Smaller and more subtle */
.secondary-action {
    background: rgba(255, 255, 255, 0.5);
    color: inherit;
    border: 1px solid currentColor;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 400;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    opacity: 0.7;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
}

.secondary-action:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Action content styling */
.action-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.secondary-action .action-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.action-text {
    font-weight: 600;
    line-height: 1.2;
}

/* Remove subtitle styling since we're not using them */
.action-subtitle {
    display: none;
}

/* Toggle button */
#trial-banner-toggle {
    font-size: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: inherit;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
}

#trial-banner-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

#trial-banner-toggle i {
    font-size: 14px;
}

.trial-banner.collapsed .banner-actions {
    display: none;
}

.trial-banner.collapsed #trial-banner-toggle {
    opacity: 0.6;
}

.trial-banner.expanded {
    padding-bottom: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .trial-banner {
        padding: 8px 20px;
        /* Reduced from 16px 20px */
        font-size: 13px;
    }

    body.has-trial-banner {
        padding-top: 45px;
    }

    .trial-banner .banner-content {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    #trial-banner-text {
        text-align: center;
        max-width: 280px;
    }

    #trial-banner-toggle {
        padding: 8px 12px;
        /* Increased from 5px 10px */
        border-radius: 6px;
        font-size: 18px;
        /* Increased from 16px */
        min-width: 44px;
        /* Added minimum touch target */
        min-height: 44px;
        /* Added minimum touch target */
    }

    #trial-banner-toggle i {
        font-size: 16px;
        /* Increased from 14px */
    }

    .actions-container {
        gap: 8px;
        padding: 0 16px;
        margin-top: 4px;
    }

    .action-separator {
        font-size: 12px;
        margin: 4px 0;
        padding: 2px 0;
    }

    .action-separator::before,
    .action-separator::after {
        width: 24px;
        height: 1.5px;
    }

    .action-separator::before {
        left: -32px;
    }

    .action-separator::after {
        right: -32px;
    }

    .primary-action {
        padding: 16px 20px;
        font-size: 16px;
        flex-direction: row;
        gap: 8px;
        min-height: 48px;
    }

    .action-icon {
        font-size: 18px;
    }

    .secondary-action {
        padding: 12px 16px;
        font-size: 12px;
        flex-direction: row;
        gap: 8px;
        max-width: 320px;
        /* Increased from 280px */
        min-height: 44px;
    }

    .secondary-action .action-icon {
        font-size: 14px;
        /* Increased from 11px */
    }

    .trial-banner.expanded {
        padding-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .trial-banner {
        padding: 6px 16px;
    }

    .trial-banner .banner-content {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    #trial-banner-text {
        font-size: 12px;
        max-width: 240px;
        text-align: center;
    }

    #trial-banner-toggle {
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 16px;
        min-width: 44px;
        min-height: 44px;
    }

    #trial-banner-toggle i {
        font-size: 14px;
    }

    .actions-container {
        padding: 0 16px;
        gap: 6px;
    }

    .action-separator {
        font-size: 11px;
        margin: 3px 0;
        padding: 2px 0;
        font-weight: 500;
    }

    .action-separator::before,
    .action-separator::after {
        width: 20px;
        height: 1.5px;
    }

    .action-separator::before {
        left: -28px;
    }

    .action-separator::after {
        right: -28px;
    }

    .primary-action {
        padding: 14px 18px;
        font-size: 15px;
        flex-direction: row;
        gap: 8px;
        min-height: 48px;
    }

    .secondary-action {
        padding: 10px 14px;
        font-size: 11px;
        max-width: 280px;
        /* Increased from 240px */
        gap: 6px;
        flex-direction: row;
        min-height: 44px;
    }

    .action-icon {
        font-size: 16px;
    }

    .secondary-action .action-icon {
        font-size: 12px;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.trial-banner .highlight {
    font-weight: 700;
    color: inherit;
}

.trial-banner.active .highlight {
    color: #1E40AF;
}

.trial-banner.expired .highlight {
    color: #C53030;
}

/* Legacy support - keep these for any old banner actions that might still exist */
.banner-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.banner-actions.hidden {
    display: none;
}